summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-09 22:21:43 +0000
committerJay Freeman <saurik@saurik.com>2008-01-09 22:21:43 +0000
commit35ef70353227e4dff60fc36437f08293be752b25 (patch)
tree806d29fe3d68433a1c971336dff58863918b2709 /util
parent03880b546d794abafd6dab3eed876dbefe06c174 (diff)
Factored out --enable-{static=no,shared=yes}, did some extreme porting on pkg-config and libtool, added support for numerous X libraries and a few X applications, and got a solid build of Python with a bunch of modules (compiled as a shared library with the right extensions ;P).
git-svn-id: http://svn.telesphoreo.org/trunk@12 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'util')
-rwxr-xr-xutil/configure.sh6
-rw-r--r--util/libtool.diff21
-rwxr-xr-xutil/pkg-config.sh3
3 files changed, 30 insertions, 0 deletions
diff --git a/util/configure.sh b/util/configure.sh
new file mode 100755
index 000000000..0c1cfba6f
--- /dev/null
+++ b/util/configure.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+for ltmain in $(find -name ltmain.sh); do
+ patch -N "${ltmain}" "$(dirname "$0")/libtool.diff" || true
+done
+
+PKG_ROOT=/home/saurik/iphone/sysroot PKG_CONFIG="$(realpath ../../../util/pkg-config.sh) --define-variable=prefix=/home/saurik/iphone/sysroot/usr" PKG_CONFIG_PATH=/home/saurik/iphone/sysroot/usr/lib/pkgconfig ./configure --prefix=/usr --host=arm-apple-darwin --enable-static=no --enable-shared=yes "$@"
diff --git a/util/libtool.diff b/util/libtool.diff
new file mode 100644
index 000000000..634e5b456
--- /dev/null
+++ b/util/libtool.diff
@@ -0,0 +1,21 @@
+diff -ru libX11-1.1.3/ltmain.sh libX11-1.1.3+iPhone/ltmain.sh
+--- libX11-1.1.3/ltmain.sh 2007-07-06 08:20:15.000000000 +0000
++++ libX11-1.1.3+iPhone/ltmain.sh 2008-01-04 09:47:45.000000000 +0000
+@@ -2929,7 +2929,7 @@
+ if grep "^installed=no" $deplib > /dev/null; then
+ path="$absdir/$objdir"
+ else
+- eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $PKG_ROOT$deplib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
+@@ -5664,7 +5664,7 @@
+ case $deplib in
+ *.la)
+ name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+- eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $PKG_ROOT$deplib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+ exit $EXIT_FAILURE
diff --git a/util/pkg-config.sh b/util/pkg-config.sh
new file mode 100755
index 000000000..d9e64d22d
--- /dev/null
+++ b/util/pkg-config.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+echo "$@" | grep -- --atleast >/dev/null && exit 0
+exec pkg-config "$@"