blob: 1b2d51986a004dead73b6aef2a51e730cb29d67a (
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
|
# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$
PORTNAME= gupnp-igd
PORTVERSION= 0.2.5
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= GNOME
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library to handle UPnP IGD port mapping
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= gobject-introspection>=0.10:devel/gobject-introspection \
gupnp>=0.18:net/gupnp
LIB_DEPENDS= libgssdp-1.2.so:net/gssdp \
libgupnp-1.2.so:net/gupnp
RUN_DEPENDS= gupnp>=0.18:net/gupnp
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT=PYTHON
OPTIONS_SUB= yes
USES= compiler:c11 gmake gnome libtool pathfix pkgconfig tar:xz
USE_GNOME= glib20 introspection:build
CONFIGURE_ARGS= --enable-introspection=yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
PYTHON_CONFIGURE_ENABLE=python
PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gobject>=2.12.0:devel/py-gobject@${PY_FLAVOR}
PYTHON_USES= python:2.7
post-patch:
@${REINPLACE_CMD} -e 's|gssdp-1.0|gssdp-1.2|; s|gupnp-1.0|gupnp-1.2|' ${WRKSRC}/configure ${WRKSRC}/gupnp-igd-1.0.pc.in ${WRKSRC}/libgupnp-igd/Makefile.in ${WRKSRC}/libgupnp-igd/GUPnPIgd-1.0.gir
@${REINPLACE_CMD} -e '/ --define-variable=/d' ${WRKSRC}/configure
.include <bsd.port.mk>
|