-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
39 lines (32 loc) · 1.44 KB
/
Portfile
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name miniupnpc
epoch 2
version 2.2.8
revision 0
categories net
platforms darwin freebsd
license BSD
maintainers {@edilmedeiros gmail.com:jose.edil+miniupnp} \
openmaintainer
description Lightweight client for UPnP protocol
long_description ${description}
homepage http://miniupnp.free.fr/
master_sites http://miniupnp.free.fr/files/
checksums rmd160 ea2704c9af2d90c443fa4c255c9ea877159fd44f \
sha256 05b929679091b9921b6b6c1f25e39e4c8d1f4d46c8feb55a412aa697aee03a93 \
size 104603
variant universal {}
use_configure no
build.env PREFIX=${prefix} \
CC=${configure.cc} \
"CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
"LDFLAGS=${configure.cflags} [get_canonical_archflags ld]"
destroot.env PREFIX=${prefix}
test.run yes
variant debug description {Build MiniUPnP client with DEBUG options, thus dumping SOAP calls} {
build.env-append CPPFLAGS=-DDEBUG
}
livecheck.type regex
livecheck.url http://miniupnp.free.fr/files/
livecheck.regex ${name}-(\\d+\\.\\d+(?:\\.\\d+)*)${extract.suffix}