Magellan Linux

Contents of /branches/R11-stable/core/curl/curl-7.31.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18059 - (show annotations) (download)
Thu Jun 27 06:52:57 2013 UTC (10 years, 11 months ago) by niro
File size: 1133 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="curl"
4 PVER="7.31.0"
5 PBUILD="r1"
6
7 PCAT="net-misc"
8
9 DESCRIPTION="curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP."
10 HOMEPAGE="http://curl.haxx.se/"
11
12 DEPEND=">= dev-libs/openssl-1.0.1a
13 >= app-crypt/ca-certificates-2011"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild
19
20 SRC_URI=(
21 http://curl.haxx.se/download/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd ${HOMEPAGE}/download | grep ${PNAME}- | lasttarball"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # fix link issues with as-needed - fixme
33 sed -i 's:LDADD = $(LIBDIR)/libcurl.la:& -lssl -lcrypto:' docs/examples/Makefile.am || die
34 sed -i 's:@USE_EXPLICIT_LIB_DEPS_FALSE@LDADD = $(LIBDIR)/libcurl.la:& -lssl -lcrypto:' \
35 docs/examples/Makefile.in || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 mconfigure \
43 --with-gnu-ld \
44 --enable-http \
45 --enable-ftp \
46 --enable-gopher \
47 --enable-file \
48 --enable-dict \
49 --enable-telnet \
50 --enable-nonblocking \
51 --with-ssl \
52 || die
53
54 mmake || die
55 }