| 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
|---|
| 2 | # $Id: Portfile 78859 2011-05-24 15:57:51Z ryandesign@macports.org $ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | #PortGroup muniversal 1.0 |
|---|
| 6 | |
|---|
| 7 | name restund |
|---|
| 8 | version 0.3.0 |
|---|
| 9 | revision 1 |
|---|
| 10 | categories net |
|---|
| 11 | platforms darwin |
|---|
| 12 | maintainers db.org:aeh |
|---|
| 13 | |
|---|
| 14 | description modular STUN/TURN server |
|---|
| 15 | |
|---|
| 16 | long_description ${name} is a ${description}. |
|---|
| 17 | |
|---|
| 18 | homepage http://www.creytiv.com/ |
|---|
| 19 | master_sites ${homepage}pub/ |
|---|
| 20 | |
|---|
| 21 | checksums sha1 807d1ac92f40b7df497b7a8950cc65223c103127 \ |
|---|
| 22 | rmd160 7e69d406d3dd0237211f3c64d5f8f9f224324f1a |
|---|
| 23 | |
|---|
| 24 | depends_lib port:libre \ |
|---|
| 25 | port:mysql5 |
|---|
| 26 | |
|---|
| 27 | universal_variant no |
|---|
| 28 | |
|---|
| 29 | use_configure no |
|---|
| 30 | |
|---|
| 31 | build.args PREFIX=${prefix} \ |
|---|
| 32 | SYSROOT_ALT=${prefix} \ |
|---|
| 33 | LIBRE_MK=${prefix}/share/re/re.mk \ |
|---|
| 34 | LIBRE_INC=${prefix}/include/re \ |
|---|
| 35 | LIBRE_SO=${prefix}/lib |
|---|
| 36 | destroot.args ${build.args} |
|---|
| 37 | |
|---|
| 38 | if {[tbool configure.ccache]} { |
|---|
| 39 | build.env-append CCACHE=ccache |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | #if {[variant_isset universal]} { |
|---|
| 43 | # foreach arch ${configure.universal_archs} { |
|---|
| 44 | # lappend merger_build_env(${arch}) CC='${configure.cc} -arch ${arch}' |
|---|
| 45 | # lappend merger_destroot_env(${arch}) CC='${configure.cc} -arch ${arch}' |
|---|
| 46 | # } |
|---|
| 47 | #} else { |
|---|
| 48 | build.env-append CC='${configure.cc} ${configure.cc_archflags}' |
|---|
| 49 | destroot.env-append CC='${configure.cc} ${configure.cc_archflags}' |
|---|
| 50 | #} |
|---|
| 51 | |
|---|
| 52 | patchfiles patch-src-main.c.diff |
|---|
| 53 | |
|---|
| 54 | post-destroot { |
|---|
| 55 | xinstall -m 755 -d ${destroot}${prefix}/etc/ |
|---|
| 56 | reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/restund.conf |
|---|
| 57 | xinstall ${worksrcpath}/etc/restund.conf ${destroot}${prefix}/etc/ |
|---|
| 58 | } |
|---|