Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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:= libxml2
  5. PKG_VERSION:= 2.10.3
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 5d2cc3d78bec3dbe212a9d7fa629ada25a7da928af432c93060ff5c17ee28a9c
  8. PKG_DESCR:= xml parser and toolkit
  9. PKG_SECTION:= libs/data
  10. PKG_DEPENDS:= zlib
  11. PKG_BUILDDEP:= libxml2-host python3 zlib
  12. HOST_BUILDDEP:= python3-host
  13. PKG_URL:= http://www.xmlsoft.org/
  14. PKG_SITES:= https://download.gnome.org/sources/libxml2/2.10/
  15. PKG_OPTS:= dev
  16. include $(ADK_TOPDIR)/mk/host.mk
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call HOST_template,LIBXML2,libxml2,$(PKG_VERSION)-$(PKG_RELEASE)))
  19. $(eval $(call PKG_template,LIBXML2,libxml2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  20. HOST_STYLE:= auto
  21. HOST_CONFIGURE_ARGS+= --without-python \
  22. --with-threads \
  23. --without-iconv \
  24. --without-lzma \
  25. --without-zlib
  26. CONFIGURE_ARGS+= --without-c14n \
  27. --without-debug \
  28. --with-catalog \
  29. --with-html \
  30. --without-ftp \
  31. --without-http \
  32. --without-iconv \
  33. --without-lzma \
  34. --without-iso8859x \
  35. --without-legacy \
  36. --with-output \
  37. --without-pattern \
  38. --without-push \
  39. --with-reader \
  40. --without-readline \
  41. --without-regexps \
  42. --with-sax1 \
  43. --with-schemas \
  44. --with-threads \
  45. --with-tree \
  46. --with-valid \
  47. --with-writer \
  48. --with-xinclude \
  49. --with-xpath \
  50. --with-xptr \
  51. --without-python \
  52. --with-zlib='$(STAGING_TARGET_DIR)/usr'
  53. libxml2-install:
  54. $(INSTALL_DIR) $(IDIR_LIBXML2)/usr/lib
  55. $(CP) $(WRKINST)/usr/lib/libxml2.so* $(IDIR_LIBXML2)/usr/lib
  56. include $(ADK_TOPDIR)/mk/host-bottom.mk
  57. include $(ADK_TOPDIR)/mk/pkg-bottom.mk