aboutsummaryrefslogtreecommitdiff
path: root/devel/upnp/Makefile
blob: d53b6203899ff7d5542a2906435e9bd72e1de213 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Created by: Yen-Ming Lee <leeym@leeym.com>

PORTNAME=	upnp
DISTVERSIONPREFIX=	release-
DISTVERSION=	1.14.10
PORTEPOCH=	1
CATEGORIES=	devel

MAINTAINER=	driesm.michiels@gmail.com
COMMENT=	Universal Plug and Play Software Development Kit

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		autoreconf cpe libtool pathfix pkgconfig
CPE_VENDOR=	libupnp_project
CPE_PRODUCT=	libupnp
USE_GITHUB=	yes
GH_ACCOUNT=	pupnp
GH_PROJECT=	pupnp
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-device \
		--enable-gena \
		--enable-soap \
		--enable-ssdp \
		--enable-webserver
INSTALL_TARGET=	install-strip
TEST_TARGET=	check

OPTIONS_DEFINE=		CLIENT DEBUG DOCS EXAMPLES IPV6 LARGEFILE OPENSSL \
			OPTSSDP POSTWRITE REUSEADDR SCRIPTSUPPORT TCP_BLOCK \
			TEST TOOLS UNSPECIFIED_SERVER
OPTIONS_DEFAULT=	CLIENT LARGEFILE OPTSSDP REUSEADDR SCRIPTSUPPORT \
			TCP_BLOCK TOOLS
OPTIONS_SUB=		yes

CLIENT_DESC=			Enable control point code
LARGEFILE_DESC=			Large files support
OPTSSDP_DESC=			Enable optional SSDP headers support
POSTWRITE_DESC=			Write to filesystem on unhandled POST requests
REUSEADDR_DESC=			Bind miniserver socket with reuseaddr
SCRIPTSUPPORT_DESC=		Enable script support for IXML document tree
TCP_BLOCK_DESC=			Enable blocking TCP connections
TEST_DESC=			Perfom a few tests (implies TOOLS)
TOOLS_DESC=			Enable helpers API in upnptools.h
UNSPECIFIED_SERVER_DESC=	Enable unspecified SERVER header

CLIENT_CONFIGURE_ENABLE=		client
DEBUG_CONFIGURE_ENABLE=			debug
EXAMPLES_CONFIGURE_ENABLE=		samples
IPV6_CONFIGURE_ENABLE=			ipv6
LARGEFILE_CONFIGURE_ENABLE=		largefile
OPENSSL_USES=				ssl
OPENSSL_CONFIGURE_ENABLE=		open_ssl
OPENSSL_CONFIGURE_ENV=			OPENSSL_CFLAGS="-I${OPENSSLINC}" \
					OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
OPTSSDP_CONFIGURE_ENABLE=		optssdp
POSTWRITE_CONFIGURE_ENABLE=		postwrite
REUSEADDR_CONFIGURE_ENABLE=		reuseaddr
SCRIPTSUPPORT_CONFIGURE_ENABLE=		scriptsupport
TCP_BLOCK_CONFIGURE_ENABLE=		blocking_tcp_connections
TEST_IMPLIES=				TOOLS
TOOLS_CONFIGURE_ENABLE=			tools
UNSPECIFIED_SERVER_CONFIGURE_ENABLE=	unspecified_server

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/docs/UPnP_Programming_Guide.pdf \
		${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>