f9f893c46d
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
36 lines
982 B
Makefile
36 lines
982 B
Makefile
#############################################################
|
|
#
|
|
# libidn
|
|
#
|
|
#############################################################
|
|
|
|
LIBIDN_VERSION = 1.26
|
|
LIBIDN_SITE = $(BR2_GNU_MIRROR)/libidn
|
|
LIBIDN_INSTALL_STAGING = YES
|
|
LIBIDN_CONF_ENV = EMACS="no"
|
|
LIBIDN_CONF_OPT = --disable-java --enable-csharp=no
|
|
LIBIDN_DEPENDENCIES = host-pkgconf $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
LIBIDN_LICENSE = GPLv2+ GPLv3+ LGPLv3+
|
|
LIBIDN_LICENSE_FILES = COPYINGv2 COPYINGv3 COPYING.LESSERv3
|
|
|
|
define LIBIDN_REMOVE_BINARY
|
|
rm -f $(TARGET_DIR)/usr/bin/idn
|
|
endef
|
|
|
|
ifneq ($(BR2_PACKAGE_LIBIDN_BINARY),y)
|
|
LIBIDN_POST_INSTALL_TARGET_HOOKS += LIBIDN_REMOVE_BINARY
|
|
endif
|
|
|
|
define LIBIDN_REMOVE_EMACS_STUFF
|
|
rm -rf $(TARGET_DIR)/usr/share/emacs
|
|
endef
|
|
|
|
LIBIDN_POST_INSTALL_TARGET_HOOKS += LIBIDN_REMOVE_EMACS_STUFF
|
|
|
|
define LIBIDN_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/lib/libidn*
|
|
rm -f $(TARGET_DIR)/usr/bin/idn
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|