source: trunk/dports/lang/apple-gcc40/Portfile @ 29789

Last change on this file since 29789 was 29789, checked in by ryandesign@…, 13 years ago

Set svn:keywords of all portfiles to Id as per current requirements

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 29789 2007-10-10 07:16:12Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    apple-gcc40
6version                 5363
7categories              lang
8platforms               darwin
9maintainers             mww@macports.org
10description             Apple's version of gcc 4.0
11long_description        Apple's version of the GNU compiler collection, \
12                        version 4.0. Supports C and Objective-C only.
13
14homepage                http://developer.apple.com/documentation/DeveloperTools/gcc-4.0/gcc/
15master_sites            http://www.opensource.apple.com/darwinsource/tarballs/other/
16distname                gcc-${version}
17checksums               sha1 0d9712d2b092c64c8b42757d6e135a2ef6f046e0
18
19post-extract { file mkdir ${workpath}/build }
20
21set nprefix ${prefix}/lib/${name}
22
23# try to avoid non-Apple programs at all costs (rather volatile build)
24configure.dir           ${workpath}/build
25configure.cmd           ${worksrcpath}/configure
26configure.pre_args      --prefix=${nprefix}
27# C++ breaks!
28configure.args          --enable-languages=c,objc \
29                        --program-suffix=-apple-4.0
30configure.cflags
31configure.ldflags
32configure.cppflags
33configure.env           PATH="/bin:/usr/bin:/sbin:/usr/sbin"
34
35platform darwin 8 {
36        configure.compiler      gcc-4.0
37}
38
39build.dir               ${configure.dir}
40
41destroot.dir            ${build.dir}
42
43post-destroot {
44        file delete -force \
45                ${destroot}${nprefix}/man ${destroot}${nprefix}/info
46        system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.0 && ln -sf ${nprefix}/bin/cpp-apple-4.0"
47}
48
49livecheck.check         moddate
50livecheck.url           ${master_sites}
51
Note: See TracBrowser for help on using the repository browser.