# $Id: Portfile 30179 2007-10-22 18:03:03Z mww@macports.org $ PortSystem 1.0 name gcc_select version 0.1 categories sysutils platforms darwin maintainers mww description Switch the default compiler long_description gcc_select lets you switch the default compiler. \ It symlinks the standard compiler executables \ in the MacPorts prefix to the selected version. homepage http://svn.macports.org/repository/macports/users/mww/select/ master_sites ${homepage} distname select-${version} checksums sha1 18e1f95c2ddd88210aa52eb696261859af2dc3a4 configure.args --mandir=${prefix}/share/man --name=gcc # install & select gcc33 platform darwin 7 { post-destroot { xinstall -m 644 -W ${filespath} base gcc33 \ ${destroot}${prefix}/etc/select/gcc system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc33" } } # install gcc33, gcc40 & select gcc40 platform darwin 8 ppc { post-destroot { xinstall -m 644 -W ${filespath} base gcc40 gcc33 \ ${destroot}${prefix}/etc/select/gcc system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40" } } # install & select gcc40 platform darwin 8 i386 { post-destroot { xinstall -m 644 -W ${filespath} base gcc40 \ ${destroot}${prefix}/etc/select/gcc system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40" } } livecheck.check none