Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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:= libxml2
  5. PKG_VERSION:= 2.7.8
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 8127a65e8c3b08856093099b52599c86
  8. PKG_DESCR:= XML C parser and toolkit
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= zlib
  11. PKG_BUILDDEP:= zlib
  12. PKG_URL:= http://www.xmlsoft.org/
  13. PKG_SITES:= http://xmlsoft.org/sources/
  14. PKG_SUBPKGS:= LIBXML2 LIBXML2_DEV
  15. PKGSD_LIBXML2_DEV:= XML parser headers
  16. PKGSC_LIBXML2_DEV:= devel
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBXML2,libxml2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBXML2_DEV,libxml2-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXML2_DEV},${PKGSC_LIBXML2_DEV}))
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. CONFIGURE_ARGS+= --without-c14n \
  22. --without-catalog \
  23. --without-debug \
  24. --without-docbook \
  25. --with-html \
  26. --without-ftp \
  27. --without-http \
  28. --without-iconv \
  29. --without-iso8859x \
  30. --without-legacy \
  31. --with-output \
  32. --without-pattern \
  33. --without-push \
  34. --without-python \
  35. --with-reader \
  36. --without-readline \
  37. --without-regexps \
  38. --with-sax1 \
  39. --with-schemas \
  40. --with-threads \
  41. --with-tree \
  42. --with-valid \
  43. --with-writer \
  44. --with-xinclude \
  45. --with-xpath \
  46. --with-xptr \
  47. --with-zlib
  48. libxml2-install:
  49. ${INSTALL_DIR} ${IDIR_LIBXML2}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libxml2.so* ${IDIR_LIBXML2}/usr/lib
  51. libxml2-dev-install:
  52. ${INSTALL_DIR} ${IDIR_LIBXML2_DEV}/usr/include
  53. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBXML2_DEV}/usr/include
  54. ${INSTALL_DIR} ${IDIR_LIBXML2_DEV}/usr/lib/pkgconfig
  55. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/libxml-2.0.pc \
  56. ${IDIR_LIBXML2_DEV}/usr/lib/pkgconfig
  57. ${INSTALL_DIR} ${IDIR_LIBXML2_DEV}/usr/bin
  58. ${INSTALL_BIN} ${WRKINST}/usr/bin/xml2-config \
  59. ${IDIR_LIBXML2_DEV}/usr/bin
  60. include ${TOPDIR}/mk/pkg-bottom.mk