source: trunk/dports/devel/apr/Portfile @ 91362

Last change on this file since 91362 was 91362, checked in by jeremyhu@…, 5 years ago

apr: Force using gcc-4.2 with XCode 3.x since gcc-4.0 generates bad code in translation. Dev ack via email

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 91362 2012-03-30 20:21:06Z jeremyhu@macports.org $
2
3PortSystem      1.0
4
5name            apr
6version         1.4.6
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     ffee70a111fd07372982b0550bbb14b7 \
24                sha1    1a72fc9d89a378590ef243399396169426d1f6cf \
25                rmd160  ca496323a921f71ed28695ede94ff4fc00df9b0d
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 {${configure.compiler} == "gcc-4.0" && [vercmp ${xcodeversion} 3.0] >= 0} {
31    configure.compiler gcc-4.2
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
44test.run        yes
45test.target     check
46test.env        DYLD_LIBRARY_PATH=${worksrcpath}/.libs
47pre-test        {
48        use_parallel_build      no
49}
50
51if {[variant_isset universal]} {
52        post-destroot {
53                reinplace -E {s|-arch [a-z0-9_]+||g} \
54                        ${destroot}${prefix}/share/apr-1/build/apr_rules.mk \
55                        ${destroot}${prefix}/share/apr-1/build/libtool
56        }
57}
58
59livecheck.type  regex
60livecheck.url   http://apache.org/dist/apr/
61livecheck.regex {APR (\d+(?:\.\d+)*) is the latest available version}
Note: See TracBrowser for help on using the repository browser.