From 06c6a5fe93afdeb750b46735b1d1723e8969f7bf Mon Sep 17 00:00:00 2001 From: "Frank J. Laszlo" Date: Thu, 21 May 2009 15:23:12 +0000 Subject: [PATCH] - Add WITH_UPNP knob to "Enable Universal Plug and Play support" PR: ports/133901 Submitted by: Mario Sergio Fujikawa Ferreira Approved by: Boris Kovalenko (maitainer) --- net-p2p/amule-devel/Makefile | 12 ++++++++++-- net-p2p/amule/Makefile | 12 ++++++++++-- net-p2p/amule2/Makefile | 12 ++++++++++-- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/net-p2p/amule-devel/Makefile b/net-p2p/amule-devel/Makefile index 5483e61e039e..2a838e0ad993 100644 --- a/net-p2p/amule-devel/Makefile +++ b/net-p2p/amule-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= aMule PORTVERSION= 2.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-p2p MASTER_SITES= SF/amule @@ -45,7 +45,8 @@ OPTIONS= OPTIMIZE "Build with optimization" on \ ALC "Compile aMule Link Creator (+GUI)" on \ AMULEDAEMON "Compile aMule daemon version - EXPERIMENTAL" off \ WXUNICODE "Enable Unicode support" on \ - GEOIP "Enable GeoIP IP2Country support" off + GEOIP "Enable GeoIP IP2Country support" off \ + UPNP "Enable Universal Plug and Play support" off DOCSDIR= ${PREFIX}/share/doc/aMule-${PORTVERSION} PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt \ @@ -123,6 +124,13 @@ LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP CONFIGURE_ARGS+= --disable-geoip .endif +.if defined(WITH_UPNP) +CONFIGURE_ARGS+= --with-libupnp-prefix=${LOCALBASE} +LIB_DEPENDS+= upnp.3:${PORTSDIR}/devel/upnp +.else +CONFIGURE_ARGS+= --disable-upnp +.endif + .if !defined(WITHOUT_WXUNICODE) WX_UNICODE=yes .endif diff --git a/net-p2p/amule/Makefile b/net-p2p/amule/Makefile index 5483e61e039e..2a838e0ad993 100644 --- a/net-p2p/amule/Makefile +++ b/net-p2p/amule/Makefile @@ -7,7 +7,7 @@ PORTNAME= aMule PORTVERSION= 2.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-p2p MASTER_SITES= SF/amule @@ -45,7 +45,8 @@ OPTIONS= OPTIMIZE "Build with optimization" on \ ALC "Compile aMule Link Creator (+GUI)" on \ AMULEDAEMON "Compile aMule daemon version - EXPERIMENTAL" off \ WXUNICODE "Enable Unicode support" on \ - GEOIP "Enable GeoIP IP2Country support" off + GEOIP "Enable GeoIP IP2Country support" off \ + UPNP "Enable Universal Plug and Play support" off DOCSDIR= ${PREFIX}/share/doc/aMule-${PORTVERSION} PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt \ @@ -123,6 +124,13 @@ LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP CONFIGURE_ARGS+= --disable-geoip .endif +.if defined(WITH_UPNP) +CONFIGURE_ARGS+= --with-libupnp-prefix=${LOCALBASE} +LIB_DEPENDS+= upnp.3:${PORTSDIR}/devel/upnp +.else +CONFIGURE_ARGS+= --disable-upnp +.endif + .if !defined(WITHOUT_WXUNICODE) WX_UNICODE=yes .endif diff --git a/net-p2p/amule2/Makefile b/net-p2p/amule2/Makefile index 5483e61e039e..2a838e0ad993 100644 --- a/net-p2p/amule2/Makefile +++ b/net-p2p/amule2/Makefile @@ -7,7 +7,7 @@ PORTNAME= aMule PORTVERSION= 2.2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-p2p MASTER_SITES= SF/amule @@ -45,7 +45,8 @@ OPTIONS= OPTIMIZE "Build with optimization" on \ ALC "Compile aMule Link Creator (+GUI)" on \ AMULEDAEMON "Compile aMule daemon version - EXPERIMENTAL" off \ WXUNICODE "Enable Unicode support" on \ - GEOIP "Enable GeoIP IP2Country support" off + GEOIP "Enable GeoIP IP2Country support" off \ + UPNP "Enable Universal Plug and Play support" off DOCSDIR= ${PREFIX}/share/doc/aMule-${PORTVERSION} PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt \ @@ -123,6 +124,13 @@ LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP CONFIGURE_ARGS+= --disable-geoip .endif +.if defined(WITH_UPNP) +CONFIGURE_ARGS+= --with-libupnp-prefix=${LOCALBASE} +LIB_DEPENDS+= upnp.3:${PORTSDIR}/devel/upnp +.else +CONFIGURE_ARGS+= --disable-upnp +.endif + .if !defined(WITHOUT_WXUNICODE) WX_UNICODE=yes .endif