summaryrefslogtreecommitdiffstats
path: root/net/gssdp/Makefile
blob: 7911c3b5da8787bf92f4006b913f18bca478bfb0 (plain)
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
# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$

PORTNAME=	gssdp
PORTVERSION=	0.14.2
CATEGORIES=	net
MASTER_SITES=	GNOME

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Framework for UPnP devices

LICENSE=	LGPL20

BUILD_DEPENDS=	gobject-introspection>=0.6.7:${PORTSDIR}/devel/gobject-introspection
LIB_DEPENDS=	soup-2.4:${PORTSDIR}/devel/libsoup

OPTIONS_DEFINE=	GTK2
OPTIONS_DEFAULT=GTK2

CONFIGURE_ARGS=	--enable-introspection=yes
CONFIGURE_ENV=	VAPIGEN=""
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	glib20
USE_LDCONFIG=	yes
USE_PKGCONFIG=	build
USE_XZ=		yes
USES=		pathfix

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGTK2}
CONFIGURE_ARGS+=--with-gtk
USE_GNOME+=	gtk20
PLIST_SUB=	GTK=""
.else
CONFIGURE_ARGS+=--without-gtk
PLIST_SUB=	GTK="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|__OpenBSD__|__FreeBSD__|' ${WRKSRC}/libgssdp/gssdp-socket-functions.c

.include <bsd.port.mk>
OpenPOWER on IntegriCloud