source: freewrt/package/curl/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 3.7 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=curl
6PKG_VERSION:=7.14.0
7PKG_RELEASE:=1
8PKG_MD5SUM:=46ce665e47d37fce1a0bad935cce58a9
9
10PKG_SOURCE_URL:=http://curl.haxx.se/download/ \
11 http://www.mirrorspace.org/curl/ \
12 http://curl.mirror.internet.tp/download/ \
13 ftp://ftp.sunet.se/pub/www/utilities/curl/ \
14 ftp://ftp.planetmirror.com/pub/curl/ \
15 http://www.mirrormonster.com/curl/download/ \
16 http://curl.mirrors.cyberservers.net/download/
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18PKG_CAT:=bzcat
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23include $(TOPDIR)/package/rules.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$(PKG_BUILD_DIR)/.configured:
29 (cd $(PKG_BUILD_DIR); 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 --enable-largefile \
54 --disable-nls \
55 --enable-shared \
56 --enable-static \
57 --disable-rpath \
58 --with-gnu-ld \
59 --disable-thread \
60 --enable-cookies \
61 --enable-crypto-auth \
62 --enable-nonblocking \
63 --enable-file \
64 --enable-ftp \
65 --enable-http \
66 --enable-ipv6 \
67 --disable-ares \
68 --disable-debug \
69 --disable-dict \
70 --disable-gopher \
71 --disable-ldap \
72 --disable-manual \
73 --disable-sspi \
74 --disable-telnet \
75 --disable-verbose \
76 --with-random="/dev/urandom" \
77 --with-ssl="$(STAGING_DIR)/usr" \
78 --without-ca-bundle \
79 --without-gnutls \
80 --without-libidn \
81 )
82 touch $@
83
84$(PKG_BUILD_DIR)/.built:
85 rm -rf $(PKG_INSTALL_DIR)
86 mkdir -p $(PKG_INSTALL_DIR)
87 $(MAKE) -C $(PKG_BUILD_DIR) \
88 DESTDIR="$(PKG_INSTALL_DIR)" \
89 all install
90 touch $@
91
92$(IPKG_CURL):
93 install -m0755 -d $(IDIR_CURL)/usr/bin
94 $(CP) $(PKG_INSTALL_DIR)/usr/bin/curl $(IDIR_CURL)/usr/bin/
95 $(RSTRIP) $(IDIR_CURL)
96 $(IPKG_BUILD) $(IDIR_CURL) $(PACKAGE_DIR)
97
98$(IPKG_LIBCURL):
99 install -m0755 -d $(IDIR_LIBCURL)/usr/lib
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so.* $(IDIR_LIBCURL)/usr/lib/
101 $(RSTRIP) $(IDIR_LIBCURL)
102 $(IPKG_BUILD) $(IDIR_LIBCURL) $(PACKAGE_DIR)
103
104$(STAGING_DIR)/usr/lib/libcurl.so: $(PKG_BUILD_DIR)/.built
105 mkdir -p $(STAGING_DIR)/usr/bin
106 $(CP) $(PKG_INSTALL_DIR)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/
107 mkdir -p $(STAGING_DIR)/usr/include
108 $(CP) $(PKG_INSTALL_DIR)/usr/include/curl $(STAGING_DIR)/usr/include/
109 mkdir -p $(STAGING_DIR)/usr/lib
110 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.a $(STAGING_DIR)/usr/lib/
111 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so* $(STAGING_DIR)/usr/lib/
112 $(SED) 's,-I/usr/include,,g' $(STAGING_DIR)/usr/bin/curl-config
113 $(SED) 's,-L/usr/lib,,g' $(STAGING_DIR)/usr/bin/curl-config
114 touch $@
115
116install-dev: $(STAGING_DIR)/usr/lib/libcurl.so
117
118uninstall-dev:
119 rm -rf \
120 $(STAGING_DIR)/usr/bin/curl-config \
121 $(STAGING_DIR)/usr/include/curl \
122 $(STAGING_DIR)/usr/lib/libcurl.a \
123 $(STAGING_DIR)/usr/lib/libcurl.so* \
124
125compile-targets: install-dev
126clean-targets: uninstall-dev
127
128mostlyclean:
129 -$(MAKE) -C $(PKG_BUILD_DIR) clean
130 rm -f $(PKG_BUILD_DIR)/.built
131
Note: See TracBrowser for help on using the repository browser.