CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
reminiscence: tried to change the default scaler to 0 (non-scaled)
[attic/ports/games-cross.git] / opentyrian / Pkgfile
index 91c23b4fbe0cb68c026cd8847a8f8676a7ad9ed4..4f8897c3ff7128940f43de97591a7d7528e7109c 100644 (file)
@@ -7,14 +7,18 @@
 
 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" \
@@ -24,7 +28,7 @@ build() {
   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