name=opentyrian
version=2.1
-release=1
+release=2
source=(http://mikeux.dyndns.org/crux/files/$name-$version.tar.bz2 \
http://camanis.net/tyrian/tyrian21.zip)
build() {
cd $name-$version
- sed 's|:=|=|g' -i Makefile
+ # fix default screen scaler and resolution
+ sed -i src/video_scale.c -e 's|int scale, scaler = 2|int scale, scaler = 0|'
+ # fix var's assingement in Makefile
+ sed -i Makefile -e 's|:=|=|'
+
make \
CC="$CC" CFLAGS="$CFLAGS -fgnu89-inline" STRIP="$STRIP" \
SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" \
install -D -m 0755 $name $PKG/usr/share/$name/$name
rm -f $SRC/tyrian21/*.exe
- mv $SRC/tyrian21/* $PKG/usr/share/$name/data/
+ install -m 0644 $SRC/tyrian21/* $PKG/usr/share/$name/data/
cat > $PKG/usr/bin/$name << __EOF__
#!/bin/sh