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

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

Include my patch for libtool support. Fixes linking of dylibs/bundles using static archives, eg:

arm-apple-darwin-cc -dynamiclib -o test.dylib input.a

Patch submitted to upstream, see:

http://developer.berlios.de/bugs/?func=detailbug&bug_id=11802&group_id=8664

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 28059 2007-08-19 16:31:39Z landonf@macports.org $
2
3PortSystem 1.0
4name                    arm-apple-darwin-binutils
5version                 r118
6revision                1
7categories              cross iphone
8maintainers             landonf@macports.org openmaintainer@macports.org
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        # Make the binaries externally visible.
52        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-ld ./"
53        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-as ./"
54        system "cd ${destroot}/${prefix}/bin && ln -s ${iphone_prefix}/bin/arm-apple-darwin-libtool ./"
55
56        # Set up non-prefixed binaries in the iphone bin directory
57        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-ld ld"
58        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-as as"
59        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-as libtool"
60}
Note: See TracBrowser for help on using the repository browser.