From 35ef70353227e4dff60fc36437f08293be752b25 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Wed, 9 Jan 2008 22:21:43 +0000 Subject: 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 --- make.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'make.sh') 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_ { -- cgit v1.2.3