summaryrefslogtreecommitdiff
path: root/net-im/libnice/Makefile
blob: 0d39e8b818ac156bf04472f7946cde770bcbe6b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PORTNAME=	libnice
PORTVERSION=	0.1.21
PORTREVISION=	2
CATEGORIES=	net-im devel
MASTER_SITES=	http://nice.freedesktop.org/releases/

MAINTAINER=	gnome@FreeBSD.org
COMMENT?=	Library and transmitter that implements ICE-19
WWW=		https://nice.freedesktop.org/

LICENSE=	LGPL21 MPL11
LICENSE_COMB=	dual

LIB_DEPENDS?=	libgnutls.so:security/gnutls

USES=		gettext gmake gnome localbase:ldflags meson pathfix \
		pkgconfig python ssl
USE_LDCONFIG=	yes
USE_GNOME=	glib20 introspection:build
CPPFLAGS+=	-DHAVE_GETIFADDRS
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	GUPNP
GUPNP_MESON_ENABLED=	gupnp
GUPNP_DESC=	UPnP IGD port mapping support
GUPNP_LIB_DEPENDS+=	libgupnp-igd-1.6.so:net/gupnp-igd

MESON_ARGS+=-Dtests=disabled -Dgtk_doc=disabled -Dcrypto-library=openssl

.if defined(LIBNICE_SLAVE)
USES+=		gstreamer
MESON_ARGS+=-Dgstreamer=enabled
.else
MESON_ARGS+=-Dgstreamer=disabled
.endif

post-patch-GUPNP-on:
	@${REINPLACE_CMD} -e 's|gupnp-igd-1.0|gupnp-igd-1.6|' ${WRKSRC}/meson.build

.include <bsd.port.mk>