summaryrefslogtreecommitdiff
path: root/data/top
diff options
context:
space:
mode:
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 :