Makefile 2.0 KB

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