Some Mac OS X specific things
[novacoin.git] / contrib / miniupnpc / Portfile
1 # -*- 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
2 # $Id$
3
4 PortSystem          1.0
5
6 name                miniupnpc
7 epoch               2
8 version             1.6
9 revision            2
10 categories          net
11 platforms           darwin
12 license             BSD
13 maintainers         singingwolfboy openmaintainer
14 description         Lightweight client for UPnP protocol
15 long_description    \
16     ${description}
17     
18 homepage            http://miniupnp.free.fr/
19 master_sites        http://miniupnp.free.fr/files/download.php?file=${distname}${extract.suffix}&dummy=
20 checksums           md5     88055f2d4a061cfd4cfe25a9eae22f67 \
21                     sha1    ef8f2edb17f2e7c5b8dc67ee80a65c199d823e0a \
22                     rmd160  d86b75b331a3fb5525c71708548f311977c0598f
23
24 use_configure       no
25
26 variant universal {}
27 if {[variant_isset universal]} {
28     set archflags ${configure.universal_cflags}
29 } else {
30     set archflags ${configure.cc_archflags}
31 }
32
33 build.args-append   CC="${configure.cc} ${archflags}"
34
35 post-patch {
36     reinplace "s|-Wl,-install_name,|-Wl,-install_name,${prefix}/lib/|" ${worksrcpath}/Makefile
37 }
38
39 destroot.destdir    PREFIX=${prefix} INSTALLPREFIX=${destroot}${prefix}
40
41 livecheck.type      regex
42 livecheck.url       http://miniupnp.free.fr/files/
43 livecheck.regex     ${name}-(\\d+(\\.\\d{1,4})+)${extract.suffix}