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