package/libpciaccess: Add optional support for zlib
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 19 Oct 2014 11:08:16 +0000 (13:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 19 Oct 2014 14:26:20 +0000 (16:26 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libpciaccess/libpciaccess.mk

index 010707ef2471cc17e8124eded64b18a43131b888..f27925d6db364b6c7ef5911365fa49054ba5d448 100644 (file)
@@ -11,4 +11,11 @@ LIBPCIACCESS_LICENSE = MIT
 LIBPCIACCESS_LICENSE_FILES = COPYING
 LIBPCIACCESS_INSTALL_STAGING = YES
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBPCIACCESS_CONF_OPTS += --with-zlib
+LIBPCIACCESS_DEPENDENCIES += zlib
+else
+LIBPCIACCESS_CONF_OPTS += --without-zlib
+endif
+
 $(eval $(autotools-package))