summaryrefslogtreecommitdiff
path: root/data/libutil
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/libutil
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/libutil')
-rw-r--r--data/libutil/local.diff39
-rw-r--r--data/libutil/make.sh9
2 files changed, 44 insertions, 4 deletions
diff --git a/data/libutil/local.diff b/data/libutil/local.diff
new file mode 100644
index 000000000..d669d961a
--- /dev/null
+++ b/data/libutil/local.diff
@@ -0,0 +1,39 @@
+diff -ru libutil-11/Makefile libutil-11+iPhone/Makefile
+--- libutil-11/Makefile 2007-02-28 03:34:30.000000000 +0000
++++ libutil-11+iPhone/Makefile 2008-03-24 10:13:50.000000000 +0000
+@@ -50,8 +50,8 @@
+ done
+
+ installhdrs :
+- $(INSTALL) -d $(DSTROOT)/usr/local/include
+- $(INSTALL) -m 0644 $(HDRS) $(DSTROOT)/usr/local/include
++ $(INSTALL) -d $(DSTROOT)/usr/include
++ $(INSTALL) -m 0644 $(HDRS) $(DSTROOT)/usr/include
+
+
+ install : installhdrs installlib strip installman install-plist
+@@ -74,10 +74,10 @@
+ $(LN) -fs libutil1.0.dylib $(DSTROOT)/usr/lib/libutil.dylib
+
+ installman :
+- $(INSTALL) -d $(DSTROOT)/usr/local/share/man/man3
++ $(INSTALL) -d $(DSTROOT)/usr/share/man/man3
+ @for i in $(MAN3); do\
+- echo "$(INSTALL) -m 0444 $(SRCROOT)/$$i $(DSTROOT)/usr/local/share/man/man3/"; \
+- $(INSTALL) -m 0444 $(SRCROOT)/$$i $(DSTROOT)/usr/local/share/man/man3; \
++ echo "$(INSTALL) -m 0444 $(SRCROOT)/$$i $(DSTROOT)/usr/share/man/man3/"; \
++ $(INSTALL) -m 0444 $(SRCROOT)/$$i $(DSTROOT)/usr/share/man/man3; \
+ done
+
+ $(OBJROOT)/%.o : $(SRCROOT)/%.c \
+@@ -87,8 +87,8 @@
+ $(SYMROOT)/$(LIB) : $(patsubst %.c,$(OBJROOT)/%.o,$(SRCS))
+ $(CC) -dynamiclib $(LDFLAGS) -o $@ $?
+
+-OSV = $(DSTROOT)/usr/local/OpenSourceVersions
+-OSL = $(DSTROOT)/usr/local/OpenSourceLicenses
++OSV = $(DSTROOT)/usr/OpenSourceVersions
++OSL = $(DSTROOT)/usr/OpenSourceLicenses
+
+ install-plist:
+ $(MKDIR) $(OSV)
diff --git a/data/libutil/make.sh b/data/libutil/make.sh
index db247280f..3e867c082 100644
--- a/data/libutil/make.sh
+++ b/data/libutil/make.sh
@@ -1,4 +1,5 @@
-tar -zxvf "${PKG_DATA}/libutil-11.tar.gz"
-cd libutil-11
-make CC=arm-apple-darwin-gcc
-make install STRIP=arm-apple-darwin-strip DSTROOT="${PKG_DEST}"
+pkg:extract
+cd *
+pkg:patch
+make CC="${PKG_TARG}-gcc"
+make install STRIP="${PKG_TARG}-strip" DSTROOT="${PKG_DEST}"