source: trunk/dports/sysutils/gcc_select/Portfile

Last change on this file was 115649, checked in by ryandesign@…, 4 years ago

gcc_select: do not add dependency on apple-gcc42 on Tiger (#41782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 115649 2014-01-07 20:40:09Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup select 1.0
5
6name                    gcc_select
7version                 0.1
8revision                8
9categories              sysutils
10platforms               darwin
11license         BSD
12maintainers             mww
13supported_archs         noarch
14description             common files for selecting default gcc version
15long_description        gcc_select installs files that allow 'port select' to \
16                        switch the default version of gcc. \
17                        It symlinks the standard compiler executables \
18                        in the MacPorts prefix to the selected version.
19
20homepage                http://www.macports.org/
21distfiles
22
23use_configure           no
24build                   {}
25destroot {
26    select::install gcc ${filespath}/base
27    select::install gcc ${filespath}/none
28
29    if {[file exists /usr/bin/gcc-3.3]} {
30        select::install gcc ${filespath}/gcc33
31    }
32
33    if {[file exists /usr/bin/gcc-4.0]} {
34        select::install gcc ${filespath}/gcc40
35    }
36
37    if {[file exists /usr/bin/gcc-4.2]} {
38        select::install gcc ${filespath}/gcc42
39    }
40
41    if {[file exists /usr/bin/llvm-gcc-4.2]} {
42        select::install gcc ${filespath}/llvm-gcc42
43    } elseif {[file exists ${developer_dir}/usr/bin/llvm-gcc-4.2]} {
44        # llvm-gcc-4.2 is not available in /usr/bin on Leopard
45        copy ${filespath}/llvm-gcc42 ${workpath}/llvm-gcc42
46        reinplace "s|/usr/bin|${developer_dir}/usr/bin|" ${workpath}/llvm-gcc42
47        select::install gcc ${workpath}/llvm-gcc42
48    }
49}
50
51platform darwin 8 {
52    # Prevent MacPorts base from adding a circular dependency on apple-gcc42
53    configure.compiler gcc-4.0
54}
55
56livecheck.type  none
Note: See TracBrowser for help on using the repository browser.