ports

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

libtorrent.mk (720B)


      1 TARG = libtorrent
      2 DEPS = libressl libsigcpp
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 libtorrent:QV:
      7 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
      8 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
      9 	export OPENSSL_CFLAGS="-I${libressl_includedir}"
     10 	export OPENSSL_LIBS="-L${libressl_libdir} -lssl -lcrypto -lz"
     11 	export STUFF_CFLAGS="-I${libsigcpp_includedir} -I${libsigcpp_libdir}/sigc++-2.0/include"
     12 	export STUFF_LIBS="-L${libsigcpp_libdir} -lsigc-2.0"
     13 	#
     14 	CC="$CC" ./configure \
     15 		--prefix="$PREFIX" \
     16 		--mandir="$ROOT/share/man" \
     17 		--disable-shared \
     18 		--enable-static \
     19 		--enable-ipv6
     20 	# make install for use as a dependency.
     21 	make -j$nprocs DESTDIR=`pwd`/lib install
     22 	# remove .la files for now ?
     23 	find `pwd`/lib -iname "*.la" -exec rm {} \;