# $Id: Portfile 115649 2014-01-07 20:40:09Z ryandesign@macports.org $ PortSystem 1.0 PortGroup select 1.0 name gcc_select version 0.1 revision 8 categories sysutils platforms darwin license BSD maintainers mww supported_archs noarch description common files for selecting default gcc version long_description gcc_select installs files that allow 'port select' to \ switch the default version of gcc. \ It symlinks the standard compiler executables \ in the MacPorts prefix to the selected version. homepage http://www.macports.org/ distfiles use_configure no build {} destroot { select::install gcc ${filespath}/base select::install gcc ${filespath}/none if {[file exists /usr/bin/gcc-3.3]} { select::install gcc ${filespath}/gcc33 } if {[file exists /usr/bin/gcc-4.0]} { select::install gcc ${filespath}/gcc40 } if {[file exists /usr/bin/gcc-4.2]} { select::install gcc ${filespath}/gcc42 } if {[file exists /usr/bin/llvm-gcc-4.2]} { select::install gcc ${filespath}/llvm-gcc42 } elseif {[file exists ${developer_dir}/usr/bin/llvm-gcc-4.2]} { # llvm-gcc-4.2 is not available in /usr/bin on Leopard copy ${filespath}/llvm-gcc42 ${workpath}/llvm-gcc42 reinplace "s|/usr/bin|${developer_dir}/usr/bin|" ${workpath}/llvm-gcc42 select::install gcc ${workpath}/llvm-gcc42 } } platform darwin 8 { # Prevent MacPorts base from adding a circular dependency on apple-gcc42 configure.compiler gcc-4.0 } livecheck.type none