source: trunk/dports/devel/boehmgc-devel/Portfile

Last change on this file was 96311, checked in by ryandesign@…, 5 years ago

boehmgc, boehmgc-devel: add description for redirect variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 96311 2012-08-07 07:53:56Z ryandesign@macports.org $
2
3PortSystem 1.0
4#PortGroup  muniversal 1.0
5
6name            boehmgc-devel
7conflicts       boehmgc
8version         7.3alpha2
9revision        1
10categories      devel
11license         Permissive
12maintainers     nomaintainer
13description     Boehm-Demers-Weiser conservative garbage collector
14long_description   The Boehm-Demers-Weiser conservative garbage collector \
15                   can be used as a garbage collecting replacement for C \
16                   malloc or C++ new. It is also used by a number of \
17                   programming language implementations that use C as \
18                   intermediate code.
19set d_name      gc
20homepage        http://www.hpl.hp.com/personal/Hans_Boehm/${d_name}/
21platforms       darwin
22master_sites    ${homepage}gc_source/
23dist_subdir     boehmgc
24distname        ${d_name}-${version}
25
26checksums           rmd160  c9d6d7ad2f17e703267ede2e694a58806eb3ac84 \
27                    sha256  16b55db3fd40c9bf4bf0d7e3553676f8c2e1fa202bbdc12ad7cef5a462e76198
28
29depends_build       port:pkgconfig \
30                    port:libatomic_ops-devel
31
32# libatomic_ops-devel is not universal
33universal_variant   no
34
35configure.args  --with-threads=posix \
36                --enable-cplusplus
37
38configure.cppflags-append -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE
39
40patchfiles      patch-misc.c.diff
41
42variant redirect description {Redirect malloc and friends to GC routines} {
43        configure.args-append  --enable-redirect-malloc
44}
45
46platform darwin 8 {
47        # Not needed to "force" ucontext.h on Tiger, and it actually
48        # forces POSIX sys/mman.h which breaks the build there because
49        # Tiger's sys/mman.h doesn't recognize _DARWIN_C_SOURCE
50        configure.cppflags-delete -D_XOPEN_SOURCE=600
51}
52
53test.run        yes
54test.target     check
55
56livecheck.type  regex
57livecheck.url   [lindex ${master_sites} 0]
58livecheck.regex ${d_name}-?(\[0-9a-z.\]*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.