aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/libtorrent
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-10-06 21:17:22 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-10-06 21:17:22 +0000
commit5b3aa515d9b0a3e96300788c12c2d0e19eeaacf1 (patch)
treea3828aec2eded0266b6fc7480aba4b211cccca2f /net-p2p/libtorrent
parent7a4423b9ad16ec03de979b84c9d9abf371aaa30e (diff)
downloadports-5b3aa515d9b0a3e96300788c12c2d0e19eeaacf1.tar.gz
ports-5b3aa515d9b0a3e96300788c12c2d0e19eeaacf1.zip
- Convert to new option framework
- Trim headers Approved by: flz (irc)
Notes
Notes: svn path=/head/; revision=305404
Diffstat (limited to 'net-p2p/libtorrent')
-rw-r--r--net-p2p/libtorrent/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile
index 58487e8241fd..652953d2c62c 100644
--- a/net-p2p/libtorrent/Makefile
+++ b/net-p2p/libtorrent/Makefile
@@ -1,9 +1,4 @@
-# New ports collection makefile for: libtorrent
-# Date created: Jan 07 2005
-# Whom: Florent Thoumie <flz@xbsd.org>
-#
# $FreeBSD$
-#
PORTNAME?= libtorrent
PORTVERSION?= 0.13.2
@@ -22,13 +17,16 @@ CONFLICTS?= libtorrent-devel-[0-9]* \
rblibtorrent-devel-[0-9]*
USE_AUTOTOOLS= libtool
-USE_GNOME= pkgconfig gnomehack
+USE_GNOME= gnomehack
+USE_PKGCONFIG= build
USE_OPENSSL= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-OPTIONS= KQUEUE "Use kqueue(2) support" on \
- IPV6 "Enable IPv6 support" off
+OPTIONS_DEFINE= KQUEUE IPV6
+OPTIONS_DEFAULT= KQUEUE
+KQUEUE_DESC= Use kqueue(2) support
+IPV6_DESC= Enable IPv6 support
.include <bsd.port.pre.mk>
@@ -44,10 +42,11 @@ CONFIGURE_ARGS+= --disable-debug --with-openssl=${OPENSSLBASE}
post-patch:
@${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/configure
-.if !defined(WITHOUT_KQUEUE)
+.if ${PORT_OPTIONS:MKQUEUE}
CONFIGURE_ARGS+= --with-kqueue
.endif
+.if ${PORT_OPTIONS:MIPV6}
.if defined(WITH_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.endif