summaryrefslogtreecommitdiff
path: root/data/top
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/top
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/top')
-rw-r--r--data/top/mactypes.diff11
-rw-r--r--data/top/make.sh8
-rw-r--r--data/top/strip.diff3
3 files changed, 16 insertions, 6 deletions
diff --git a/data/top/mactypes.diff b/data/top/mactypes.diff
new file mode 100644
index 000000000..48d006c68
--- /dev/null
+++ b/data/top/mactypes.diff
@@ -0,0 +1,11 @@
+diff -ru top-37/libtop.c top-37+iPhone/libtop.c
+--- top-37/libtop.c 2007-06-29 23:50:49.000000000 +0000
++++ top-37+iPhone/libtop.c 2008-03-24 12:16:34.000000000 +0000
+@@ -47,6 +47,7 @@
+ #include <sys/param.h>
+ #include <sys/sysctl.h>
+ #include <pwd.h>
++#include <MacTypes.h>
+
+ #include <sys/resource.h>
+
diff --git a/data/top/make.sh b/data/top/make.sh
index a2a21d3ca..072bcdce9 100644
--- a/data/top/make.sh
+++ b/data/top/make.sh
@@ -1,5 +1,5 @@
-tar -zxvf "${PKG_DATA}/top-37.tar.gz"
-cd top-37
+pkg:extract
+cd *
pkg:patch
-make CC=arm-apple-darwin-gcc AR=arm-apple-darwin-ar RANLIB=arm-apple-darwin-ranlib
-make install STRIP=arm-apple-darwin-strip DSTROOT="${PKG_DEST}"
+make CC="${PKG_TARG}-gcc" AR="${PKG_TARG}-ar" RANLIB="${PKG_TARG}-ranlib"
+make install STRIP="${PKG_TARG}-strip" DSTROOT="${PKG_DEST}"
diff --git a/data/top/strip.diff b/data/top/strip.diff
index 3303c3dd5..644196b0e 100644
--- a/data/top/strip.diff
+++ b/data/top/strip.diff
@@ -1,12 +1,11 @@
diff -u top-37/Makefile top-37+iPhone/Makefile
--- top-37/Makefile 2006-06-19 22:22:33.000000000 +0000
+++ top-37+iPhone/Makefile 2007-12-27 12:03:07.000000000 +0000
-@@ -77,7 +77,8 @@
+@@ -77,7 +77,7 @@
installbin : $(SYMROOT)/$(BIN)
$(INSTALL) -d $(DSTROOT)/usr/bin
- $(INSTALL) -s -m 4755 $< $(DSTROOT)/usr/bin
-+ $(STRIP) $<
+ $(INSTALL) -m 4755 $< $(DSTROOT)/usr/bin
installman :