[28311] trunk/dports/lang

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 27 19:00:09 PDT 2007


Revision: 28311
          http://trac.macosforge.org/projects/macports/changeset/28311
Author:   mww at macports.org
Date:     2007-08-27 19:00:09 -0700 (Mon, 27 Aug 2007)

Log Message:
-----------
new port lang/apple-gcc40

Added Paths:
-----------
    trunk/dports/lang/apple-gcc40/
    trunk/dports/lang/apple-gcc40/Portfile

Added: trunk/dports/lang/apple-gcc40/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc40/Portfile	                        (rev 0)
+++ trunk/dports/lang/apple-gcc40/Portfile	2007-08-28 02:00:09 UTC (rev 28311)
@@ -0,0 +1,48 @@
+# $Id: $
+
+PortSystem 1.0
+
+name			apple-gcc40
+version			5363
+categories		lang
+platforms		darwin
+maintainers		mww at 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"
+}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070827/a8418cd0/attachment.html


More information about the macports-changes mailing list