libeet: fix build with gcrypt
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Jan 2013 12:57:08 +0000 (13:57 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 Jan 2013 13:00:01 +0000 (14:00 +0100)
libeet needs both gnutls and libgcrypt for ssl handling.

Fixes http://autobuild.buildroot.net/results/tmp/f45782cf73338930644c69dccf2f18167083d121/

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/efl/libeet/libeet.mk

index a5a1ce1d5b3a081c7ef39979762b4ba90c58a95e..70341987d65161ce440f4eb9e0bf241de4f5b1d2 100644 (file)
@@ -14,5 +14,13 @@ LIBEET_INSTALL_STAGING = YES
 
 LIBEET_DEPENDENCIES = host-pkgconf zlib jpeg libeina
 
+ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
+LIBEET_DEPENDENCIES += gnutls libgcrypt
+LIBEET_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
+LIBEET_CONF_OPT += --enable-gnutls
+else
+LIBEET_CONF_OPT += --disable-gnutls
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))