source: trunk/dports/sysutils/gcc_select/Portfile @ 96842

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

gcc_select: update for Mountain Lion (#35380)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 96842 2012-08-19 23:05:24Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup select 1.0
5
6name                    gcc_select
7version                 0.1
8revision                7
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
30# install gcc33, gcc40
31platform darwin 8 powerpc {
32        post-destroot {
33            select::install gcc ${filespath}/gcc33
34                select::install gcc ${filespath}/gcc40
35        }
36}
37
38# install gcc40
39platform darwin 8 i386 {
40        post-destroot {
41                select::install gcc ${filespath}/gcc40
42        }
43}
44
45# install gcc40, gcc42, llvm-gcc42
46platform darwin 9 {
47        post-destroot {
48                select::install gcc ${filespath}/gcc40
49                select::install gcc ${filespath}/gcc42
50                # llvm-gcc-4.2 is not available in /usr/bin on Leopard
51                copy ${filespath}/llvm-gcc42 ${workpath}/llvm-gcc42
52                reinplace "s|/usr/bin|${developer_dir}/usr/bin|" ${workpath}/llvm-gcc42
53                select::install gcc ${workpath}/llvm-gcc42
54        }
55}
56
57# install gcc40, gcc42, llvm-gcc42
58platform darwin 10 {
59        post-destroot {
60                select::install gcc ${filespath}/gcc40
61                select::install gcc ${filespath}/gcc42
62                select::install gcc ${filespath}/llvm-gcc42
63        }
64}
65
66# install gcc42, llvm-gcc42
67platform darwin 11 {
68        post-destroot {
69                select::install gcc ${filespath}/gcc42
70                select::install gcc ${filespath}/llvm-gcc42
71        }
72}
73
74# install llvm-gcc42
75platform darwin 12 {
76        post-destroot {
77                select::install gcc ${filespath}/llvm-gcc42
78        }
79}
80
81livecheck.type  none
Note: See TracBrowser for help on using the repository browser.