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

Last change on this file since 56493 was 56493, checked in by jmr@…, 10 years ago

gcc_select: add darwin 10 / gcc42

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 56493 2009-08-28 22:00:36Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                    gcc_select
6version                 0.1
7revision        3
8categories              sysutils
9platforms               darwin
10maintainers             mww
11description             Switch the default compiler
12long_description        gcc_select lets you switch the default compiler. \
13                        It symlinks the standard compiler executables \
14                        in the MacPorts prefix to the selected version.
15
16homepage                http://svn.macports.org/repository/macports/contrib/select/
17master_sites            ${homepage}
18distname                select-${version}
19checksums               sha1 18e1f95c2ddd88210aa52eb696261859af2dc3a4
20
21configure.args          --mandir=${prefix}/share/man --name=gcc
22
23post-destroot {
24    xinstall -m 644 -W ${filespath} base \
25                        ${destroot}${prefix}/etc/select/gcc
26}
27
28# install & select gcc33
29platform darwin 7 {
30        post-destroot {
31                xinstall -m 644 -W ${filespath} gcc33 \
32                        ${destroot}${prefix}/etc/select/gcc
33                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc33"
34        }
35}
36
37# install gcc33, gcc40 & select gcc40
38platform darwin 8 powerpc {
39        post-destroot {
40                xinstall -m 644 -W ${filespath} gcc40 gcc33 \
41                        ${destroot}${prefix}/etc/select/gcc
42                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
43        }
44}
45
46# install & select gcc40
47platform darwin 8 i386 {
48        post-destroot {
49                xinstall -m 644 -W ${filespath} gcc40 \
50                        ${destroot}${prefix}/etc/select/gcc
51                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
52        }
53}
54
55# install & select gcc40
56platform darwin 9 {
57        post-destroot {
58                xinstall -m 644 -W ${filespath} gcc40 \
59                        ${destroot}${prefix}/etc/select/gcc
60                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
61        }
62}
63
64# install & select gcc42
65platform darwin 10 {
66        post-destroot {
67                xinstall -m 644 -W ${filespath} gcc42 \
68                        ${destroot}${prefix}/etc/select/gcc
69                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc42"
70        }
71}
72
73livecheck.check none
Note: See TracBrowser for help on using the repository browser.