source: trunk/dports/net/restund/Portfile

Last change on this file was 130977, checked in by khindenburg@…, 3 years ago

libre, librem, baresip, restund: upgrade per maintainer #46198

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
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 130977 2015-01-04 18:19:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                restund
8version             0.4.11
9categories          net
10platforms           darwin
11maintainers         db.org:aeh
12license             BSD
13
14description         modular STUN/TURN server
15
16long_description    ${name} is a ${description}.
17
18homepage            http://www.creytiv.com/
19master_sites        ${homepage}pub/
20
21checksums           rmd160  f4168287a76177b99b75cde8625ac7fb9676b604 \
22                    sha256  d4630dfb8777f12cc48ed118da0ea6445bc60e94ff916ab0ca5d436c74bdc2d7
23
24depends_lib         port:libre
25
26patchfiles          patch-src-main.c.diff
27
28post-patch {
29    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/main.c
30}
31
32use_configure       no
33
34build.args          PREFIX=${prefix} \
35                    SYSROOT_ALT=${prefix} \
36                    USE_MYSQL= \
37                    LIBRE_MK=${prefix}/share/re/re.mk \
38                    LIBRE_INC=${prefix}/include/re \
39                    LIBRE_SO=${prefix}/lib
40destroot.args       ${build.args}
41
42if {[tbool configure.ccache]} {
43    build.env-append CCACHE=ccache
44}
45
46#if {[variant_isset universal]} {
47#    foreach arch ${configure.universal_archs} {
48#        lappend merger_build_env(${arch})    CC='${configure.cc} -arch ${arch}'
49#        lappend merger_destroot_env(${arch}) CC='${configure.cc} -arch ${arch}'
50#    }
51#} else {
52    build.env-append    CC='${configure.cc} ${configure.cc_archflags}'
53    destroot.env-append CC='${configure.cc} ${configure.cc_archflags}'
54#}
55
56post-destroot {
57    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/restund.conf
58    xinstall -m 644 ${worksrcpath}/etc/restund.conf ${destroot}${prefix}/etc/restund.conf.sample
59    xinstall -m 644 ${worksrcpath}/etc/restund.auth ${destroot}${prefix}/etc/restund.auth
60}
Note: See TracBrowser for help on using the repository browser.