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

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

Openmaintainer address abstraction in cross category.

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