diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2014-07-13 10:17:45 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2014-07-13 10:17:45 +0000 |
commit | 725b832a155babeba58a6096975b5461e1f665ca (patch) | |
tree | ccbc40b815d0aa8f45a7faa1c430afdb5bb6c7b8 /net-p2p | |
parent | 231c8094957dc94631b2556282805a64de68f472 (diff) | |
download | ports-725b832a155babeba58a6096975b5461e1f665ca.tar.gz ports-725b832a155babeba58a6096975b5461e1f665ca.zip |
Notes
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/libtorrent/Makefile | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile index 09092c4e9b46..718e7f0f1669 100644 --- a/net-p2p/libtorrent/Makefile +++ b/net-p2p/libtorrent/Makefile @@ -16,6 +16,8 @@ USES= compiler:c++11-lang libtool pathfix pkgconfig USE_OPENSSL= yes USE_LDCONFIG= yes GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-debug +CONFIGURE_ENV= OPENSSL_LIBS="-L${OPENSSLBASE}/lib -ssl -crypto" OPENSSL_CFLAGS="-I${OPENSSLBASE}/include" OPTIONS_DEFINE= KQUEUE IPV6 OPTIONS_DEFAULT= KQUEUE @@ -23,15 +25,6 @@ KQUEUE_DESC= Use kqueue(2) support .include <bsd.port.pre.mk> -.if defined(WITH_OPENSSL_BASE) -# The reason why I use this is cause openssl from base doesn't install a .pc file -# and configure will fail trying to find it. Setting both of those variables to -# a *non-empty* value by-passes the pkg-config check. -CONFIGURE_ENV= OPENSSL_LIBS="-L/usr/lib -ssl -crypto" OPENSSL_CFLAGS="-I/usr/include" -.endif - -CONFIGURE_ARGS+= --disable-debug - # Disable amd64 atomic ops on i386 when using gcc # undefined reference to __sync_add_and_fetch_8 # undefined reference to __sync_fetch_and_and_8 @@ -45,6 +38,14 @@ CXXFLAGS+= -std=c++11 EXTRA_PATCHES+= ${FILESDIR}/extra-clang .endif +.if ${PORT_OPTIONS:MKQUEUE} +CONFIGURE_ARGS+= --with-kqueue +.endif + +.if ${PORT_OPTIONS:MIPV6} +CONFIGURE_ARGS+= --enable-ipv6 +.endif + post-patch: @${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 @@ -58,12 +59,4 @@ post-patch: ${WRKSRC}/src/torrent/utils/log.cc .endif -.if ${PORT_OPTIONS:MKQUEUE} -CONFIGURE_ARGS+= --with-kqueue -.endif - -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-ipv6 -.endif - .include <bsd.port.post.mk> |