summaryrefslogtreecommitdiffstats
path: root/extra/smpeg
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:47:48 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-12 20:47:48 +0200
commitbe975e32d094beaf68870320b8c52764a1a430cd (patch)
tree6d7073da1ee318620843eab284e40769099e0e08 /extra/smpeg
parent55d63e11656f2cd07f7b15f2833211b55c4d6d89 (diff)
downloadnutyx-pakxe-be975e32d094beaf68870320b8c52764a1a430cd.tar.gz
nutyx-pakxe-be975e32d094beaf68870320b8c52764a1a430cd.tar.bz2
nutyx-pakxe-be975e32d094beaf68870320b8c52764a1a430cd.tar.xz
nutyx-pakxe-be975e32d094beaf68870320b8c52764a1a430cd.zip
Ajout de smpeg#0.4.4-3
Diffstat (limited to 'extra/smpeg')
-rw-r--r--extra/smpeg/Pkgfile28
-rw-r--r--extra/smpeg/smpeg-mpegaudiosdl.patch14
2 files changed, 42 insertions, 0 deletions
diff --git a/extra/smpeg/Pkgfile b/extra/smpeg/Pkgfile
new file mode 100644
index 000000000..7c71540b0
--- /dev/null
+++ b/extra/smpeg/Pkgfile
@@ -0,0 +1,28 @@
+# Description: Librairie lecteur MPEG SDL.
+# URL: http://www.lokigames.com/development/smpeg.php3
+# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: sdl
+
+name=smpeg
+version=0.4.4
+release=3
+source=(http://gentoo.osuosl.org/distfiles/smpeg-$version.tar.gz \
+ smpeg-mpegaudiosdl.patch)
+
+build() {
+ cd smpeg-$version
+ patch -p1 -i $SRC/smpeg-mpegaudiosdl.patch
+
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+
+ sed -i -e 's|\(libsmpeg_la_LDFLAGS = .*\)|\1 -lstdc++|' Makefile
+
+ make
+ make install DESTDIR=$PKG
+
+ rm $PKG/usr/share/man/man1/gtv.1
+}
+
diff --git a/extra/smpeg/smpeg-mpegaudiosdl.patch b/extra/smpeg/smpeg-mpegaudiosdl.patch
new file mode 100644
index 000000000..af76807f5
--- /dev/null
+++ b/extra/smpeg/smpeg-mpegaudiosdl.patch
@@ -0,0 +1,14 @@
+--- smpeg-0.4.4/MPEGaudio.h.orig 2006-01-15 16:17:56.356444000 +0100
++++ smpeg-0.4.4/MPEGaudio.h 2006-01-15 16:18:36.686965250 +0100
+@@ -148,6 +148,11 @@
+ char buffer[2*WINDOWSIZE];
+ };
+
++void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
++#ifdef THREADED_AUDIO
++int Decode_MPEGaudio(void *udata);
++#endif
++
+ /* The actual MPEG audio class */
+ class MPEGaudio : public MPEGerror, public MPEGaudioaction {
+