commit 6272fe6ee9c51dd9daeef149cf96664f9d18a7b1 Author: Matt Housh <jaeger@crux.nu> Date: Sun Jan 28 12:17:55 2007 -0600 smpeg: added patch for crux 2.3 and fixed source url diff --git a/smpeg/.md5sum b/smpeg/.md5sum index c668790..4239da1 100644 --- a/smpeg/.md5sum +++ b/smpeg/.md5sum @@ -1 +1,2 @@ 59c76ac704088ef5539210190c4e1fe3 smpeg-0.4.4.tar.gz +514632fb38e5ad33970854b3baa873f2 smpeg-mpegaudiosdl.patch diff --git a/smpeg/Pkgfile b/smpeg/Pkgfile index 1206482..13a69ac 100644 --- a/smpeg/Pkgfile +++ b/smpeg/Pkgfile @@ -6,10 +6,12 @@ name=smpeg version=0.4.4 release=1 -source=(ftp://sunsite.dk/pub/os/linux/loki/open-source/$name/$name-$version.tar.gz) +source=(http://gentoo.osuosl.org/distfiles/$name-$version.tar.gz \ + $name-mpegaudiosdl.patch) build() { cd $name-$version + patch -p1 -i $SRC/$name-mpegaudiosdl.patch ./configure --prefix=/usr sed -i -e 's|\(libsmpeg_la_LDFLAGS = .*\)|\1 -lstdc++|' Makefile make diff --git a/smpeg/smpeg-mpegaudiosdl.patch b/smpeg/smpeg-mpegaudiosdl.patch new file mode 100644 index 0000000..af76807 --- /dev/null +++ b/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 { +