source: trunk/dports/devel/apr/Portfile

Last change on this file was 137063, checked in by larryv@…, 2 years ago

apr: Don't create flat-namespace dylib on Yosemite (#47938)

Quash the Libtool MACOSX_DEPLOYMENT_TARGET bug (comment:35:ticket:44596,
http://lists.gnu.org/archive/html/libtool-patches/2014-09/msg00000.html).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 137063 2015-06-03 23:31:18Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            apr
6version         1.5.2
7revision        1
8categories      devel
9maintainers     geeklair.net:dluke
10platforms       darwin
11description     The apache group's portability library
12license         Apache-2
13
14long_description        The Apache Portable Runtime is a library of C data \
15                        structures and routines, forming a system portability \
16                        layer that covers as many operating systems as \
17                        possible, including Unices, Win32, BeOS, and OS/2.
18
19homepage        http://apr.apache.org/
20master_sites    apache:apr
21
22use_bzip2       yes
23checksums       md5     4e9769f3349fe11fc0a5e1b224c236aa \
24                sha1    6d757fcf7c687fc300c1066076f2e8380ff8cbc0 \
25                rmd160  85c581b26684e962247182c6ea1055fe13d33026
26
27# XCode 3.x's gcc-4.0 generates bad code in apr's translation which can be caught by enabling
28# debugging in apr, apr-util, and subversion with LANG="en_US.UTF-8"
29# Assertion failed: (node->next == NULL), function put_xlate_handle_node, file subversion/libsvn_subr/utf.c, line 378.
30if {[vercmp ${xcodeversion} 3.0] >= 0} {
31    compiler.blacklist-append gcc-4.0
32}
33
34use_parallel_build      yes
35configure.ccache        no
36#configure's tests don't work right for sed/gsed if we just set SED here
37configure.env   ac_cv_prog_AWK=awk ac_cv_path_SED=sed lt_ECHO=/bin/echo lt_cv_path_SED=sed
38configure.args  --with-installbuilddir=${prefix}/share/apr-1/build \
39                --enable-nonportable-atomics \
40                ac_cv_func_setpgrp_void=no
41
42patchfiles      apr_h_patch.diff \
43                yosemite-libtool.patch
44
45pre-configure   {
46        #- -no-cpp-precomp is obsolete
47        reinplace {s| -no-cpp-precomp||g} \
48                ${worksrcpath}/configure
49}
50
51test.run        yes
52test.target     check
53test.env        DYLD_LIBRARY_PATH=${worksrcpath}/.libs
54pre-test        {
55        use_parallel_build      no
56}
57
58if {[variant_isset universal]} {
59        post-destroot {
60                reinplace -E {s|-arch [a-z0-9_]+||g} \
61                        ${destroot}${prefix}/share/apr-1/build/apr_rules.mk \
62                        ${destroot}${prefix}/share/apr-1/build/libtool
63        }
64}
65
66livecheck.type  regex
67livecheck.url   http://apache.org/dist/apr/
68livecheck.regex {APR (\d+(?:\.\d+)*) is the latest available version}
Note: See TracBrowser for help on using the repository browser.