1 | # $Id: Portfile 35833 2008-04-07 21:36:27Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name apple-gcc42 |
---|
6 | version 5564 |
---|
7 | categories lang |
---|
8 | platforms darwin |
---|
9 | maintainers mww |
---|
10 | description Apple's version of gcc 4.2 |
---|
11 | long_description Apple's version of the GNU compiler collection, \ |
---|
12 | version 4.2. Supports C and Objective-C. |
---|
13 | |
---|
14 | homepage http://developer.apple.com/documentation/DeveloperTools/gcc-4.2/gcc/ |
---|
15 | master_sites http://www.opensource.apple.com/darwinsource/tarballs/other/ |
---|
16 | distname gcc_42-${version} |
---|
17 | checksums md5 cc919b07776db1a209ccaa48b0e19da7 |
---|
18 | |
---|
19 | set prefix ${prefix} |
---|
20 | |
---|
21 | post-extract { |
---|
22 | file mkdir ${worksrcpath}/debug |
---|
23 | file mkdir ${workpath}/destroot |
---|
24 | } |
---|
25 | |
---|
26 | post-patch { |
---|
27 | reinplace "s|MAKEINFO=\$\(MAKEINFO\) \$\(MAKEINFOFLAGS\)|MAKEINFO=makeinfo \$\(MAKEINFOFLAGS\)|" ${worksrcpath}/Makefile.in |
---|
28 | } |
---|
29 | |
---|
30 | use_configure no |
---|
31 | # This will automatically build gcc 4.2 with c++ and obj-c++ support |
---|
32 | build.cmd ${worksrcpath}/build_gcc \"[strsed ${configure.universal_archs} "g| |;|"]\" \"[strsed ${configure.universal_archs} "g| |;|"]\" \ |
---|
33 | ${worksrcpath} ${prefix} ${workpath}/destroot ${worksrcpath}/debug |
---|
34 | |
---|
35 | destroot {} |
---|
36 | |
---|
37 | destroot.violate_mtree yes |
---|
38 | |
---|
39 | livecheck.check moddate |
---|
40 | livecheck.url ${master_sites} |
---|
41 | |
---|