summaryrefslogtreecommitdiff
path: root/data/zip
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
committerJay Freeman <saurik@saurik.com>2008-04-06 10:28:29 +0000
commitd699a01fabaa04a1aad60f6ca5777f82ee24839a (patch)
tree1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/zip
parent8a49e427447f40fdd43fc4b5f513b166dd639e2a (diff)
Drastic, sweeping modifications to support iPhone 1.2.0/2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@199 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/zip')
-rw-r--r--data/zip/make.sh5
-rw-r--r--data/zip/strip.diff12
2 files changed, 15 insertions, 2 deletions
diff --git a/data/zip/make.sh b/data/zip/make.sh
index 47e5baefa..48e47019b 100644
--- a/data/zip/make.sh
+++ b/data/zip/make.sh
@@ -1,5 +1,6 @@
unzip "${PKG_DATA}/zip232.zip" -d zip-2.32
-cd zip-2.32
+cd *
+pkg:patch
cp unix/Makefile .
-make zips CC=arm-apple-darwin-gcc CPP='arm-apple-darwin-gcc -E'
+make zips CC="${PKG_TARG}-gcc" CPP="${PKG_TARG}-gcc -E"
pkg:usrbin zip zipcloak zipnote zipsplit
diff --git a/data/zip/strip.diff b/data/zip/strip.diff
new file mode 100644
index 000000000..d9f6b7b7a
--- /dev/null
+++ b/data/zip/strip.diff
@@ -0,0 +1,12 @@
+diff -ru zip-2.32/unix/Makefile zip-2.32+iPhone/unix/Makefile
+--- zip-2.32/unix/Makefile 2006-04-22 23:52:18.000000000 +0000
++++ zip-2.32+iPhone/unix/Makefile 2008-04-04 19:00:57.000000000 +0000
+@@ -49,7 +49,7 @@
+ CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
+ CFLAGS = -O2 $(CFLAGS_NOOPT)
+ LFLAGS1 =
+-LFLAGS2 = -s
++LFLAGS2 =
+
+ # object file lists
+ OBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o crypt.o ttyio.o \