package/ngircd: make zlib an optional dependency
authorBernd Kuhls <bernd.kuhls@t-online.de>
Wed, 13 Sep 2017 12:29:57 +0000 (14:29 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 24 Sep 2017 11:46:20 +0000 (13:46 +0200)
zlib is not a hard dependency:
https://github.com/ngircd/ngircd/blob/master/configure.ng#L256

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/ngircd/Config.in
package/ngircd/ngircd.mk

index f1d8bea904aea2888aaf5bb5d7ea132e506d268a..9b3d430922c57cce7e2228702f0550981f0e02cd 100644 (file)
@@ -1,7 +1,6 @@
 config BR2_PACKAGE_NGIRCD
        bool "ngircd"
        depends on BR2_USE_MMU # fork()
-       select BR2_PACKAGE_ZLIB
        help
          Next Generation IRC server deamon.
 
index 06318a9df324d105eca369c896b4b763f1cc32b0..9fa30da24ca05d958eeece483dfa99af10fee1d5 100644 (file)
@@ -7,7 +7,6 @@
 NGIRCD_VERSION = 24
 NGIRCD_SOURCE = ngircd-$(NGIRCD_VERSION).tar.xz
 NGIRCD_SITE = https://arthur.barton.de/pub/ngircd
-NGIRCD_DEPENDENCIES = zlib
 NGIRCD_LICENSE = GPL-2.0+
 NGIRCD_LICENSE_FILES = COPYING
 
@@ -24,4 +23,11 @@ NGIRCD_CONF_OPTS += --without-gnutls
 endif
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+NGIRCD_CONF_OPTS += --with-zlib=$(STAGING_DIR)/usr
+NGIRCD_DEPENDENCIES += zlib
+else
+NGIRCD_CONF_OPTS += --without-zlib
+endif
+
 $(eval $(autotools-package))