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.

100 lines
2.2 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:=1
  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)/package.mk
  23. define Package/libxml2
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=Gnome XML library
  27. URL:=http://xmlsoft.org/
  28. DEPENDS:=+libpthread +zlib
  29. endef
  30. define Package/libxml2/description
  31. A library for manipulating XML and HTML resources.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS += \
  35. --enable-shared \
  36. --enable-static \
  37. --with-c14n \
  38. --without-catalog \
  39. --with-debug \
  40. --without-docbook \
  41. --with-html \
  42. --without-ftp \
  43. --without-http \
  44. --without-iconv \
  45. --without-iso8859x \
  46. --without-legacy \
  47. --with-output \
  48. --without-pattern \
  49. --without-push \
  50. --without-python \
  51. --with-reader \
  52. --without-readline \
  53. --without-regexps \
  54. --with-sax1 \
  55. --with-schemas \
  56. --with-threads \
  57. --with-tree \
  58. --with-valid \
  59. --with-writer \
  60. --with-xinclude \
  61. --with-xpath \
  62. --with-xptr \
  63. --with-zlib \
  64. --without-lzma
  65. define Build/InstallDev
  66. $(INSTALL_DIR) $(2)/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
  68. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
  69. $(INSTALL_DIR) $(1)/usr/include
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/libxml2 $(1)/usr/include/
  71. $(INSTALL_DIR) $(1)/usr/lib
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} $(1)/usr/lib/
  73. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  74. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(1)/usr/lib/pkgconfig/
  75. $(INSTALL_DIR) $(2)/share/aclocal/
  76. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(2)/share/aclocal
  77. endef
  78. define Package/libxml2/install
  79. $(INSTALL_DIR) $(1)/usr/lib
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so* $(1)/usr/lib/
  81. endef
  82. $(eval $(call BuildPackage,libxml2))