source: trunk/dports/cross/arm-apple-darwin-binutils/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: 2.6 KB
Line 
1# $Id: Portfile 30190 2007-10-22 20:34:02Z jmpp@macports.org $
2
3PortSystem 1.0
4name                    arm-apple-darwin-binutils
5version                 r118
6revision                2
7categories              cross iphone
8maintainers             landonf@macports.org openmaintainer
9description             Binutils for arm-apple-darwin (iPhone) cross development
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
18
19depends_build           port:Libstreams
20
21patchfiles              patch-Makefile.in \
22                        patch-libtool-driver
23
24set iphone_prefix       ${prefix}/arm-apple-darwin
25
26configure.args          --prefix=${iphone_prefix} --with-heavenly=${iphone_prefix}/heavenly
27
28build.args              DESTDIR=${destroot} USE_DEPENDENCY_FILE=NO
29
30# Work-around the experimental destroot validation
31destroot.violate_mtree  yes
32
33post-patch {
34        # remove the Makedep file which is preventing compilation on Leopard
35        # it's useless anyway as this is a one-shot build
36        delete ${worksrcpath}/cctools/cbtlibs/Makedep
37}
38
39pre-configure {
40        if {![file exists ${iphone_prefix}/heavenly/usr/lib/dyld]} {
41                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}"
42        }
43}
44
45pre-build {
46        file mkdir ${destroot}/${iphone_prefix}/bin
47        file copy ${prefix}/include/streams ${worksrcpath}/cctools/include/streams
48}
49
50destroot {
51        # Install missing binaries
52        xinstall -m 755 ${worksrcpath}/cctools/ar/ar.NEW ${destroot}/${iphone_prefix}/bin/arm-apple-darwin-ar
53        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-libtool arm-apple-darwin-ranlib"
54
55        # Make the binaries externally visible.
56        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-ld ./"
57        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-as ./"
58        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-ar ./"
59        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-libtool ./"
60        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-ranlib ./"
61
62        # Set up non-prefixed binaries in the iphone bin directory
63        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-ld ld"
64        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-as as"
65        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-ar ar"
66        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-libtool libtool"
67}
Note: See TracBrowser for help on using the repository browser.