ports

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

curl.mk (1250B)


      1 # make deps: perl
      2 # src/tool_hugehelp.c is automatically generated by the mkhelp.pl perl script
      3 TARG = curl
      4 DEPS = zlib libressl cares
      5 INSTALL_BIN = src/curl
      6 INSTALL_MAN1 = \
      7 	docs/curl.1 \
      8 	docs/curl-config.1
      9 
     10 <$mkbuild/mk.common
     11 
     12 curl:QV:
     13 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
     14 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     15 	CC="$CC -static" ./configure \
     16 		--build="${TOOLCHAIN_TRIPLET}" \
     17 		--host="${HOST_TOOLCHAIN_TRIPLET}" \
     18 		--prefix="" \
     19 		--bindir="$BINDIR" \
     20 		--sbindir="$BINDIR" \
     21 		--libexecdir="$BINDIR" \
     22 		--mandir="$PREFIX/share/man" \
     23 		--disable-shared \
     24 		--disable-manual \
     25 		--disable-ntlm-wb \
     26 		--disable-pop3 \
     27 		--disable-imap \
     28 		--disable-ldap \
     29 		--disable-ldaps \
     30 		--disable-telnet \
     31 		--disable-smtp \
     32 		--disable-rtsp \
     33 		--without-nss \
     34 		--without-libssh2 \
     35 		--with-ssl=${openssl_libdir} \
     36 		--enable-cares=${cares_libdir} \
     37 		--with-zlib=${zlib_libdir} \
     38 		--enable-static \
     39 		--enable-ipv6
     40 	make -j$nprocs
     41 	# remake static, see: http://curl.haxx.se/mail/archive-2003-03/0115.html
     42 	rm -f src/curl
     43 	make LDFLAGS="-all-static $LDFLAGS"
     44 	# install in ./lib for use as a dependency.
     45 	make install LDFLAGS="-all-static $LDFLAGS" DESTDIR="`pwd`/lib"
     46 	# remove .la files for now ?
     47 	find "`pwd`" -iname "*.la" -exec rm {} \;