Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 LIBXML2_PYTHON
  15. PKGSD_LIBXML2_DEV:= XML parser headers
  16. PKGSC_LIBXML2_DEV:= devel
  17. PKGSD_LIBXML2_PYTHON:= XML python bindings
  18. PKGSC_LIBXML2_PYTHON:= libs
  19. PKGSB_LIBXML2_PYTHON:= python2
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,LIBXML2,libxml2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBXML2_DEV,libxml2-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXML2_DEV},${PKGSC_LIBXML2_DEV}))
  23. $(eval $(call PKG_template,LIBXML2_PYTHON,libxml2-python,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXML2_PYTHON},${PKGSC_LIBXML2_PYTHON}))
  24. include $(TOPDIR)/mk/python.mk
  25. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  26. ifneq ($(ADK_PACKAGE_LIBXML2_PYTHON),)
  27. CONFIGURE_ARGS+= --with-python=${STAGING_DIR}/usr
  28. else
  29. CONFIGURE_ARGS+= --without-python
  30. endif
  31. CONFIGURE_ARGS+= --without-c14n \
  32. --without-debug \
  33. --without-docbook \
  34. --with-catalog \
  35. --with-html \
  36. --without-ftp \
  37. --without-http \
  38. --without-iconv \
  39. --without-iso8859x \
  40. --without-legacy \
  41. --with-output \
  42. --without-pattern \
  43. --without-push \
  44. --with-reader \
  45. --without-readline \
  46. --without-regexps \
  47. --with-sax1 \
  48. --with-schemas \
  49. --with-threads \
  50. --with-tree \
  51. --with-valid \
  52. --with-writer \
  53. --with-xinclude \
  54. --with-xpath \
  55. --with-xptr \
  56. --with-zlib
  57. libxml2-install:
  58. ${INSTALL_DIR} ${IDIR_LIBXML2}/usr/lib
  59. ${CP} ${WRKINST}/usr/lib/libxml2.so* ${IDIR_LIBXML2}/usr/lib
  60. libxml2-dev-install:
  61. ${INSTALL_DIR} ${IDIR_LIBXML2_DEV}/usr/include
  62. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBXML2_DEV}/usr/include
  63. ${INSTALL_DIR} ${IDIR_LIBXML2_DEV}/usr/lib/pkgconfig
  64. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/libxml-2.0.pc \
  65. ${IDIR_LIBXML2_DEV}/usr/lib/pkgconfig
  66. ${INSTALL_DIR} ${IDIR_LIBXML2_DEV}/usr/bin
  67. ${INSTALL_BIN} ${WRKINST}/usr/bin/xml2-config \
  68. ${IDIR_LIBXML2_DEV}/usr/bin
  69. libxml2-python-install:
  70. $(INSTALL_DIR) $(IDIR_LIBXML2_PYTHON)/usr/lib/python$(PYTHON_VERSION)/site-packages
  71. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  72. $(IDIR_LIBXML2_PYTHON)/usr/lib/python$(PYTHON_VERSION)/site-packages
  73. include ${TOPDIR}/mk/pkg-bottom.mk