ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

curl.mk (1134B)


      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-ntlm-wb \
     25 		--disable-pop3 \
     26 		--disable-imap \
     27 		--disable-ldap \
     28 		--disable-ldaps \
     29 		--disable-telnet \
     30 		--disable-smtp \
     31 		--disable-rtsp \
     32 		--without-nss \
     33 		--without-libssh2 \
     34 		--with-ssl \
     35 		--enable-cares=${cares_libdir} \
     36 		--with-zlib=${zlib_libdir} \
     37 		--enable-static \
     38 		--enable-ipv6
     39 	make -j$nprocs
     40 	rm src/curl
     41 	make LDFLAGS="-all-static $LDFLAGS"
     42 	# install in ./lib for use as a dependency.
     43 	make install LDFLAGS="-all-static $LDFLAGS" DESTDIR="`pwd`/lib"
     44 	# remove .la files for now ?
     45 	find "`pwd`" -iname "*.la" -exec rm {} \;