36 lines
993 B
Bash
Executable file
36 lines
993 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# THIS NEEDS THE NATIVE COMPILER CHECKS DEACTIVATING (width of char)
|
|
|
|
git clone https://github.com/chernandezba/zesarux
|
|
|
|
cd zesarux
|
|
git checkout -- src/configure
|
|
git checkout ZEsarUX-X
|
|
|
|
export CFLAGS="-O3 -I$PREFIX/include $($PREFIX/bin/sdl-config --cflags)"
|
|
export CXXFLAGS="-O3 -I$PREFIX/include $($PREFIX/bin/sdl-config --cflags)"
|
|
export LDFLAGS="-L$PREFIX/lib $($PREFIX/bin/sdl-config --libs) -liconv"
|
|
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
|
|
|
|
cd src
|
|
|
|
sed -i 's#CHARSIZE=`./$TEMPFILE.o`#CHARSIZE=1#' configure # prevent execution of char check
|
|
sed -i 's#SHORTSIZE=`./$TEMPFILE.o`#SHORTSIZE=2#' configure # prevent execution of short/int checks
|
|
sed -i 's#!= "4"#!= "2"#' configure # fake result not used.
|
|
sed -i 's#!= "8"#!= "2"#' configure # fake result. not used.
|
|
|
|
|
|
make clean
|
|
|
|
./configure \
|
|
--prefix "$PREFIX" \
|
|
--c-compiler "$xCC" \
|
|
--disable-pulse \
|
|
--disable-coreaudio
|
|
|
|
make
|
|
|
|
cp -fv zesarux "$PREFIX/bin/"
|
|
mkdir "$PREFIX/share/zesarux" || true
|
|
|