source: trunk/dports/devel/pure-gen/Portfile @ 107821

Last change on this file since 107821 was 107821, checked in by ryandesign@…, 6 years ago

mongodb, oracle-instantclient, curl, VillainousStyle, pure-gen, MyPaint, keybinder, fontconfig, graphviz-oldgui, openni, ttf2eot: use eq and ne for string comparisons

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
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 107821 2013-07-06 08:26:24Z ryandesign@macports.org $
3
4PortSystem                      1.0
5PortGroup                       pure 1.0
6
7pure.setup                      gen 0.15
8categories                      devel
9platforms                       darwin
10maintainers                     ryandesign
11license                         GPL-3
12
13description                     a Pure C bindings generator
14
15long_description                ${name} is ${description}.
16
17checksums                       rmd160  eb3dab4fede5f0d1896bfa618295c51664e9841f \
18                                sha256  e51921028f09710564b973d4ecd279f8654a8943c5aed8ddde0355bbb8a67bc6
19
20depends_build-append            path:bin/ghc:ghc \
21                                port:hs-language-c
22
23depends_lib-append              port:gmp
24
25
26# pure-gen uses gcc at runtime to parse C headers but the
27# -fdirectives-only option it needs is only available in gcc 4.3 and up.
28variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {Use gcc43 for runtime C header parsing} {
29    depends_run-append          path:bin/gcc-mp-4.3:gcc43
30    global gcc_version
31    set gcc_version             4.3
32}
33variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {Use gcc44 for runtime C header parsing} {
34    depends_run-append          path:bin/gcc-mp-4.4:gcc44
35    global gcc_version
36    set gcc_version             4.4
37}
38variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {Use gcc45 for runtime C header parsing} {
39    depends_run-append          path:bin/gcc-mp-4.5:gcc45
40    global gcc_version
41    set gcc_version             4.5
42}
43variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {Use gcc46 for runtime C header parsing} {
44    depends_run-append          path:bin/gcc-mp-4.6:gcc46
45    global gcc_version
46    set gcc_version             4.6
47}
48variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {Use gcc47 for runtime C header parsing} {
49    depends_run-append          path:bin/gcc-mp-4.7:gcc47
50    global gcc_version
51    set gcc_version             4.7
52}
53if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
54    if {${os.platform} eq "darwin" && ${os.major} < 9} {
55        # gcc44 doesn't build for me on Tiger
56        default_variants +gcc43
57    } else {
58        default_variants +gcc47
59    }
60}
61
62patchfiles-append               patch-pure-gen.pure.diff
63post-patch {
64    reinplace "s|@CC@|${prefix}/bin/gcc-mp-${gcc_version}|g" ${worksrcpath}/pure-gen.pure
65}
66
67build.args-append               LIBRARY_PATH=${prefix}/lib
Note: See TracBrowser for help on using the repository browser.