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