Lines 1-45
Link Here
|
1 |
# Created by: Yen-Ming Lee <leeym@leeym.com> |
1 |
# Created by: Yen-Ming Lee <leeym@leeym.com> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= upnp |
4 |
PORTNAME= upnp |
5 |
PORTVERSION= 1.6.25 |
5 |
DISTVERSIONPREFIX= release- |
6 |
PORTEPOCH= 1 |
6 |
DISTVERSION?= 1.6.25 |
7 |
CATEGORIES= devel |
7 |
PORTEPOCH?= 1 |
8 |
MASTER_SITES= SF/p${PORTNAME}/p${PORTNAME}/libUPnP%20${PORTVERSION} |
8 |
CATEGORIES= devel |
9 |
DISTNAME= lib${PORTNAME}-${PORTVERSION} |
|
|
10 |
|
9 |
|
11 |
MAINTAINER= phascolarctos@protonmail.ch |
10 |
MAINTAINER= phascolarctos@protonmail.ch |
12 |
COMMENT= Universal Plug and Play Software Development Kit |
11 |
COMMENT= Universal Plug and Play Software Development Kit |
13 |
|
12 |
|
14 |
LICENSE= BSD3CLAUSE |
13 |
LICENSE= BSD3CLAUSE |
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
16 |
|
15 |
|
17 |
USES= cpe libtool pathfix tar:bzip2 |
16 |
USES= autoreconf cpe libtool pathfix tar:bzip2 |
18 |
USE_LDCONFIG= yes |
17 |
USE_LDCONFIG= yes |
|
|
18 |
USE_GITHUB= yes |
19 |
|
19 |
|
20 |
PORTSCOUT= skipv:1.8.3 # released on 2017-11-14; older than 1.6.25 |
20 |
GH_ACCOUNT= mrjimenez |
|
|
21 |
GH_PROJECT= pupnp |
21 |
|
22 |
|
22 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
23 |
INSTALL_TARGET= install-strip |
24 |
CONFIGURE_ARGS+= --enable-device --enable-gena --enable-soap --enable-ssdp --enable-webserver |
24 |
TEST_TARGET= check |
25 |
INSTALL_TARGET= install-strip |
25 |
CPE_VENDOR= libupnp_project |
26 |
TEST_TARGET= check |
26 |
CPE_PRODUCT= libupnp |
27 |
CPE_VENDOR= libupnp_project |
|
|
28 |
CPE_PRODUCT= libupnp |
27 |
|
29 |
|
28 |
PORTDOCS= ixml/*.html upnp/*.html |
30 |
PORTDOCS= ixml/*.html upnp/*.html |
|
|
31 |
PORTSCOUT= limit:^1\.6\. # tracks only 1.6.*: 1.8.x are also release but they break the ABI so they are tracked in another port (devel/upnp18) |
29 |
|
32 |
|
30 |
OPTIONS_DEFINE= DEBUG DOCS IPV6 |
33 |
OPTIONS_DEFINE= CLIENT DEBUG DOCS EXAMPLES IPV6 LARGEFILE OPENSSL OPTSSDP POSTWRITE REUSEADDR SCRIPTSUPPORT TCP_BLOCK TEST TOOLS UNSPECIFIED_SERVER |
|
|
34 |
OPTIONS_DEFAULT= CLIENT LARGEFILE OPTSSDP REUSEADDR SCRIPTSUPPORT TCP_BLOCK TOOLS |
31 |
OPTIONS_SUB= yes |
35 |
OPTIONS_SUB= yes |
32 |
|
36 |
|
33 |
DEBUG_CONFIGURE_ENABLE= debug |
37 |
CLIENT_DESC= Enable control point code |
34 |
DOCS_CONFIGURE_WITH= documentation=${DOCSDIR} |
38 |
CLIENT_CONFIGURE_ENABLE= client |
35 |
IPV6_CONFIGURE_ENABLE= ipv6 |
39 |
DEBUG_CONFIGURE_ENABLE= debug |
|
|
40 |
EXAMPLES_CONFIGURE_ENABLE= samples |
41 |
IPV6_CONFIGURE_ENABLE= ipv6 |
42 |
LARGEFILE_DESC= Large files support |
43 |
LARGEFILE_CONFIGURE_ENABLE= largefile |
44 |
OPENSSL_CONFIGURE_ENABLE= open_ssl |
45 |
OPENSSL_USES= ssl |
46 |
OPENSSL_LDFLAGS= -lssl |
47 |
OPTSSDP_DESC= Enable optional SSDP headers support |
48 |
OPTSSDP_CONFIGURE_ENABLE= optssdp |
49 |
POSTWRITE_DESC= Write to filesystem on unhandled POST requests |
50 |
POSTWRITE_CONFIGURE_ENABLE= postwrite |
51 |
REUSEADDR_DESC= Bind miniserver socket with reuseaddr |
52 |
REUSEADDR_CONFIGURE_ENABLE= reuseaddr |
53 |
SCRIPTSUPPORT_DESC= Enable script support for IXML document tree |
54 |
SCRIPTSUPPORT_CONFIGURE_ENABLE= scriptsupport |
55 |
TCP_BLOCK_DESC= Enable blocking TCP connections |
56 |
TCP_BLOCK_CONFIGURE_ENABLE= blocking_tcp_connections |
57 |
TEST_DESC= Perfom a few tests (implies TOOLS) |
58 |
TEST_IMPLIES= TOOLS |
59 |
TOOLS_DESC= Enable helpers API in upnptools.h |
60 |
TOOLS_CONFIGURE_ENABLE= tools |
61 |
UNSPECIFIED_SERVER_DESC= Enable unspecified SERVER header |
62 |
UNSPECIFIED_SERVER_CONFIGURE_ENABLE= unspecified_server |
36 |
|
63 |
|
37 |
pre-configure: |
64 |
post-build-TEST-on: test |
38 |
${REINPLACE_CMD} -e '386s,docs/dist,,' ${WRKSRC}/Makefile.in |
|
|
39 |
|
65 |
|
40 |
do-install-DOCS-on: |
66 |
do-install-DOCS-on: |
41 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
67 |
.ifndef PKGNAMESUFFIX |
|
|
68 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
42 |
(cd ${WRKSRC}/docs/dist/html && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) |
69 |
(cd ${WRKSRC}/docs/dist/html && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) |
43 |
${RM} -r ${STAGEDIR}${DOCSDIR}/examples |
70 |
${RM} -r ${STAGEDIR}${DOCSDIR}/examples |
|
|
71 |
.else |
72 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
73 |
${INSTALL_MAN} ${WRKSRC}/upnp/doc/UPnP_Programming_Guide.pdf ${STAGEDIR}${DOCSDIR} |
74 |
.endif |
44 |
|
75 |
|
45 |
.include <bsd.port.mk> |
76 |
.include <bsd.port.mk> |