update env to install ttf, vorbis and ogg in tmp/root. Then use that prefix for compiling sdlmixer and sdlttf.
This commit is contained in:
parent
83702e5f36
commit
10c9887263
4 changed files with 12 additions and 3 deletions
|
@ -17,7 +17,7 @@ fi
|
||||||
|
|
||||||
# lib not found, compile it
|
# lib not found, compile it
|
||||||
pushd $TMPROOT/freetype-$FT_VERSION
|
pushd $TMPROOT/freetype-$FT_VERSION
|
||||||
try ./configure --prefix=/usr/local/iphone \
|
try ./configure --prefix=$DESTROOT \
|
||||||
--host=arm-apple-darwin \
|
--host=arm-apple-darwin \
|
||||||
--enable-static=yes \
|
--enable-static=yes \
|
||||||
--enable-shared=no \
|
--enable-shared=no \
|
||||||
|
@ -25,6 +25,7 @@ try ./configure --prefix=/usr/local/iphone \
|
||||||
LDFLAGS="$ARM_LDFLAGS" CFLAGS="$ARM_CFLAGS"
|
LDFLAGS="$ARM_LDFLAGS" CFLAGS="$ARM_CFLAGS"
|
||||||
try make clean
|
try make clean
|
||||||
try make
|
try make
|
||||||
|
try make install
|
||||||
|
|
||||||
# copy to buildroot
|
# copy to buildroot
|
||||||
cp objs/.libs/libfreetype.a $BUILDROOT/lib/libfreetype.a
|
cp objs/.libs/libfreetype.a $BUILDROOT/lib/libfreetype.a
|
||||||
|
|
|
@ -28,12 +28,14 @@ fi
|
||||||
if [ ! -f libogg/src/.libs/libogg.a ]; then
|
if [ ! -f libogg/src/.libs/libogg.a ]; then
|
||||||
try cd libogg
|
try cd libogg
|
||||||
try ./configure --disable-shared \
|
try ./configure --disable-shared \
|
||||||
|
--prefix=$DESTROOT \
|
||||||
--host=arm-apple-darwin \
|
--host=arm-apple-darwin \
|
||||||
--enable-static=yes \
|
--enable-static=yes \
|
||||||
--enable-shared=no \
|
--enable-shared=no \
|
||||||
CC="$ARM_CC" AR="$ARM_AR" \
|
CC="$ARM_CC" AR="$ARM_AR" \
|
||||||
LDFLAGS="$ARM_LDFLAGS" CFLAGS="$ARM_CFLAGS"
|
LDFLAGS="$ARM_LDFLAGS" CFLAGS="$ARM_CFLAGS"
|
||||||
try make
|
try make
|
||||||
|
try make install
|
||||||
try cd ..
|
try cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -45,12 +47,14 @@ if [ ! -f libtremor/tremor/.libs/libvorbisidec.a ]; then
|
||||||
OGG_CFLAGS="-I../../libogg/include" \
|
OGG_CFLAGS="-I../../libogg/include" \
|
||||||
OGG_LDFLAGS="-L../../libogg/src/.libs" \
|
OGG_LDFLAGS="-L../../libogg/src/.libs" \
|
||||||
PKG_CONFIG_LIBDIR="../../libogg" \
|
PKG_CONFIG_LIBDIR="../../libogg" \
|
||||||
ACLOCAL_FLAGS="-I /usr/local/share/aclocal" ./autogen.sh \
|
ACLOCAL_FLAGS="-I $DESTROOT/share/aclocal -I /usr/local/share/aclocal" ./autogen.sh \
|
||||||
|
--prefix=$DESTROOT \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--host=arm-apple-darwin \
|
--host=arm-apple-darwin \
|
||||||
--enable-static=yes \
|
--enable-static=yes \
|
||||||
--enable-shared=no
|
--enable-shared=no
|
||||||
try make
|
try make
|
||||||
|
try make install
|
||||||
try cd ../..
|
try cd ../..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,9 @@ if [ ! -f $TMPROOT/SDL_ttf-$SDLTTF_VERSION/.libs/libSDL_ttf.a ]; then
|
||||||
rm libSDL_ttf.la
|
rm libSDL_ttf.la
|
||||||
|
|
||||||
# generate a sdl.pc file that contain all the information of our generated SDL
|
# generate a sdl.pc file that contain all the information of our generated SDL
|
||||||
try ./configure --prefix=/usr/local/iphone \
|
set -x
|
||||||
|
try ./configure --prefix=$DESTROOT \
|
||||||
|
--with-freetype-prefix=$DESTROOT \
|
||||||
--host=arm-apple-darwin \
|
--host=arm-apple-darwin \
|
||||||
--enable-static=yes \
|
--enable-static=yes \
|
||||||
--enable-shared=no \
|
--enable-shared=no \
|
||||||
|
|
|
@ -35,6 +35,7 @@ export LXML_VERSION=2.3.1
|
||||||
export KIVYIOSROOT="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
|
export KIVYIOSROOT="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
|
||||||
export BUILDROOT="$KIVYIOSROOT/build"
|
export BUILDROOT="$KIVYIOSROOT/build"
|
||||||
export TMPROOT="$KIVYIOSROOT/tmp"
|
export TMPROOT="$KIVYIOSROOT/tmp"
|
||||||
|
export DESTROOT="$KIVYIOSROOT/tmp/root"
|
||||||
export CACHEROOT="$KIVYIOSROOT/.cache"
|
export CACHEROOT="$KIVYIOSROOT/.cache"
|
||||||
|
|
||||||
# pkg-config for SDL and futures
|
# pkg-config for SDL and futures
|
||||||
|
@ -65,6 +66,7 @@ try mkdir -p $BUILDROOT/include
|
||||||
try mkdir -p $BUILDROOT/lib
|
try mkdir -p $BUILDROOT/lib
|
||||||
try mkdir -p $CACHEROOT
|
try mkdir -p $CACHEROOT
|
||||||
try mkdir -p $TMPROOT
|
try mkdir -p $TMPROOT
|
||||||
|
try mkdir -p $DESTROOT
|
||||||
|
|
||||||
# one method to deduplicate some symbol in libraries
|
# one method to deduplicate some symbol in libraries
|
||||||
function deduplicate() {
|
function deduplicate() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue