[27423] trunk/dports/cross
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 3 02:52:54 PDT 2007
Revision: 27423
http://trac.macosforge.org/projects/macports/changeset/27423
Author: landonf at macports.org
Date: 2007-08-03 02:52:54 -0700 (Fri, 03 Aug 2007)
Log Message:
-----------
Initial (not tested on the iPhone) ports for the iphone cross-compiler toolchain.
Added Paths:
-----------
trunk/dports/cross/arm-iphone-binutils/
trunk/dports/cross/arm-iphone-binutils/Portfile
trunk/dports/cross/arm-iphone-binutils/files/
trunk/dports/cross/arm-iphone-binutils/files/patch-Makefile.in
trunk/dports/cross/arm-iphone-cc/
trunk/dports/cross/arm-iphone-cc/Portfile
trunk/dports/cross/arm-iphone-cc/files/
trunk/dports/cross/arm-iphone-cc/files/patch-Makefile.in
trunk/dports/cross/arm-iphone-cc/files/patch-driver_Makefile.in
trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in
trunk/dports/cross/arm-iphone-cc/hello.c
trunk/dports/cross/arm-iphone-runtime/
trunk/dports/cross/arm-iphone-runtime/Portfile
trunk/dports/cross/arm-iphone-runtime/files/
trunk/dports/cross/arm-iphone-runtime/files/patch-Csu-71_Makefile.in
trunk/dports/cross/arm-iphone-runtime/files/patch-Makefile.in
trunk/dports/cross/arm-iphone-runtime/files/patch-libarmpf_Makefile.in
Added: trunk/dports/cross/arm-iphone-binutils/Portfile
===================================================================
--- trunk/dports/cross/arm-iphone-binutils/Portfile (rev 0)
+++ trunk/dports/cross/arm-iphone-binutils/Portfile 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,47 @@
+# $Id: $
+
+PortSystem 1.0
+name arm-iphone-binutils
+version r93
+categories iphone
+maintainers landonf at macports.org openmaintainer at macports.org
+description iPhone Binutils for arm-iphone cross development
+long_description ${description}
+
+homepage http://developer.berlios.de/projects/iphone-binutils/
+platforms darwin
+
+master_sites http://landonf.bikemonkey.org/static/iphone/
+distname iphone-binutils-${version}
+checksums md5 e7c782c48307e96a347787cf1d13d0b4
+
+depends_build port:Libstreams
+
+patchfiles patch-Makefile.in
+
+set iphone_prefix ${prefix}/arm-iphone
+
+configure.args --prefix=${iphone_prefix} --with-heavenly=${iphone_prefix}/heavenly
+
+build.args DESTDIR=${destroot}
+
+# This is a nasty, temporary hack that shouldn't normally be used
+pre-fetch {
+ global this_is_untested
+ if {![info exists this_is_untested] || ${this_is_untested} != "ok"} {
+ return -code error "This code is pre-release, untested, and should not be used by the weak-kneed. Do not send support requests to the iphone-binutils developers! If you are sure you want to install this port, re-run port with an addition option: 'this_is_untested=ok'"
+ }
+}
+
+pre-configure {
+ if {![file exists ${iphone_prefix}/heavenly/usr/lib/dyld]} {
+ return -code error "Heavenly (the iPhone installation 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}"
+ }
+}
+
+pre-build {
+ file mkdir ${destroot}/${iphone_prefix}/bin
+ file copy ${prefix}/include/streams ${worksrcpath}/cctools/include/streams
+}
+
+destroot {}
Added: trunk/dports/cross/arm-iphone-binutils/files/patch-Makefile.in
===================================================================
--- trunk/dports/cross/arm-iphone-binutils/files/patch-Makefile.in (rev 0)
+++ trunk/dports/cross/arm-iphone-binutils/files/patch-Makefile.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,22 @@
+--- Makefile.in.orig 2007-08-03 02:00:02.000000000 -0700
++++ Makefile.in 2007-08-03 02:00:39.000000000 -0700
+@@ -15,7 +15,7 @@
+ PREFIX = @prefix@
+ HEAVENLY = @heavenly@
+
+-all: heavenly includes llvmgcc llvm cctools driver csu libarmfp
++all: cctools
+
+ heavenly:
+ install -d $(PREFIX)/heavenly && cp -Rn $(HEAVENLY)/* $(PREFIX)/heavenly
+@@ -36,8 +36,8 @@
+ cctools:
+ install /usr/include/ar.h cctools/include
+ cd cctools && $(MAKE)
+- install cctools/as/aarm_dir/as $(PREFIX)/bin/arm-apple-darwin-as
+- install cctools/ld/ld_dir/ld.NEW $(PREFIX)/bin/arm-apple-darwin-ld
++ install cctools/as/aarm_dir/as $(DESTDIR)/$(PREFIX)/bin/arm-apple-darwin-as
++ install cctools/ld/ld_dir/ld.NEW $(DESTDIR)/$(PREFIX)/bin/arm-apple-darwin-ld
+
+ driver:
+ cd driver && $(MAKE)
Added: trunk/dports/cross/arm-iphone-cc/Portfile
===================================================================
--- trunk/dports/cross/arm-iphone-cc/Portfile (rev 0)
+++ trunk/dports/cross/arm-iphone-cc/Portfile 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,42 @@
+# $Id: $
+
+PortSystem 1.0
+name arm-iphone-cc
+version r93
+categories iphone
+maintainers landonf at macports.org openmaintainer at macports.org
+description iPhone cross-compiler (driver) for arm-iphone
+long_description ${description}
+
+homepage http://developer.berlios.de/projects/iphone-binutils/
+platforms darwin
+
+master_sites http://landonf.bikemonkey.org/static/iphone/
+distname iphone-binutils-$version
+checksums md5 e7c782c48307e96a347787cf1d13d0b4
+#depends_run port:arm-iphone-binutils \
+depends_run port:llvm-gcc4 \
+ port:llvm
+
+patchfiles patch-Makefile.in \
+ patch-driver_Makefile.in \
+ patch-driver_arm-cc-specs.in
+
+set iphone_prefix ${prefix}/arm-iphone
+
+configure.args --prefix=${iphone_prefix} --with-heavenly=${iphone_prefix}/heavenly
+
+build.args DESTDIR=${destroot}
+
+post-patch {
+ reinplace s|@MACPORTS_PREFIX@|${prefix}|g ${worksrcpath}/driver/arm-cc-specs.in
+}
+
+pre-build {
+ file mkdir ${destroot}/${iphone_prefix}/bin
+}
+
+post-destroot {
+ system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-cc ./arm-apple-darwin-cc"
+ system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-cc ./arm-iphone-cc"
+}
Added: trunk/dports/cross/arm-iphone-cc/files/patch-Makefile.in
===================================================================
--- trunk/dports/cross/arm-iphone-cc/files/patch-Makefile.in (rev 0)
+++ trunk/dports/cross/arm-iphone-cc/files/patch-Makefile.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,20 @@
+--- Makefile.in.orig 2007-08-03 02:14:37.000000000 -0700
++++ Makefile.in 2007-08-03 02:15:40.000000000 -0700
+@@ -15,7 +15,7 @@
+ PREFIX = @prefix@
+ HEAVENLY = @heavenly@
+
+-all: heavenly includes llvmgcc llvm cctools driver csu libarmfp
++all: driver
+
+ heavenly:
+ install -d $(PREFIX)/heavenly && cp -Rn $(HEAVENLY)/* $(PREFIX)/heavenly
+@@ -41,7 +41,7 @@
+
+ driver:
+ cd driver && $(MAKE)
+- cd driver && $(MAKE) install
++ cd driver && $(MAKE) DESTDIR=$(DESTDIR) install
+
+ csu:
+ cd Csu-71 && $(MAKE)
Added: trunk/dports/cross/arm-iphone-cc/files/patch-driver_Makefile.in
===================================================================
--- trunk/dports/cross/arm-iphone-cc/files/patch-driver_Makefile.in (rev 0)
+++ trunk/dports/cross/arm-iphone-cc/files/patch-driver_Makefile.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,15 @@
+--- driver/Makefile.in.orig 2007-08-03 01:37:47.000000000 -0700
++++ driver/Makefile.in 2007-08-03 01:38:54.000000000 -0700
+@@ -33,9 +33,9 @@
+ rm -f $(RESULT)
+
+ install: all
+- install $(RESULT) $(IPHONEROOT)/bin
+- install -d $(IPHONEROOT)/etc
+- install arm-cc-specs $(IPHONEROOT)/etc
++ install $(RESULT) $(DESTDIR)/$(IPHONEROOT)/bin
++ install -d $(DESTDIR)/$(IPHONEROOT)/etc
++ install arm-cc-specs $(DESTDIR)/$(IPHONEROOT)/etc
+
+ %.o: %.c
+ $(CC) -c $(OPTIM) $(CCFLAGS) -o $@ $<
Added: trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in
===================================================================
--- trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in (rev 0)
+++ trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,19 @@
+--- driver/arm-cc-specs.in.orig 2007-08-03 02:33:00.000000000 -0700
++++ driver/arm-cc-specs.in 2007-08-03 02:34:16.000000000 -0700
+@@ -1,13 +1,13 @@
+ # Customize to match your system. Then, place this file in ~/.arm-cc-specs
+ # (where ~ represents your home dir).
+-PREPROCESS=@prefix@/bin/llvm-gcc
++PREPROCESS=@MACPORTS_PREFIX@/bin/llvm-gcc
+ CPPFLAGS=-E -U__i386__ -U__ppc__ -D__arm__ -isystem @prefix@/include
+-LLVM_GCC=@prefix@/bin/llvm-gcc
++LLVM_GCC=@MACPORTS_PREFIX@/bin/llvm-gcc
+ CFLAGS=-emit-llvm
+ CFLAGS_OBJC=-emit-llvm -ObjC
+ LLVM_GCCC=llvm-g++
+ CCFLAGS=-emit-llvm
+-LLC=@prefix@/bin/llc
++LLC=@MACPORTS_PREFIX@/bin/llc
+ LLCFLAGS=-mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic -mcpu=generic -f
+ LLCFLAGS_DYLIB=-mtriple=arm-apple-darwin -f -mcpu=generic -relocation-model=pic
+ OPT=@prefix@/bin/opt
Added: trunk/dports/cross/arm-iphone-cc/hello.c
===================================================================
--- trunk/dports/cross/arm-iphone-cc/hello.c (rev 0)
+++ trunk/dports/cross/arm-iphone-cc/hello.c 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,3 @@
+int main() {
+ printf("What up g-dawg");
+}
Added: trunk/dports/cross/arm-iphone-runtime/Portfile
===================================================================
--- trunk/dports/cross/arm-iphone-runtime/Portfile (rev 0)
+++ trunk/dports/cross/arm-iphone-runtime/Portfile 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,30 @@
+# $Id: $
+
+PortSystem 1.0
+name arm-iphone-runtime
+version r93
+categories iphone
+maintainers landonf at macports.org openmaintainer at macports.org
+description Free iPhone C runtime, headers and libraries.
+long_description ${description}
+
+homepage http://developer.berlios.de/projects/iphone-binutils/
+platforms darwin
+
+master_sites http://landonf.bikemonkey.org/static/iphone/
+distname iphone-binutils-${version}
+checksums md5 e7c782c48307e96a347787cf1d13d0b4
+depends_lib port:arm-iphone-binutils \
+ port:arm-iphone-cc
+
+patchfiles patch-Makefile.in \
+ patch-libarmpf_Makefile.in \
+ patch-Csu-71_Makefile.in
+
+set iphone_prefix ${prefix}/arm-iphone
+
+configure.args --prefix=${iphone_prefix} --with-heavenly=${iphone_prefix}/heavenly
+
+build.args DESTDIR=${destroot}
+
+destroot {}
Added: trunk/dports/cross/arm-iphone-runtime/files/patch-Csu-71_Makefile.in
===================================================================
--- trunk/dports/cross/arm-iphone-runtime/files/patch-Csu-71_Makefile.in (rev 0)
+++ trunk/dports/cross/arm-iphone-runtime/files/patch-Csu-71_Makefile.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,15 @@
+--- Csu-71/Makefile.in.orig 2007-08-03 01:53:19.000000000 -0700
++++ Csu-71/Makefile.in 2007-08-03 01:53:54.000000000 -0700
+@@ -42,9 +42,9 @@
+ rm -f $(NOPIC_OBJS) $(PIC_OBJS) crt1.o dylib1.o *~
+
+ install: all
+- install -d $(IPHONEROOT)/csu
+- install $(NOPIC_RESULT) $(IPHONEROOT)/csu
+- install $(PIC_RESULT) $(IPHONEROOT)/csu
++ install -d $(DESTDIR)$(IPHONEROOT)/csu
++ install $(NOPIC_RESULT) $(DESTDIR)$(IPHONEROOT)/csu
++ install $(PIC_RESULT) $(DESTDIR)$(IPHONEROOT)/csu
+
+ crt: $(NOPIC_OBJS)
+ $(LINK) -o $(NOPIC_RESULT) $(LINKFLAGS) $(NOPIC_OBJS) $(DYLD)
Added: trunk/dports/cross/arm-iphone-runtime/files/patch-Makefile.in
===================================================================
--- trunk/dports/cross/arm-iphone-runtime/files/patch-Makefile.in (rev 0)
+++ trunk/dports/cross/arm-iphone-runtime/files/patch-Makefile.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,39 @@
+--- Makefile.in.orig 2007-08-03 02:44:49.000000000 -0700
++++ Makefile.in 2007-08-03 02:45:52.000000000 -0700
+@@ -15,14 +15,14 @@
+ PREFIX = @prefix@
+ HEAVENLY = @heavenly@
+
+-all: heavenly includes llvmgcc llvm cctools driver csu libarmfp
++all: includes csu libarmfp
+
+ heavenly:
+ install -d $(PREFIX)/heavenly && cp -Rn $(HEAVENLY)/* $(PREFIX)/heavenly
+
+ includes:
+- install -d $(PREFIX)/include
+- cp -Rn include/* $(PREFIX)/include
++ install -d $(DESTDIR)/$(PREFIX)/include
++ cp -Rn include/* $(DESTDIR)/$(PREFIX)/include
+
+ llvmgcc:
+ ./install-llvmgcc.sh
+@@ -45,13 +45,13 @@
+
+ csu:
+ cd Csu-71 && $(MAKE)
+- install -d $(PREFIX)/csu
+- install Csu-71/crt1.o $(PREFIX)/csu
+- install Csu-71/dylib1.o $(PREFIX)/csu
++ install -d $(DESTDIR)/$(PREFIX)/csu
++ install Csu-71/crt1.o $(DESTDIR)/$(PREFIX)/csu
++ install Csu-71/dylib1.o $(DESTDIR)/$(PREFIX)/csu
+
+ libarmfp:
+- cd libarmfp && $(MAKE)
+- cd libarmfp && $(MAKE) install
++ cd libarmfp && $(MAKE) DESTDIR=$(DESTDIR)
++ cd libarmfp && $(MAKE) DESTDIR=$(DESTDIR) install
+
+ .PHONY : heavenly includes llvmgcc llvm cctools driver csu libarmfp
+
Added: trunk/dports/cross/arm-iphone-runtime/files/patch-libarmpf_Makefile.in
===================================================================
--- trunk/dports/cross/arm-iphone-runtime/files/patch-libarmpf_Makefile.in (rev 0)
+++ trunk/dports/cross/arm-iphone-runtime/files/patch-libarmpf_Makefile.in 2007-08-03 09:52:54 UTC (rev 27423)
@@ -0,0 +1,20 @@
+--- libarmfp/Makefile.in.orig 2007-08-03 02:49:36.000000000 -0700
++++ libarmfp/Makefile.in 2007-08-03 02:51:09.000000000 -0700
+@@ -15,7 +15,7 @@
+
+ CC = $(IPHONEROOT)/bin/arm-apple-darwin-cc
+ CCFLAGS = -O0 -dynamiclib
+-LINKFLAGS = -dynamiclib
++LINKFLAGS = -dynamiclib -L../Csu-71/
+
+ RESULT = libarmfp.dylib
+ SRCS = armfp.c
+@@ -33,7 +33,7 @@
+ rm -f $(RESULT)
+
+ install: all
+- install $(RESULT) $(IPHONEROOT)/lib
++ install $(RESULT) $(DESTDIR)$(IPHONEROOT)/lib
+
+ %.o: %.c
+ $(CC) -c $(LINKFLAGS) $(CCFLAGS) -o $@ $<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070803/e4ffb0e4/attachment.html
More information about the macports-changes
mailing list