ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 8b3eebe6aa684042e3ed106cec95591077d4a786
parent 18d6d50aeb35f5842782aa359c8a590f706dc54e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 24 Apr 2014 22:36:30 +0200

ports: add curl

initial version

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Acurl/curl.mk | 37+++++++++++++++++++++++++++++++++++++
Acurl/mkfile | 6++++++
Acurl/v.mk | 1+
3 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/curl/curl.mk b/curl/curl.mk @@ -0,0 +1,37 @@ +TARG = curl +DEPS = zlib openssl +INSTALL_BIN = src/curl +INSTALL_MAN1 = \ + docs/curl.1 \ + docs/curl-config.1 + +# TODO: add libcurl deps (libcurl.a), and curl deps (/bin/curl). +# TODO: --with-ca-path="$prefix"/etc/ssl/certs + +<$mkbuild/mk.common + +curl:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + CC="$CC -static" ./configure --prefix="" \ + --bindir="$BINDIR" --sbindir="$BINDIR" --libexecdir="$BINDIR" \ + --mandir="/share/man" \ + --disable-shared \ + --disable-ntlm-wb \ + --disable-pop3 \ + --disable-imap \ + --disable-ldap \ + --disable-ldaps \ + --disable-telnet \ + --disable-smtp \ + --disable-rtsp \ + --without-nss \ + --without-libssh2 \ + --with-ssl=$openssl_libdir \ + --with-zlib \ + --enable-static \ + --enable-ipv6 + make -j$nprocs + # remake static, see: http://curl.haxx.se/mail/archive-2003-03/0115.html + rm -f src/curl + make LDFLAGS="-all-static $LDFLAGS" diff --git a/curl/mkfile b/curl/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = curl-$v +url = http://curl.haxx.se/download/curl-$v.tar.gz +mkfile = ../curl.mk diff --git a/curl/v.mk b/curl/v.mk @@ -0,0 +1 @@ +v = 7.36.0