source: trunk/dports/cross/arm-apple-darwin-cc/Portfile @ 27662

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

Work-around the experimental destroot validation. This is going to break, at the very least, all of the cross-compilers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 27662 2007-08-11 17:59:11Z landonf@macports.org $
2
3PortSystem 1.0
4name                    arm-apple-darwin-cc
5version                 r118
6categories              iphone
7maintainers             landonf@macports.org openmaintainer@macports.org
8description             Cross-compiler (driver) for arm-apple-darwin (iPhone)
9long_description        ${description}
10
11homepage                http://developer.berlios.de/projects/iphone-binutils/
12platforms               darwin
13
14master_sites            http://landonf.bikemonkey.org/static/iphone/
15distname                iphone-binutils-$version
16checksums               md5 111b11f80fe535b3beb3d40633962f3b
17depends_run             port:arm-apple-darwin-binutils \
18                        port:llvm-gcc4 \
19                        port:llvm
20
21patchfiles              patch-Makefile.in \
22                        patch-driver_Makefile.in \
23                        patch-driver_arm-cc-specs.in
24
25set iphone_prefix       ${prefix}/arm-apple-darwin
26
27configure.args          --prefix=${iphone_prefix} --with-heavenly=${iphone_prefix}/heavenly
28
29build.target            driver
30build.args              DESTDIR=${destroot}
31
32# Work-around the experimental destroot validation
33destroot.violate_mtree  yes
34
35post-patch {
36        reinplace s|@MACPORTS_PREFIX@|${prefix}|g ${worksrcpath}/driver/arm-cc-specs.in
37}
38
39pre-build {
40        file mkdir ${destroot}/${iphone_prefix}/bin
41}
42
43post-destroot {
44        # Make the binaries externally visible.
45        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-cc ./"
46
47        # Set up non-prefixed binaries in the iphone bin directory
48        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-cc cc"
49}
Note: See TracBrowser for help on using the repository browser.