mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
60 lines
1.9 KiB
Tcl
60 lines
1.9 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
|
|
PortGroup github 1.0
|
|
|
|
name librem
|
|
categories net
|
|
platforms darwin
|
|
maintainers {db.org:aeh @alfredh}
|
|
license BSD
|
|
description portable audio and video processing media library
|
|
long_description ${name} is a ${description}.
|
|
|
|
github.setup baresip rem 1.0.0 v
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
github.tarball_from tarball
|
|
checksums rmd160 6d122eb2c386cfc29aa8427ceb73e63e151ae2a7 \
|
|
sha256 7adec440616377c268130f00ac9e0d4f338dd880c9747d96d7031046e6489a68 \
|
|
size 47226
|
|
revision 1
|
|
|
|
|
|
depends_lib-append \
|
|
port:libre \
|
|
path:lib/libssl.dylib:openssl
|
|
|
|
use_configure no
|
|
|
|
build.args \
|
|
CCACHE= \
|
|
PREFIX=${prefix} \
|
|
SYSROOT="${configure.sdkroot}/usr" \
|
|
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 {![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 {
|
|
system "install_name_tool -id ${prefix}/lib/librem.dylib ${destroot}${prefix}/lib/librem.dylib"
|
|
}
|