summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-06-25 00:00:44 +0200
committersibel <lesibel at free dot fr>2010-06-25 00:00:44 +0200
commit5cf63bfb91356c85868c15f83ae9038ad9ac68d1 (patch)
tree0a1bb360bce57156bd20122f04f671af75f4f500
parent6746697bb7b18e0881c72da78111d5a45a197116 (diff)
downloadnutyx-pakxe-5cf63bfb91356c85868c15f83ae9038ad9ac68d1.tar.gz
nutyx-pakxe-5cf63bfb91356c85868c15f83ae9038ad9ac68d1.tar.bz2
nutyx-pakxe-5cf63bfb91356c85868c15f83ae9038ad9ac68d1.tar.xz
nutyx-pakxe-5cf63bfb91356c85868c15f83ae9038ad9ac68d1.zip
maj de xmoto#0.5.3-1
-rw-r--r--extra/xmoto/.footprint1
-rw-r--r--extra/xmoto/.md5sum3
-rw-r--r--extra/xmoto/Pkgfile21
-rw-r--r--extra/xmoto/libpng-14.patch11
4 files changed, 28 insertions, 8 deletions
diff --git a/extra/xmoto/.footprint b/extra/xmoto/.footprint
index 0483b4ec5..8d140986c 100644
--- a/extra/xmoto/.footprint
+++ b/extra/xmoto/.footprint
@@ -17,6 +17,7 @@ drwxr-xr-x root/root usr/share/xmoto/Textures/Fonts/
drwxr-xr-x root/root usr/share/xmoto/Textures/Musics/
-rw-r--r-- root/root usr/share/xmoto/Textures/Musics/MadeiraStew.ogg
-rw-r--r-- root/root usr/share/xmoto/Textures/Musics/batcave.ogg
+-rw-r--r-- root/root usr/share/xmoto/Textures/Musics/foxrun.ogg
-rw-r--r-- root/root usr/share/xmoto/Textures/Musics/legolodio.ogg
-rw-r--r-- root/root usr/share/xmoto/Textures/Musics/menu.ogg
-rw-r--r-- root/root usr/share/xmoto/Textures/Musics/ridealong.ogg
diff --git a/extra/xmoto/.md5sum b/extra/xmoto/.md5sum
index d3d4f0445..1f345312e 100644
--- a/extra/xmoto/.md5sum
+++ b/extra/xmoto/.md5sum
@@ -1,2 +1,3 @@
-1e3678ebceca21d61844efb53c140227 xmoto-0.5.2-src.tar.gz
+13b56f0b5fe85159073c9c2dad311e14 libpng-14.patch
+7505965c1c64c0080023c7ed6d5cfedd xmoto-0.5.3-src.tar.gz
db4619f2ee1f0a8d6b058cffdddff4d8 xmoto.desktop
diff --git a/extra/xmoto/Pkgfile b/extra/xmoto/Pkgfile
index 44870d462..a9c9888e4 100644
--- a/extra/xmoto/Pkgfile
+++ b/extra/xmoto/Pkgfile
@@ -2,22 +2,29 @@
# URL: http://xmoto.tuxfamily.org
# Maintainer: NuTyX core team
# Packager: charles dot rapenne at gmail dot com
-# Depends on: ode, libjpeg, libpng, zlib, bzip2, sdl, sdl_ttf, curl, lua, sdl_mixer, sdl_net, sqlite3
+# Depends on: libxdg-basedir, ode, libjpeg, libpng, zlib, bzip2, sdl, sdl_ttf, curl, lua, sdl_mixer, sdl_net, sqlite3
+
name=xmoto
-version=0.5.2
+version=0.5.3
release=1
-source=(http://download.tuxfamily.org/xmoto/xmoto/0.5.2/$name-$version-src.tar.gz xmoto.desktop)
+
+source=(http://download.tuxfamily.org/xmoto/xmoto/0.5.3/$name-$version-src.tar.gz
+ xmoto.desktop
+ libpng-14.patch)
+
build() {
-mkdir -p $PKG/usr/share/pixmaps/ $PKG/usr/share/applications/
+ mkdir -p $PKG/usr/share/pixmaps/ $PKG/usr/share/applications/
+
+ cd $name-$version
+ patch -Np1 -i $SRC/libpng-14.patch
-cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
-install -m 644 ../xmoto.desktop $PKG/usr/share/applications/
-install -m 644 extra/xmoto.xpm $PKG/usr/share/pixmaps/
+ install -m 644 ../xmoto.desktop $PKG/usr/share/applications/
+ install -m 644 extra/xmoto.xpm $PKG/usr/share/pixmaps/
}
diff --git a/extra/xmoto/libpng-14.patch b/extra/xmoto/libpng-14.patch
new file mode 100644
index 000000000..6e4eb2cd8
--- /dev/null
+++ b/extra/xmoto/libpng-14.patch
@@ -0,0 +1,11 @@
+--- xmoto-0.5.3/src/image/tim_png.cpp.old 2010-05-19 21:13:09.401802546 +0200
++++ xmoto-0.5.3/src/image/tim_png.cpp 2010-05-19 21:15:13.008451656 +0200
+@@ -166,7 +166,7 @@
+ png_set_palette_to_rgb(PngPtr);
+
+ if(nColorType==PNG_COLOR_TYPE_GRAY && nBitDepth<8)
+- png_set_gray_1_2_4_to_8(PngPtr);
++ png_set_expand_gray_1_2_4_to_8(PngPtr);
+
+ if(png_get_valid(PngPtr,InfoPtr,PNG_INFO_tRNS))
+ png_set_tRNS_to_alpha(PngPtr);