source: packages/libs/libxml2/Makefile @ 20988

Last change on this file since 20988 was 20988, checked in by nico, 7 years ago

[packages] libxml2: update to 2.7.7

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libxml2
11PKG_VERSION:=2.7.7
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
16        ftp://fr.rpmfind.net/pub/libxml/
17PKG_MD5SUM:=9abc9959823ca9ff904f1fbcf21df066
18
19PKG_FIXUP:=libtool
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/libxml2
25  SECTION:=libs
26  CATEGORY:=Libraries
27  TITLE:=Gnome XML library
28  URL:=http://xmlsoft.org/
29  DEPENDS:=+libpthread +zlib
30endef
31
32define Package/libxml2/description
33  A library for manipulating XML and HTML resources.
34endef
35
36TARGET_CFLAGS += $(FPIC)
37
38CONFIGURE_ARGS += \
39        --enable-shared \
40        --enable-static \
41        --with-c14n \
42        --without-catalog \
43        --without-debug \
44        --without-docbook \
45        --with-html \
46        --without-ftp \
47        --without-http \
48        --without-iconv \
49        --without-iso8859x \
50        --without-legacy \
51        --with-output \
52        --without-pattern \
53        --without-push \
54        --without-python \
55        --with-reader \
56        --without-readline \
57        --without-regexps \
58        --with-sax1 \
59        --with-schemas \
60        --with-threads \
61        --with-tree \
62        --with-valid \
63        --with-writer \
64        --with-xinclude \
65        --with-xpath \
66        --with-xptr \
67        --with-zlib \
68
69define Build/InstallDev
70        $(INSTALL_DIR) $(2)/bin
71        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(2)/bin/
72        $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(2)/bin/xml2-config
73
74        $(INSTALL_DIR) $(1)/usr/include
75        $(CP) \
76                $(PKG_INSTALL_DIR)/usr/include/libxml2 \
77                $(1)/usr/include/
78
79        $(INSTALL_DIR) $(1)/usr/lib
80        $(CP) \
81                $(PKG_INSTALL_DIR)/usr/lib/libxml2.{la,a,so*} \
82                $(1)/usr/lib/
83
84        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
85        $(INSTALL_DATA) \
86                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
87                $(1)/usr/lib/pkgconfig/
88
89        $(INSTALL_DIR) $(2)/share/aclocal/
90        $(INSTALL_DATA) \
91                $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
92                $(2)/share/aclocal
93endef
94
95define Package/libxml2/install
96        $(INSTALL_DIR) $(1)/usr/lib
97        $(CP) \
98                $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* \
99                $(1)/usr/lib/
100endef
101
102
103$(eval $(call BuildPackage,libxml2))
Note: See TracBrowser for help on using the repository browser.