# -*- 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 # $Id$ PortSystem 1.0 #PortGroup muniversal 1.0 name restund version 0.4.1 categories net platforms darwin maintainers db.org:aeh license BSD description modular STUN/TURN server long_description ${name} is a ${description}. homepage http://www.creytiv.com/ master_sites ${homepage}pub/ checksums rmd160 0039dd52ad482a77f24a5c9aea6e28e0f6c4007e \ sha256 dba1ebf20153fd87c6a39ca5a9c50a7c2c7114e941b5a95f89e699771db85996 depends_lib port:libre \ path:bin/mysql_config5:mysql5 patchfiles patch-src-main.c.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/main.c } use_configure no build.args PREFIX=${prefix} \ SYSROOT_ALT=${prefix} \ LIBRE_MK=${prefix}/share/re/re.mk \ LIBRE_INC=${prefix}/include/re \ LIBRE_SO=${prefix}/lib destroot.args ${build.args} if {[tbool configure.ccache]} { build.env-append CCACHE=ccache } #if {[variant_isset universal]} { # foreach arch ${configure.universal_archs} { # lappend merger_build_env(${arch}) CC='${configure.cc} -arch ${arch}' # lappend merger_destroot_env(${arch}) CC='${configure.cc} -arch ${arch}' # } #} else { build.env-append CC='${configure.cc} ${configure.cc_archflags}' destroot.env-append CC='${configure.cc} ${configure.cc_archflags}' #} post-destroot { reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/restund.conf xinstall -m 644 ${worksrcpath}/etc/restund.conf ${destroot}${prefix}/etc/restund.conf.sample }