aboutsummaryrefslogtreecommitdiff
path: root/net/gupnp/Makefile
blob: 3d6079b51c8745769b820334e500b6bcb2f5a660 (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
PORTNAME=	gupnp
PORTVERSION=	1.6.3
CATEGORIES=	net
MASTER_SITES=	GNOME

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Framework for UPnP devices
WWW=		https://wiki.gnome.org/Projects/GUPnP

LICENSE=	LGPL20
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	glib>=2.69:devel/glib20 \
		gobject-introspection>=1.36:devel/gobject-introspection \
		gssdp>=1.6.2:net/gssdp \
		libsoup3>=2.99.0:devel/libsoup3
LIB_DEPENDS=	libgssdp-1.6.so:net/gssdp \
		libsoup-3.0.so:devel/libsoup3 \
		libuuid.so:misc/e2fsprogs-libuuid

USES=		compiler:c11 cpe gnome meson pkgconfig python:run shebangfix tar:xz
USE_GNOME=	glib20 introspection:build libxml2

MESON_ARGS=	-Dexamples=false -Dgtk_doc=false -Dintrospection=true
USE_CSTD=	c11
USE_LDCONFIG=	yes

PLIST_SUB=	PATCH_VERSION=${PORTVERSION:E}

CPE_VENDOR=	gnome

CONFLICTS_INSTALL=	gupnp14

SHEBANG_FILES=	tools/gupnp-binding-tool

OPTIONS_DEFINE=	VAPI
OPTIONS_SUB=	yes

VAPI_MESON_TRUE=	vapi
VAPI_USES=		vala:build

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == "clang"
CPPFLAGS+=	-Wno-return-type
.endif

.include <bsd.port.post.mk>