From 5b3aa515d9b0a3e96300788c12c2d0e19eeaacf1 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sat, 6 Oct 2012 21:17:22 +0000 Subject: - Convert to new option framework - Trim headers Approved by: flz (irc) --- net-p2p/libtorrent/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'net-p2p/libtorrent') 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 -# # $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 @@ -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 -- cgit v1.2.3