xref: /OK3568_Linux_fs/buildroot/package/libxslt/libxslt.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# libxslt
4#
5################################################################################
6
7LIBXSLT_VERSION = 1.1.34
8LIBXSLT_SITE = http://xmlsoft.org/sources
9LIBXSLT_INSTALL_STAGING = YES
10LIBXSLT_LICENSE = MIT
11LIBXSLT_LICENSE_FILES = COPYING
12LIBXSLT_CPE_ID_VENDOR = xmlsoft
13# We're patching configure.ac
14LIBXSLT_AUTORECONF = YES
15
16LIBXSLT_CONF_OPTS = \
17	--with-gnu-ld \
18	--without-debug \
19	--without-python \
20	--with-libxml-prefix=$(STAGING_DIR)/usr
21LIBXSLT_CONFIG_SCRIPTS = xslt-config
22LIBXSLT_DEPENDENCIES = host-pkgconf libxml2
23
24# If we have enabled libgcrypt then use it, else disable crypto support.
25ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
26LIBXSLT_DEPENDENCIES += libgcrypt
27LIBXSLT_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
28else
29LIBXSLT_CONF_OPTS += --without-crypto
30endif
31
32HOST_LIBXSLT_CONF_OPTS = --without-debug --without-python --without-crypto
33
34HOST_LIBXSLT_DEPENDENCIES = host-pkgconf host-libxml2
35
36$(eval $(autotools-package))
37$(eval $(host-autotools-package))
38