summaryrefslogtreecommitdiff
path: root/make.sh
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 /make.sh
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 'make.sh')
-rwxr-xr-xmake.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/make.sh b/make.sh
index 4955314cc..2e1b8aa5d 100755
--- a/make.sh
+++ b/make.sh
@@ -70,11 +70,24 @@ function pkg:bin() {
export PKG_CONF=./configure
function pkg:configure() {
- "${PKG_CONF}" --disable-nls --prefix=/usr --host=arm-apple-darwin "$@"
+ for ltmain in $(find -name ltmain.sh); do
+ patch "${ltmain}" "${PKG_BASE}/util/libtool.diff" || true
+ done
+
+ PKG_CONFIG="$(realpath "${PKG_BASE}/util/pkg-config.sh") --define-variable=prefix=${PKG_ROOT}/usr" \
+ PKG_CONFIG_PATH=${PKG_ROOT}/usr/lib/pkgconfig \
+ "${PKG_CONF}" \
+ --host=arm-apple-darwin \
+ --disable-nls \
+ --enable-static=no \
+ --enable-shared=yes \
+ --prefix=/usr \
+ --localstatedir="/var/cache/${PKG_NAME}" \
+ "$@"
}
function pkg:install() {
- make install DESTDIR="${PKG_DEST}"
+ make install DESTDIR="${PKG_DEST}" "$@"
}
function pkg_ {