ports

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

rtorrent.mk (911B)


      1 TARG = rtorrent
      2 DEPS = ncurses zlib libressl libtorrent libsigcpp curl
      3 INSTALL_BIN = src/rtorrent
      4 INSTALL_MAN1 = doc/rtorrent.1
      5 
      6 <$mkbuild/mk.common
      7 
      8 rtorrent:QV:
      9 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
     10 	export CPPFLAGS="$CFLAGS"
     11 	export CXXFLAGS="$CFLAGS"
     12 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     13 	export libcurl_CFLAGS="-I${curl_includedir} -I${libressl_includedir}"
     14 	export libcurl_LIBS="-L${curl_libdir} -lcurl -L${libressl_libdir} -lssl -lcrypto -L${zlib_libdir} -lz"
     15 	export sigc_CFLAGS="-I${libsigcpp_includedir} -I${libsigcpp_libdir}/sigc++-2.0/include"
     16 	export sigc_LIBS="-L${libsigcpp_libdir} -lsigc-2.0"
     17 	export libtorrent_CFLAGS="-I${libtorrent_includedir}"
     18 	export libtorrent_LIBS="-L${libtorrent_libdir} -ltorrent -L${ncurses_libdir}"
     19 	./configure \
     20 		--prefix="$PREFIX" \
     21 		--mandir="$ROOT/share/man" \
     22 		--disable-shared \
     23 		--enable-static \
     24 		--enable-ipv6
     25 	make -j$nprocs LDFLAGS="-all-static"