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 libre |
---|
8 | version 0.3.0 |
---|
9 | categories net |
---|
10 | platforms darwin |
---|
11 | maintainers db.org:aeh |
---|
12 | |
---|
13 | description generic library for real-time communications with async \ |
---|
14 | I/O support |
---|
15 | |
---|
16 | long_description ${name} is a ${description}. |
---|
17 | |
---|
18 | homepage http://www.creytiv.com/ |
---|
19 | master_sites ${homepage}pub/ |
---|
20 | |
---|
21 | distname re-${version} |
---|
22 | |
---|
23 | checksums sha1 8c930a396d71c7ef3658fb86102dc64b191e5aff \ |
---|
24 | rmd160 0cd1746119dac6b6a5d83d14e4e554fce4eb6170 |
---|
25 | |
---|
26 | depends_lib port:zlib \ |
---|
27 | port:openssl |
---|
28 | |
---|
29 | use_configure no |
---|
30 | |
---|
31 | build.args PREFIX=${prefix} SYSROOT_ALT=${prefix} CCACHE= |
---|
32 | |
---|
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/libre.dylib ${destroot}${prefix}/lib/libre.dylib" |
---|
51 | } |
---|