summaryrefslogtreecommitdiffstats
path: root/net-im/libnice/Makefile
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-05-22 16:31:44 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-05-22 16:31:44 +0800
commitc04adae14fffb45c6674866e2db4a12dd45c5a29 (patch)
treeb40faf0ceab9b15e2ec9911e38e234e60cd664e1 /net-im/libnice/Makefile
parentd34265f9fdd0463ce48e68c2379e12baee467308 (diff)
downloadmarcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.tar
marcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.tar.gz
marcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.tar.bz2
marcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.tar.lz
marcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.tar.xz
marcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.tar.zst
marcuscom-ports-c04adae14fffb45c6674866e2db4a12dd45c5a29.zip
Update to 0.1.4.
Break out the gstreamer plugins out in slave ports. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18496 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net-im/libnice/Makefile')
-rw-r--r--net-im/libnice/Makefile30
1 files changed, 26 insertions, 4 deletions
diff --git a/net-im/libnice/Makefile b/net-im/libnice/Makefile
index 32392a2c6..b2bb8a09f 100644
--- a/net-im/libnice/Makefile
+++ b/net-im/libnice/Makefile
@@ -1,9 +1,9 @@
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
-# $MCom$
+# $MCom: ports/trunk/net-im/libnice/Makefile 18393 2013-04-26 21:23:07Z kwm $
PORTNAME= libnice
-PORTVERSION= 0.1.3
+PORTVERSION= 0.1.4
CATEGORIES= net-im devel
MASTER_SITES= http://nice.freedesktop.org/releases/
@@ -14,12 +14,34 @@ USE_GMAKE= yes
USES= gettext pathfix pkgconfig
USE_LDCONFIG= yes
USE_GNOME= glib20 ltverhack
-USE_GSTREAMER= yes
USE_AUTOTOOLS= libtool
-CONFIGURE_ARGS= --without-gstreamer --with-gstreamer-0.10
CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_GETIFADDRS
LDFLAGS+= -L${LOCALBASE}/lib
+OPTIONS_DEFINE= GUPNP
+GUPNP_DESC= UPnP IGD port mapping support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGUPNP}
+LIB_DEPENDS+= gupnp-igd-1.0:${PORTSDIR}/net/gupnp-igd
+.else
+CONFIGURE_ARGS+=--disable-gupnp
+.endif
+
+.if defined(LIBNICE_SLAVE)
+. if ${LIBNICE_SLAVE}==gstreamer010
+USE_GSTREAMER= yes
+CONFIGURE_ARGS+=--without-gstreamer --with-gstreamer-0.10
+. endif
+. if ${LIBNICE_SLAVE}==gstreamer1
+USE_GSTREAMER1= yes
+CONFIGURE_ARGS+=--with-gstreamer --without-gstreamer-0.10
+. endif
+.else
+CONFIGURE_ARGS= --without-gstreamer --without-gstreamer-0.10
+.endif
+
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-Wno-missing-field-initializers|#|g'