source: trunk/dports/cross/arm-apple-darwin-binutils/Portfile @ 27828

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

Enable building of arm-apple-darwin-binutils on Leopard

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 27828 2007-08-15 00:16:03Z eridius@macports.org $
2
3PortSystem 1.0
4name                    arm-apple-darwin-binutils
5version                 r118
6categories              cross iphone
7maintainers             landonf@macports.org openmaintainer@macports.org
8description             Binutils for arm-apple-darwin (iPhone) cross development
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
17
18depends_build           port:Libstreams
19
20patchfiles              patch-Makefile.in
21
22set iphone_prefix       ${prefix}/arm-apple-darwin
23
24configure.args          --prefix=${iphone_prefix} --with-heavenly=${iphone_prefix}/heavenly
25
26build.args              DESTDIR=${destroot} USE_DEPENDENCY_FILE=NO
27
28# Work-around the experimental destroot validation
29destroot.violate_mtree  yes
30
31post-patch {
32        # remove the Makedep file which is preventing compilation on Leopard
33        # it's useless anyway as this is a one-shot build
34        delete ${worksrcpath}/cctools/cbtlibs/Makedep
35}
36
37pre-configure {
38        if {![file exists ${iphone_prefix}/heavenly/usr/lib/dyld]} {
39                return -code error "Heavenly (the iPhone installation disk image) must be manually copied to ${iphone_prefix}/heavenly before building this port: sudo mkdir -p ${iphone_prefix}/heavenly && sudo cp -Rn <HeavenlyDirectory> ${iphone_prefix}"
40        }
41}
42
43pre-build {
44        file mkdir ${destroot}/${iphone_prefix}/bin
45        file copy ${prefix}/include/streams ${worksrcpath}/cctools/include/streams
46}
47
48destroot {
49        # Make the binaries externally visible.
50        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-ld ./"
51        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-as ./"
52
53        # Set up non-prefixed binaries in the iphone bin directory
54        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-ld ld"
55        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-as as"
56}
Note: See TracBrowser for help on using the repository browser.