2007-11-28 09:59:17 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libxslt
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-12-21 15:40:27 +01:00
|
|
|
|
|
|
|
LIBXSLT_VERSION = 1.1.26
|
2008-08-28 13:52:17 +02:00
|
|
|
LIBXSLT_SITE = ftp://xmlsoft.org/libxslt
|
|
|
|
LIBXSLT_INSTALL_STAGING = YES
|
|
|
|
|
2012-01-18 11:26:20 +01:00
|
|
|
LIBXSLT_CONF_OPT = --with-gnu-ld --without-debug \
|
|
|
|
--without-python --with-libxml-prefix=$(STAGING_DIR)/usr/
|
|
|
|
|
|
|
|
LIBXSLT_DEPENDENCIES = libxml2
|
|
|
|
|
2008-08-28 13:52:17 +02:00
|
|
|
# If we have enabled libgcrypt then use it, else disable crypto support.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
2012-01-18 11:26:20 +01:00
|
|
|
LIBXSLT_DEPENDENCIES += libgcrypt
|
2008-08-28 13:52:17 +02:00
|
|
|
else
|
2012-01-19 09:41:57 +01:00
|
|
|
LIBXSLT_CONF_OPT += --without-crypto
|
2008-08-28 13:52:17 +02:00
|
|
|
endif
|
2007-11-28 09:59:17 +01:00
|
|
|
|
2011-05-02 21:08:23 +02:00
|
|
|
HOST_LIBXSLT_CONF_OPT = --without-debug --without-python --without-crypto
|
2010-02-20 18:12:34 +01:00
|
|
|
|
|
|
|
HOST_LIBXSLT_DEPENDENCIES = host-libxml2
|
|
|
|
|
2010-09-01 17:12:49 +02:00
|
|
|
define LIBXSLT_XSLT_CONFIG_FIXUP
|
2008-08-28 13:52:17 +02:00
|
|
|
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
|
|
|
|
$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
|
|
|
|
$(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" $(STAGING_DIR)/usr/bin/xslt-config
|
2010-09-01 17:12:49 +02:00
|
|
|
endef
|
2007-11-28 09:59:17 +01:00
|
|
|
|
2010-09-01 17:12:49 +02:00
|
|
|
LIBXSLT_POST_INSTALL_STAGING_HOOKS += LIBXSLT_XSLT_CONFIG_FIXUP
|
|
|
|
|
2010-12-22 18:23:55 +01:00
|
|
|
define LIBXSLT_REMOVE_CONFIG_SCRIPTS
|
|
|
|
$(RM) -f $(TARGET_DIR)/usr/bin/xslt-config
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifneq ($(BR2_HAVE_DEVFILES),y)
|
|
|
|
LIBXSLT_POST_INSTALL_TARGET_HOOKS += LIBXSLT_REMOVE_CONFIG_SCRIPTS
|
|
|
|
endif
|
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|
|
|
|
$(eval $(call AUTOTARGETS,host))
|