# $Id$ PortSystem 1.0 set major 4.2 name llvm-gcc42 version 2.4 revision 1 categories lang platforms darwin maintainers erickt@macports.org openmaintainer description llvm is a next generation compiler infrastructure long_description llvm brings tools to work on the llvm intermediate \ language incl. a C and C++ frontend. homepage http://llvm.org/ master_sites http://llvm.org/releases/${version}/ distname llvm-gcc-${major}-${version}.source checksums md5 ecd93e09debb62adc9a61b5c1442b3e5 \ sha1 bfd7a5319598a2116891226deed61f8ad77812aa \ rmd160 6abe908f94d34842fcd0c56c7444cf0c15e75a9c depends_lib port:llvm worksrcdir build pre-patch { file mkdir ${workpath}/build } configure.cmd ../llvm-gcc${major}-${version}.source/configure configure.args-append --enable-llvm=${prefix}/lib/llvm/obj \ --enable-languages=c,c++,objc,obj-c++ \ --mandir=${prefix}/share/man \ --program-prefix=llvm- \ --program-suffix=-${major} post-destroot { file delete -force ${destroot}/${prefix}/share/man/man7 file delete -force ${destroot}/${prefix}/share/info file delete -force ${destroot}/${prefix}/bin/gccld file delete -force ${destroot}/${prefix}/bin/gccas } platform darwin { post-extract { system "rm -rf ${workpath}/llvm-gcc${major}-${version}.source/libstdc++-v3" } configure.args-append --with-gxx-include-dir=/usr/include/c++/4.0.0 } platform darwin powerpc { set triple powerpc-apple-darwin${os.major} configure.env-append TRIPLE=${triple} configure.post_args --build=${triple} --host=${triple} --target=${triple} } platform darwin i386 { set triple i686-apple-darwin${os.major} configure.env-append TRIPLE=${triple} \ TARGETOPTIONS="--with-arch=nocona --with-tune=generic" configure.post_args --build=${triple} --host=${triple} --target=${triple} }