summaryrefslogtreecommitdiffstats
path: root/net-im/libnice/Makefile
blob: c024a6bdf97dc07260da0457b86fd5423dda0e9a (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
41
42
43
44
45
46
47
48
49
50
51
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   libnice
PORTVERSION=    0.1.4
CATEGORIES= net-im devel
MASTER_SITES=   http://nice.freedesktop.org/releases/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Library and transmitter that implements ICE-19

USE_GMAKE=  yes
USES=       gettext pathfix pkgconfig
USE_LDCONFIG=   yes
USE_GNOME=  glib20 ltverhack
USE_AUTOTOOLS=  libtool
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'
    @${REINPLACE_CMD} -e 's|-Wno-missing-field-initializers|#|g' \
            ${WRKSRC}/common.mk

.include <bsd.port.mk>