Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 ${ADK_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/data
  10. PKG_DEPENDS:= libxml2 libstdcxx
  11. PKG_BUILDDEP:= libxml2
  12. HOST_BUILDDEP:= libxml2-host
  13. PKG_URL:= http://xmlsoft.org/XSLT
  14. PKG_SITES:= http://xmlsoft.org/sources/
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. PKG_SUBPKGS:= LIBXSLT XSLTPROC
  18. PKGSD_XSLTPROC:= XSLT processor utility
  19. PKGSC_XSLTPROC:= sys/misc
  20. include ${ADK_TOPDIR}/mk/host.mk
  21. include ${ADK_TOPDIR}/mk/package.mk
  22. $(eval $(call HOST_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE}))
  23. $(eval $(call PKG_template,LIBXSLT,libxslt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  24. $(eval $(call PKG_template,XSLTPROC,xsltproc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_XSLTPROC},${PKGSC_XSLTPROC}))
  25. HOST_CONFIGURE_ARGS+= --without-python \
  26. --without-crypto \
  27. --with-libxml-prefix="${STAGING_HOST_DIR}/usr" \
  28. --with-libxml-include-prefix="${STAGING_HOST_DIR}/usr/include/libxml2" \
  29. --with-libxml-libs-prefix="${STAGING_HOST_DIR}/usr/lib"
  30. AUTOTOOL_STYLE:= autoreconf
  31. CONFIGURE_ARGS+= --with-libxml-prefix="${STAGING_TARGET_DIR}/usr" \
  32. --with-libxml-include-prefix="${STAGING_TARGET_DIR}/usr/include/libxml2" \
  33. --with-libxml-libs-prefix="${STAGING_TARGET_DIR}/usr/lib" \
  34. --without-python \
  35. --without-crypto \
  36. --without-debug \
  37. --without-mem-debug \
  38. --without-debugger
  39. xsltproc-install:
  40. ${INSTALL_DIR} ${IDIR_XSLTPROC}/usr/bin
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/xsltproc ${IDIR_XSLTPROC}/usr/bin
  42. libxslt-install:
  43. ${INSTALL_DIR} ${IDIR_LIBXSLT}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libxslt.so* ${IDIR_LIBXSLT}/usr/lib
  45. ${CP} ${WRKINST}/usr/lib/libexslt.so* ${IDIR_LIBXSLT}/usr/lib
  46. include ${ADK_TOPDIR}/mk/host-bottom.mk
  47. include ${ADK_TOPDIR}/mk/pkg-bottom.mk