Skip to content
Permalink
Browse files

new port lang/apple-gcc40

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@28311 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Aug 28, 2007
1 parent c3c6f15 commit f774064da861838ce2d9577660d5dd7b5ae4a5eb
Showing with 48 additions and 0 deletions.
  1. +48 −0 lang/apple-gcc40/Portfile
@@ -0,0 +1,48 @@
# $Id: $

PortSystem 1.0

name apple-gcc40
version 5363
categories lang
platforms darwin
maintainers mww@macports.org
description Apple's version of gcc 4.0
long_description Apple's version of the GNU compiler collection, \
version 4.0. Supports C and Objective-C only.

homepage http://developer.apple.com/documentation/DeveloperTools/gcc-4.0/gcc/
master_sites http://www.opensource.apple.com/darwinsource/tarballs/other/
distname gcc-${version}
checksums sha1 0d9712d2b092c64c8b42757d6e135a2ef6f046e0

post-extract { file mkdir ${workpath}/build }

set nprefix ${prefix}/lib/${name}

# try to avoid non-Apple programs at all costs (rather volatile build)
configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.pre_args --prefix=${nprefix}
# C++ breaks!
configure.args --enable-languages=c,objc \
--program-suffix=-apple-4.0
configure.cflags
configure.ldflags
configure.cppflags
configure.env PATH="/bin:/usr/bin:/sbin:/usr/sbin"

platform darwin 8 {
configure.compiler gcc-4.0
}

build.dir ${configure.dir}

destroot.dir ${build.dir}

post-destroot {
file delete -force \
${destroot}${nprefix}/man ${destroot}${nprefix}/info
system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.0 && ln -sf ${nprefix}/bin/cpp-apple-4.0"
}

0 comments on commit f774064

Please sign in to comment.
You can’t perform that action at this time.