You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
2.9 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libxml2
  9. PKG_VERSION:=2.9.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://gd.tuwien.ac.at/languages/libxml/ \
  13. http://xmlsoft.org/sources/ \
  14. ftp://fr.rpmfind.net/pub/libxml/
  15. PKG_MD5SUM:=9e6a9aca9d155737868b3dc5fd82f788
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/host-build.mk
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/libxml2
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=Gnome XML library
  28. URL:=http://xmlsoft.org/
  29. DEPENDS:=+libpthread +zlib
  30. endef
  31. define Package/libxml2/description
  32. A library for manipulating XML and HTML resources.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. TARGET_LDFLAGS += -lz
  36. CONFIGURE_ARGS += \
  37. --enable-shared \
  38. --enable-static \
  39. --with-c14n \
  40. --without-catalog \
  41. --with-debug \
  42. --without-docbook \
  43. --with-html \
  44. --without-ftp \
  45. --without-http \
  46. --without-iconv \
  47. --without-iso8859x \
  48. --without-legacy \
  49. --with-output \
  50. --without-pattern \
  51. --without-push \
  52. --without-python \
  53. --with-reader \
  54. --without-readline \
  55. --without-regexps \
  56. --with-sax1 \
  57. --with-schemas \
  58. --with-threads \
  59. --with-tree \
  60. --with-valid \
  61. --with-writer \
  62. --with-xinclude \
  63. --with-xpath \
  64. --with-xptr \
  65. --with-zlib \
  66. --without-lzma
  67. HOST_CONFIGURE_ARGS += \
  68. --enable-shared \
  69. --enable-static \
  70. --with-c14n \
  71. --without-catalog \
  72. --with-debug \
  73. --without-docbook \
  74. --with-html \
  75. --without-ftp \
  76. --without-http \
  77. --without-iconv \
  78. --without-iso8859x \
  79. --without-legacy \
  80. --with-output \
  81. --without-pattern \
  82. --without-push \
  83. --without-python \
  84. --with-reader \
  85. --without-readline \
  86. --without-regexps \
  87. --with-sax1 \
  88. --with-schemas \
  89. --with-threads \
  90. --with-tree \
  91. --with-valid \
  92. --with-writer \
  93. --with-xinclude \
  94. --with-xpath \
  95. --with-xptr \
  96. --with-zlib \
  97. --without-lzma
  98. define Build/InstallDev
  99. $(INSTALL_DIR) $(2)/bin
  100. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
  101. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
  102. $(INSTALL_DIR) $(1)/usr/include
  103. $(CP) $(PKG_INSTALL_DIR)/usr/include/libxml2 $(1)/usr/include/
  104. $(INSTALL_DIR) $(1)/usr/lib
  105. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} $(1)/usr/lib/
  106. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  107. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(1)/usr/lib/pkgconfig/
  108. $(INSTALL_DIR) $(2)/share/aclocal/
  109. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(2)/share/aclocal
  110. endef
  111. define Package/libxml2/install
  112. $(INSTALL_DIR) $(1)/usr/lib
  113. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so* $(1)/usr/lib/
  114. endef
  115. $(eval $(call HostBuild))
  116. $(eval $(call BuildPackage,libxml2))