Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.9.1
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= 9c0cfef285d5c4a5c80d00904ddab380
  8. PKG_DESCR:= XML C parser and toolkit
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= zlib
  11. PKG_BUILDDEP:= zlib autotool
  12. PKG_URL:= http://www.xmlsoft.org/
  13. PKG_SITES:= http://xmlsoft.org/sources/
  14. PKG_OPTS:= dev
  15. PKG_SUBPKGS:= LIBXML2 LIBXML2_PYTHON
  16. PKGSD_LIBXML2_PYTHON:= XML python bindings
  17. PKGSC_LIBXML2_PYTHON:= libs
  18. PKGSB_LIBXML2_PYTHON:= python2
  19. ifeq ($(ADK_STATIC),y)
  20. PKG_OPTS+= libmix
  21. endif
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LIBXML2,libxml2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  24. $(eval $(call PKG_template,LIBXML2_PYTHON,libxml2-python,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBXML2_PYTHON},${PKGSC_LIBXML2_PYTHON}))
  25. include $(TOPDIR)/mk/python.mk
  26. AUTOTOOL_STYLE:= autoreconf
  27. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  28. TARGET_LDFLAGS+= -lpthread
  29. ifneq ($(ADK_PACKAGE_LIBXML2_PYTHON),)
  30. CONFIGURE_ARGS+= --with-python=$(STAGING_TARGET_DIR)/usr
  31. else
  32. CONFIGURE_ARGS+= --without-python
  33. endif
  34. CONFIGURE_ARGS+= --without-c14n \
  35. --without-debug \
  36. --without-docbook \
  37. --with-catalog \
  38. --with-html \
  39. --without-ftp \
  40. --without-http \
  41. --without-iconv \
  42. --without-iso8859x \
  43. --without-legacy \
  44. --with-output \
  45. --without-pattern \
  46. --without-push \
  47. --with-reader \
  48. --without-readline \
  49. --without-regexps \
  50. --with-sax1 \
  51. --with-schemas \
  52. --with-threads \
  53. --with-tree \
  54. --with-valid \
  55. --with-writer \
  56. --with-xinclude \
  57. --with-xpath \
  58. --with-xptr \
  59. --with-zlib
  60. libxml2-install:
  61. ${INSTALL_DIR} ${IDIR_LIBXML2}/usr/lib
  62. ${CP} ${WRKINST}/usr/lib/libxml2.so* ${IDIR_LIBXML2}/usr/lib
  63. libxml2-python-install:
  64. $(INSTALL_DIR) $(IDIR_LIBXML2_PYTHON)/usr/lib/python$(PYTHON_VERSION)/site-packages
  65. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/*.{so,py} \
  66. $(IDIR_LIBXML2_PYTHON)/usr/lib/python$(PYTHON_VERSION)/site-packages
  67. include ${TOPDIR}/mk/pkg-bottom.mk