diff options
author | Jay Freeman <saurik@saurik.com> | 2008-04-06 10:28:29 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-04-06 10:28:29 +0000 |
commit | d699a01fabaa04a1aad60f6ca5777f82ee24839a (patch) | |
tree | 1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/iokittools | |
parent | 8a49e427447f40fdd43fc4b5f513b166dd639e2a (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/iokittools')
l--------- | data/iokittools/_metadata/ncurses.dep | 1 | ||||
-rw-r--r-- | data/iokittools/mactypes.diff | 33 | ||||
-rw-r--r-- | data/iokittools/make.sh | 7 |
3 files changed, 38 insertions, 3 deletions
diff --git a/data/iokittools/_metadata/ncurses.dep b/data/iokittools/_metadata/ncurses.dep new file mode 120000 index 000000000..a395fad08 --- /dev/null +++ b/data/iokittools/_metadata/ncurses.dep @@ -0,0 +1 @@ +../../ncurses
\ No newline at end of file diff --git a/data/iokittools/mactypes.diff b/data/iokittools/mactypes.diff new file mode 100644 index 000000000..a2233cada --- /dev/null +++ b/data/iokittools/mactypes.diff @@ -0,0 +1,33 @@ +diff -ru IOKitTools-76/ioalloccount.tproj/ioalloccount.c IOKitTools-76+iPhone/ioalloccount.tproj/ioalloccount.c +--- IOKitTools-76/ioalloccount.tproj/ioalloccount.c 2003-11-18 19:23:01.000000000 +0000 ++++ IOKitTools-76+iPhone/ioalloccount.tproj/ioalloccount.c 2008-03-24 11:14:24.000000000 +0000 +@@ -6,6 +6,7 @@ + #include <CoreFoundation/CoreFoundation.h> + #include <IOKit/IOKitLib.h> + #include <IOKit/IOKitKeys.h> ++#include <MacTypes.h> + + static void printNumber( CFDictionaryRef dict, CFStringRef name ) + { +diff -ru IOKitTools-76/ioclasscount.tproj/ioclasscount.c IOKitTools-76+iPhone/ioclasscount.tproj/ioclasscount.c +--- IOKitTools-76/ioclasscount.tproj/ioclasscount.c 2003-11-06 19:16:54.000000000 +0000 ++++ IOKitTools-76+iPhone/ioclasscount.tproj/ioclasscount.c 2008-03-24 11:14:24.000000000 +0000 +@@ -8,6 +8,7 @@ + + #include <IOKit/IOKitLib.h> + #include <IOKit/IOKitKeys.h> ++#include <MacTypes.h> + + static int CompareKey(const void * left, const void * right) + { +diff -ru IOKitTools-76/ioreg.tproj/ioreg.c IOKitTools-76+iPhone/ioreg.tproj/ioreg.c +--- IOKitTools-76/ioreg.tproj/ioreg.c 2007-01-23 21:29:08.000000000 +0000 ++++ IOKitTools-76+iPhone/ioreg.tproj/ioreg.c 2008-03-24 11:14:47.000000000 +0000 +@@ -28,6 +28,7 @@ + #include <sys/ioctl.h> // (TIOCGWINSZ, ...) + #include <term.h> // (tputs, ...) + #include <unistd.h> // (getopt, ...) ++#include <MacTypes.h> + + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/data/iokittools/make.sh b/data/iokittools/make.sh index 566b36f34..a846152d7 100644 --- a/data/iokittools/make.sh +++ b/data/iokittools/make.sh @@ -1,8 +1,9 @@ shopt -s extglob -tar -zxvf "${PKG_DATA}/IOKitTools-76.tar.gz" -cd IOKitTools-76 +pkg:extract +cd * +pkg:patch for tproj in *.tproj; do tproj=$(basename "${tproj}" .tproj) - arm-apple-darwin-gcc -lcurses -o "${tproj}" "${tproj}.tproj"/*.c -framework CoreFoundation -framework IOKit + ${PKG_TARG}-gcc -lcurses -o "${tproj}" "${tproj}.tproj"/*.c -framework CoreFoundation -framework IOKit pkg:usrbin "${tproj}" done |