ltp: update to latest
[openadk.git] / package / libxslt / Makefile
blob012ade2c12228cf200e6ff15b96084dace8d4004
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= libxslt
7 PKG_VERSION:= 1.1.29
8 PKG_RELEASE:= 1
9 PKG_HASH:= b5976e3857837e7617b29f2249ebb5eeac34e249208d31f1fbf7a6ba7a4090ce
10 PKG_DESCR:= xslt library
11 PKG_SECTION:= libs/data
12 PKG_DEPENDS:= libxml2
13 PKG_BUILDDEP:= libxslt-host libxml2
14 HOST_BUILDDEP:= libxml2-host
15 PKG_NEEDS:= c++
16 PKG_URL:= http://xmlsoft.org/XSLT
17 PKG_SITES:= http://xmlsoft.org/sources/
18 PKG_OPTS:= dev
20 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
22 PKG_SUBPKGS:= LIBXSLT XSLTPROC
23 PKGSD_XSLTPROC:= xslt processor utility
24 PKGSC_XSLTPROC:= sys/misc
26 include ${ADK_TOPDIR}/mk/host.mk
27 include ${ADK_TOPDIR}/mk/package.mk
29 $(eval $(call HOST_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE}))
30 $(eval $(call PKG_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
31 $(eval $(call PKG_template,XSLTPROC,xsltproc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XSLTPROC},${PKGSC_XSLTPROC}))
33 HOST_CONFIGURE_ARGS+= --without-python \
34 --without-crypto \
35 --with-libxml-prefix="${STAGING_HOST_DIR}/usr" \
36 --with-libxml-include-prefix="${STAGING_HOST_DIR}/usr/include/libxml2" \
37 --with-libxml-libs-prefix="${STAGING_HOST_DIR}/usr/lib"
38 AUTOTOOL_STYLE:= autoreconf
39 CONFIGURE_ARGS+= --with-libxml-prefix="${STAGING_TARGET_DIR}/usr" \
40 --with-libxml-include-prefix="${STAGING_TARGET_DIR}/usr/include/libxml2" \
41 --with-libxml-libs-prefix="${STAGING_TARGET_DIR}/usr/lib" \
42 --without-python \
43 --without-crypto \
44 --without-debug \
45 --without-mem-debug \
46 --without-debugger
48 xsltproc-install:
49 ${INSTALL_DIR} ${IDIR_XSLTPROC}/usr/bin
50 ${INSTALL_BIN} ${WRKINST}/usr/bin/xsltproc ${IDIR_XSLTPROC}/usr/bin
52 libxslt-install:
53 ${INSTALL_DIR} ${IDIR_LIBXSLT}/usr/lib
54 ${CP} ${WRKINST}/usr/lib/libxslt.so* ${IDIR_LIBXSLT}/usr/lib
55 ${CP} ${WRKINST}/usr/lib/libexslt.so* ${IDIR_LIBXSLT}/usr/lib
57 include ${ADK_TOPDIR}/mk/host-bottom.mk
58 include ${ADK_TOPDIR}/mk/pkg-bottom.mk