# $MidnightBSD: trunk/net-im/libnice/Makefile 15462 2013-09-17 03:15:41Z laffer1 $

PORTNAME=	libnice
PORTVERSION=	0.1.3
CATEGORIES=	net-im devel
MASTER_SITES=	http://nice.freedesktop.org/releases/ \
		http://miwibox.org/distfiles/

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Library and transmitter that implements ICE-19
LICENSE=	lgpl
# dual.. mpl or lgpl

USES=		pkgconfig gettext
USE_GMAKE=	yes
USE_LDCONFIG=	yes
USE_GNOME=	gnomehack 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

post-patch:
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
	    	's|-Wno-missing-field-initializers|#|g'
	@${REINPLACE_CMD} -e 's|-Wno-missing-field-initializers|#|g' \
	    	${WRKSRC}/common.mk

.include <bsd.port.mk>
