mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
65 lines
2.2 KiB
Tcl
65 lines
2.2 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup muniversal 1.0
|
|
|
|
name restund
|
|
version 0.4.12
|
|
categories net
|
|
platforms darwin
|
|
maintainers {db.org:aeh @alfredh}
|
|
license BSD
|
|
|
|
description modular STUN/TURN server
|
|
|
|
long_description ${name} is a ${description}.
|
|
|
|
homepage http://www.creytiv.com/
|
|
master_sites ${homepage}pub/
|
|
|
|
checksums rmd160 84dace7d3bf9ec256e38c24fa9130b5635a58e32 \
|
|
sha256 3170441dc882352ab0275556b6fc889b38b14203d936071b5fa12f39a5c86d47 \
|
|
size 183127
|
|
|
|
depends_lib port:libre
|
|
|
|
patchfiles patch-src-main.c.diff
|
|
|
|
post-patch {
|
|
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/main.c
|
|
}
|
|
|
|
use_configure no
|
|
|
|
build.args CCACHE= \
|
|
PREFIX=${prefix} \
|
|
SYSROOT_ALT=${prefix} \
|
|
SYSROOT="${configure.sdkroot}/usr" \
|
|
USE_MYSQL= \
|
|
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 {![info exists universal_possible]} {
|
|
set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
|
|
}
|
|
if {${universal_possible} && [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
|
|
xinstall -m 644 ${worksrcpath}/etc/restund.auth ${destroot}${prefix}/etc/restund.auth
|
|
}
|