source: freewrt/package/libxml2/Makefile@ 36e3a1c

freewrt_2_0
Last change on this file since 36e3a1c was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@975 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 3.5 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= libxml2
10PKG_VERSION:= 2.6.20
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 8f0b3ce721bda11401e656b90ba4e78c
13
14PKG_SOURCE_URL:= http://xmlsoft.org/sources/ \
15 ftp://fr.rpmfind.net/pub/libxml/
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,LIBXML2,libxml2,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(strip $(TARGET_CFLAGS))" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 --disable-nls \
47 --enable-shared \
48 --enable-static \
49 --disable-rpath \
50 --with-gnu-ld \
51 --without-c14n \
52 --without-catalog \
53 --without-debug \
54 --without-docbook \
55 --with-html \
56 --without-ftp \
57 --without-http \
58 --without-iconv \
59 --without-iso8859x \
60 --without-legacy \
61 --with-output \
62 --without-pattern \
63 --without-push \
64 --without-python \
65 --with-reader \
66 --without-readline \
67 --without-regexps \
68 --with-sax1 \
69 --with-schemas \
70 --with-threads \
71 --with-tree \
72 --with-valid \
73 --with-writer \
74 --with-xinclude \
75 --with-xpath \
76 --with-xptr \
77 --with-zlib \
78 );
79 touch $@
80
81$(WRKBUILD)/.built:
82 rm -rf $(WRKINST)
83 mkdir -p $(WRKINST)
84 $(MAKE) -C $(WRKBUILD) \
85 DESTDIR="$(WRKINST)" \
86 all install
87 touch $@
88
89$(IPKG_LIBXML2):
90 install -m0755 -d $(IDIR_LIBXML2)/usr/lib
91 $(CP) $(WRKINST)/usr/lib/libxml2.so.* $(IDIR_LIBXML2)/usr/lib/
92 $(RSTRIP) $(IDIR_LIBXML2)
93 $(IPKG_BUILD) $(IDIR_LIBXML2) $(PACKAGE_DIR)
94
95$(STAGING_DIR)/usr/lib/libxml2.so: $(WRKBUILD)/.built
96 mkdir -p $(STAGING_DIR)/usr/bin
97 $(CP) $(WRKINST)/usr/bin/xml2-config $(STAGING_DIR)/usr/bin/
98 mkdir -p $(STAGING_DIR)/usr/include
99 $(CP) $(WRKINST)/usr/include/libxml2 $(STAGING_DIR)/usr/include/
100 mkdir -p $(STAGING_DIR)/usr/lib
101 $(CP) $(WRKINST)/usr/lib/libxml2.{a,so*} $(STAGING_DIR)/usr/lib/
102 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
103 $(CP) $(WRKINST)/usr/lib/pkgconfig/libxml-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/
104 $(SED) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR)/usr/bin/xml2-config
105 $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/bin/xml2-config
106 $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xml2-config
107 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/bin/xml2-config
108 $(SED) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR)/usr/bin/xml2-config
109 $(SED) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc
110 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc
111 touch $@
112
113install-dev: $(STAGING_DIR)/usr/lib/libxml2.so
114
115uninstall-dev:
116 rm -rf \
117 $(STAGING_DIR)/usr/bin/xml2-config \
118 $(STAGING_DIR)/usr/include/libxml2 \
119 $(STAGING_DIR)/usr/lib/libxml2.{a,so*} \
120 $(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc \
121
122compile-targets: install-dev
123clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.