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 78775 2011-05-21 21:14:34Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup muniversal 1.0 |
---|
6 | |
---|
7 | name librem |
---|
8 | version 0.3.0 |
---|
9 | categories net |
---|
10 | platforms darwin |
---|
11 | maintainers db.org:aeh |
---|
12 | |
---|
13 | description portable audio and video processing media library |
---|
14 | |
---|
15 | long_description ${name} is a ${description}. |
---|
16 | |
---|
17 | homepage http://www.creytiv.com/ |
---|
18 | master_sites ${homepage}pub/ |
---|
19 | |
---|
20 | distname rem-${version} |
---|
21 | |
---|
22 | checksums sha1 55103154e882b14956b77ca4ad8f4ae1d7ad82db \ |
---|
23 | rmd160 94f784b69ea07b17d02ebb09979c5651632d6a2f |
---|
24 | |
---|
25 | depends_lib port:libre |
---|
26 | |
---|
27 | use_configure no |
---|
28 | |
---|
29 | build.args PREFIX=${prefix} SYSROOT_ALT=${prefix} CCACHE= \ |
---|
30 | LIBRE_MK=${prefix}/share/re/re.mk \ |
---|
31 | LIBRE_INC=${prefix}/include/re \ |
---|
32 | LIBRE_SO=${prefix}/lib |
---|
33 | destroot.args ${build.args} |
---|
34 | |
---|
35 | if {[tbool configure.ccache]} { |
---|
36 | build.env-append CCACHE=ccache |
---|
37 | } |
---|
38 | |
---|
39 | if {[variant_isset universal]} { |
---|
40 | foreach arch ${configure.universal_archs} { |
---|
41 | lappend merger_build_env(${arch}) CC='${configure.cc} -arch ${arch}' |
---|
42 | lappend merger_destroot_env(${arch}) CC='${configure.cc} -arch ${arch}' |
---|
43 | } |
---|
44 | } else { |
---|
45 | build.env-append CC='${configure.cc} ${configure.cc_archflags}' |
---|
46 | destroot.env-append CC='${configure.cc} ${configure.cc_archflags}' |
---|
47 | } |
---|
48 | |
---|
49 | post-destroot { |
---|
50 | system "install_name_tool -id ${prefix}/lib/librem.dylib ${destroot}${prefix}/lib/librem.dylib" |
---|
51 | } |
---|