2009-01-13 17:36:16 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libidn
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-11-13 16:07:56 +01:00
|
|
|
|
2011-02-02 13:22:23 +01:00
|
|
|
LIBIDN_VERSION = 1.19
|
2009-01-13 17:36:16 +01:00
|
|
|
LIBIDN_SITE = http://ftp.gnu.org/gnu/libidn/
|
|
|
|
LIBIDN_INSTALL_STAGING = YES
|
2010-06-05 08:10:13 +02:00
|
|
|
LIBIDN_CONF_ENV = EMACS="no"
|
2011-05-30 23:57:03 +02:00
|
|
|
LIBIDN_CONF_OPT = --disable-java --enable-csharp=no
|
2010-05-24 21:17:55 +02:00
|
|
|
LIBIDN_DEPENDENCIES = host-pkg-config $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2009-01-13 17:36:16 +01:00
|
|
|
|
2010-09-01 17:23:36 +02:00
|
|
|
define LIBIDN_REMOVE_BINARY
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/idn
|
|
|
|
endef
|
2009-11-13 16:07:56 +01:00
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_LIBIDN_BINARY),y)
|
2010-09-01 17:23:36 +02:00
|
|
|
LIBIDN_POST_INSTALL_TARGET_HOOKS += LIBIDN_REMOVE_BINARY
|
2009-11-13 16:07:56 +01:00
|
|
|
endif
|
2010-09-01 17:23:36 +02:00
|
|
|
|
|
|
|
define LIBIDN_REMOVE_EMACS_STUFF
|
2009-11-13 16:07:56 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/emacs
|
2010-09-01 17:23:36 +02:00
|
|
|
endef
|
2009-11-13 16:07:56 +01:00
|
|
|
|
2010-09-01 17:23:36 +02:00
|
|
|
LIBIDN_POST_INSTALL_TARGET_HOOKS += LIBIDN_REMOVE_EMACS_STUFF
|
|
|
|
|
|
|
|
define LIBIDN_UNINSTALL_TARGET_CMDS
|
2009-11-13 16:07:56 +01:00
|
|
|
rm -f $(TARGET_DIR)/usr/lib/libidn*
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/idn
|
2010-09-01 17:23:36 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,libidn))
|