summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {
+