Ticket #16666: Portfile.2

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