source: freewrt/package/curl/Makefile@ eb945dd

freewrt_2_0
Last change on this file since eb945dd 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.6 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:= curl
10PKG_VERSION:= 7.14.0
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 46ce665e47d37fce1a0bad935cce58a9
13
14PKG_SOURCE_URL:= http://curl.haxx.se/download/ \
15 http://www.mirrorspace.org/curl/ \
16 http://curl.mirror.internet.tp/download/ \
17 ftp://ftp.sunet.se/pub/www/utilities/curl/ \
18 ftp://ftp.planetmirror.com/pub/curl/ \
19 http://www.mirrormonster.com/curl/download/ \
20 http://curl.mirrors.cyberservers.net/download/
21PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
22
23include $(TOPDIR)/mk/package.mk
24
25$(eval $(call PKG_template,CURL,curl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26$(eval $(call PKG_template,LIBCURL,libcurl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
27
28$(WRKBUILD)/.configured:
29 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(strip $(TARGET_CFLAGS))" \
32 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
33 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
34 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
35 ./configure \
36 --target=$(GNU_TARGET_NAME) \
37 --host=$(GNU_TARGET_NAME) \
38 --build=$(GNU_HOST_NAME) \
39 --program-prefix="" \
40 --program-suffix="" \
41 --prefix=/usr \
42 --exec-prefix=/usr \
43 --bindir=/usr/bin \
44 --datadir=/usr/share \
45 --includedir=/usr/include \
46 --infodir=/usr/share/info \
47 --libdir=/usr/lib \
48 --libexecdir=/usr/lib \
49 --localstatedir=/var \
50 --mandir=/usr/share/man \
51 --sbindir=/usr/sbin \
52 --sysconfdir=/etc \
53 --disable-nls \
54 --enable-shared \
55 --enable-static \
56 --disable-rpath \
57 --with-gnu-ld \
58 --disable-thread \
59 --enable-cookies \
60 --enable-crypto-auth \
61 --enable-nonblocking \
62 --enable-file \
63 --enable-ftp \
64 --enable-http \
65 --enable-ipv6 \
66 --disable-ares \
67 --disable-debug \
68 --disable-dict \
69 --disable-gopher \
70 --disable-ldap \
71 --disable-manual \
72 --disable-sspi \
73 --disable-telnet \
74 --disable-verbose \
75 --with-random="/dev/urandom" \
76 --with-ssl="$(STAGING_DIR)/usr" \
77 --without-ca-bundle \
78 --without-gnutls \
79 --without-libidn \
80 )
81 touch $@
82
83$(WRKBUILD)/.built:
84 rm -rf $(WRKINST)
85 mkdir -p $(WRKINST)
86 $(MAKE) -C $(WRKBUILD) \
87 DESTDIR="$(WRKINST)" \
88 all install
89 touch $@
90
91$(IPKG_CURL):
92 install -m0755 -d $(IDIR_CURL)/usr/bin
93 $(CP) $(WRKINST)/usr/bin/curl $(IDIR_CURL)/usr/bin/
94 $(RSTRIP) $(IDIR_CURL)
95 $(IPKG_BUILD) $(IDIR_CURL) $(PACKAGE_DIR)
96
97$(IPKG_LIBCURL):
98 install -m0755 -d $(IDIR_LIBCURL)/usr/lib
99 $(CP) $(WRKINST)/usr/lib/libcurl.so.* $(IDIR_LIBCURL)/usr/lib/
100 $(RSTRIP) $(IDIR_LIBCURL)
101 $(IPKG_BUILD) $(IDIR_LIBCURL) $(PACKAGE_DIR)
102
103$(STAGING_DIR)/usr/lib/libcurl.so: $(WRKBUILD)/.built
104 mkdir -p $(STAGING_DIR)/usr/bin
105 $(CP) $(WRKINST)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/
106 mkdir -p $(STAGING_DIR)/usr/include
107 $(CP) $(WRKINST)/usr/include/curl $(STAGING_DIR)/usr/include/
108 mkdir -p $(STAGING_DIR)/usr/lib
109 $(CP) $(WRKINST)/usr/lib/libcurl.a $(STAGING_DIR)/usr/lib/
110 $(CP) $(WRKINST)/usr/lib/libcurl.so* $(STAGING_DIR)/usr/lib/
111 $(SED) 's,-I/usr/include,,g' $(STAGING_DIR)/usr/bin/curl-config
112 $(SED) 's,-L/usr/lib,,g' $(STAGING_DIR)/usr/bin/curl-config
113 touch $@
114
115install-dev: $(STAGING_DIR)/usr/lib/libcurl.so
116
117uninstall-dev:
118 rm -rf \
119 $(STAGING_DIR)/usr/bin/curl-config \
120 $(STAGING_DIR)/usr/include/curl \
121 $(STAGING_DIR)/usr/lib/libcurl.a \
122 $(STAGING_DIR)/usr/lib/libcurl.so* \
123
124compile-targets: install-dev
125clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.