2012-11-27 03:40:43 +00:00
|
|
|
#!/bin/sh -x
|
2012-11-29 02:19:09 +00:00
|
|
|
set -e
|
|
|
|
mkdir -p native mipsel-linux
|
2012-11-27 03:40:43 +00:00
|
|
|
cd native
|
2012-11-29 02:19:09 +00:00
|
|
|
../../configure \
|
|
|
|
--disable-shared \
|
|
|
|
--without-clients \
|
|
|
|
--without-servers \
|
|
|
|
--with-tools=qfcc,pak
|
2012-11-27 03:40:43 +00:00
|
|
|
cd ../mipsel-linux
|
|
|
|
export MIPSEL=/opt/gcw0-toolchain
|
2012-11-29 02:19:09 +00:00
|
|
|
export MIPSEL_SYSROOT=$MIPSEL/usr/mipsel-gcw0-linux-uclibc/sysroot
|
2013-01-10 12:13:19 +00:00
|
|
|
export PKG_CONFIG_LIBDIR=$MIPSEL_SYSROOT/usr/lib/pkgconfig
|
2012-11-29 02:19:09 +00:00
|
|
|
export PKG_CONFIG_PATH=$MIPSEL_SYSROOT/usr/local/lib/pkgconfig
|
2012-11-27 03:40:43 +00:00
|
|
|
export PATH=$MIPSEL/usr/bin:$PATH
|
|
|
|
../../configure --host=mipsel-linux \
|
2012-11-29 02:19:09 +00:00
|
|
|
--with-sysroot=$MIPSEL_SYSROOT \
|
2012-11-27 03:40:43 +00:00
|
|
|
--disable-sdl-cd \
|
2012-11-28 10:15:38 +00:00
|
|
|
--with-endian=little \
|
2012-11-29 02:19:09 +00:00
|
|
|
SDL_CONFIG=$MIPSEL_SYSROOT/usr/bin/sdl-config \
|
2012-11-27 03:40:43 +00:00
|
|
|
$*
|