2007-11-28 09:59:17 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libxslt
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-08-28 13:52:17 +02:00
|
|
|
LIBXSLT_VERSION = 1.1.24
|
|
|
|
LIBXSLT_SOURCE = libxslt-$(LIBXSLT_VERSION).tar.gz
|
|
|
|
LIBXSLT_SITE = ftp://xmlsoft.org/libxslt
|
|
|
|
LIBXSLT_INSTALL_STAGING = YES
|
|
|
|
LIBXSLT_INSTALL_TARGET = YES
|
|
|
|
|
|
|
|
# If we have enabled libgcrypt then use it, else disable crypto support.
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
LIBXSLT_DEPENDENCIES_EXTRA=libgcrypt
|
|
|
|
else
|
|
|
|
LIBXSLT_XTRA_CONF_OPT = --without-crypto
|
|
|
|
endif
|
2007-11-28 09:59:17 +01:00
|
|
|
|
2008-08-28 13:52:17 +02:00
|
|
|
LIBXSLT_CONF_OPT = --with-gnu-ld --enable-shared \
|
|
|
|
--enable-static $(LIBXSLT_XTRA_CONF_OPT) \
|
|
|
|
$(DISABLE_NLS) $(DISABLE_IPV6) \
|
|
|
|
--without-debugging --without-python \
|
2007-11-28 09:59:17 +01:00
|
|
|
--without-threads \
|
2009-08-10 20:21:13 +02:00
|
|
|
--with-libxml-prefix=$(STAGING_DIR)/usr/
|
2007-11-28 09:59:17 +01:00
|
|
|
|
2010-01-27 02:09:02 +01:00
|
|
|
LIBXSLT_DEPENDENCIES = libxml2 $(LIBXSLT_DEPENDENCIES_EXTRA)
|
2007-11-28 09:59:17 +01:00
|
|
|
|
2010-02-20 18:12:34 +01:00
|
|
|
HOST_LIBXSLT_CONF_OPT = --enable-shared \
|
|
|
|
--without-debugging \
|
|
|
|
--without-python \
|
|
|
|
--without-threads
|
|
|
|
|
|
|
|
HOST_LIBXSLT_DEPENDENCIES = host-libxml2
|
|
|
|
|
2008-08-28 13:52:17 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,libxslt))
|
2010-02-20 18:12:34 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libxslt,host))
|
2007-11-28 09:59:17 +01:00
|
|
|
|
2008-08-28 13:52:17 +02:00
|
|
|
$(LIBXSLT_HOOK_POST_INSTALL):
|
|
|
|
$(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
|
|
|
|
touch $@
|
2007-11-28 09:59:17 +01:00
|
|
|
|