1
0

Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libxslt
  5. PKG_VERSION:= 1.1.28
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 9667bf6f9310b957254fdcf6596600b7
  8. PKG_DESCR:= XSLT Library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libxml2
  11. PKG_BUILDDEP:= autotool libxml2
  12. HOST_BUILDDEP:= libxml2-host
  13. PKG_URL:= http://xmlsoft.org/XSLT
  14. PKG_SITES:= http://xmlsoft.org/sources/
  15. PKG_NEED_CXX:= 1
  16. PKG_OPTS:= dev
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  18. PKG_SUBPKGS:= LIBXSLT XSLTPROC
  19. PKGSD_XSLTPROC:= XSLT processor utility
  20. PKGSC_XSLTPROC:= misc
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS+= libmix
  23. endif
  24. include ${TOPDIR}/mk/host.mk
  25. include ${TOPDIR}/mk/package.mk
  26. $(eval $(call HOST_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE}))
  27. $(eval $(call PKG_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  28. $(eval $(call PKG_template,XSLTPROC,xsltproc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XSLTPROC},${PKGSC_XSLTPROC}))
  29. HOST_STYLE:= auto
  30. HOST_CONFIGURE_ARGS+= --without-python \
  31. --without-crypto \
  32. --with-libxml-prefix="${STAGING_HOST_DIR}/usr" \
  33. --with-libxml-include-prefix="${STAGING_HOST_DIR}/usr/include/libxml2" \
  34. --with-libxml-libs-prefix="${STAGING_HOST_DIR}/usr/lib"
  35. AUTOTOOL_STYLE:= autoreconf
  36. CONFIGURE_ARGS+= --with-libxml-prefix="${STAGING_TARGET_DIR}/usr" \
  37. --with-libxml-include-prefix="${STAGING_TARGET_DIR}/usr/include/libxml2" \
  38. --with-libxml-libs-prefix="${STAGING_TARGET_DIR}/usr/lib" \
  39. --without-python \
  40. --without-crypto \
  41. --without-debug \
  42. --without-mem-debug \
  43. --without-debugger
  44. xsltproc-install:
  45. ${INSTALL_DIR} ${IDIR_XSLTPROC}/usr/bin
  46. ${INSTALL_BIN} ${WRKINST}/usr/bin/xsltproc ${IDIR_XSLTPROC}/usr/bin
  47. libxslt-install:
  48. ${INSTALL_DIR} ${IDIR_LIBXSLT}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libxslt.so* ${IDIR_LIBXSLT}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libexslt.so* ${IDIR_LIBXSLT}/usr/lib
  51. include ${TOPDIR}/mk/host-bottom.mk
  52. include ${TOPDIR}/mk/pkg-bottom.mk