diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2008-12-11 01:30:53 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2008-12-11 01:30:53 (GMT) |
commit | 8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f (patch) | |
tree | 99edff3d756441a12087ecd5053d9ca60536beff /abs/extra-testing/smpeg | |
parent | e649efa24662af962e6cbd7b9ece1bdd8f6a9340 (diff) | |
download | linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.zip linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.tar.gz linhes_pkgbuild-8417e5e3b118ed9e12563a3d4fceeb38b9e73d4f.tar.bz2 |
Deps for emulators and Miro.
Diffstat (limited to 'abs/extra-testing/smpeg')
-rw-r--r-- | abs/extra-testing/smpeg/PKGBUILD | 28 | ||||
-rw-r--r-- | abs/extra-testing/smpeg/smpeg-0.4.4-gcc41.patch | 41 |
2 files changed, 69 insertions, 0 deletions
diff --git a/abs/extra-testing/smpeg/PKGBUILD b/abs/extra-testing/smpeg/PKGBUILD new file mode 100644 index 0000000..1b52434 --- /dev/null +++ b/abs/extra-testing/smpeg/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 19615 2008-11-28 13:17:01Z allan $ +# Maintainer: Eric Belanger <eric@archlinux.org> +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgname=smpeg +pkgver=0.4.4 +pkgrel=4 +pkgdesc="SDL MPEG Player Library" +arch=('i686' 'x86_64') +url="http://icculus.org/smpeg/" +license=('LGPL') +depends=('sdl') +makedepends=('gtk' 'mesa') +options=('!libtool' '!makeflags') +source=(http://mirrors.dotsrc.org/lokigames/open-source/smpeg/$pkgname-$pkgver.tar.gz smpeg-0.4.4-gcc41.patch) +md5sums=('59c76ac704088ef5539210190c4e1fe3' '8b979a58307d7196655758bd3d2466c4') +sha1sums=('6d7f4449472e6270ab435b2224f3fad951c35259' '7d9a2ad7f6b702dfe3adcb87601d9b55022bbd1e') + +build() { + cd $startdir/src/$pkgname-$pkgver + patch -p1 < ../smpeg-0.4.4-gcc41.patch + ./configure --prefix=/usr + make LDFLAGS+=-lstdc++ || return 1 + make DESTDIR=$startdir/pkg install + + #fix aclocal warnings + sed -i "s#(AM_PATH_SMPEG#([AM_PATH_SMPEG]#" ${pkgdir}/usr/share/aclocal/smpeg.m4 +} diff --git a/abs/extra-testing/smpeg/smpeg-0.4.4-gcc41.patch b/abs/extra-testing/smpeg/smpeg-0.4.4-gcc41.patch new file mode 100644 index 0000000..4a0eeb4 --- /dev/null +++ b/abs/extra-testing/smpeg/smpeg-0.4.4-gcc41.patch @@ -0,0 +1,41 @@ +Index: MPEGaudio.h +=================================================================== +RCS file: /cvs/cvsroot/smpeg/MPEGaudio.h,v +retrieving revision 1.23 +diff -u -p -r1.23 MPEGaudio.h +--- smpeg/MPEGaudio.h 17 Jul 2001 19:52:24 -0000 1.23 ++++ smpeg/MPEGaudio.h 6 Dec 2005 06:10:43 -0000 +@@ -151,12 +151,6 @@ private: + /* The actual MPEG audio class */ + class MPEGaudio : public MPEGerror, public MPEGaudioaction { + +- friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); +- friend int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len); +-#ifdef THREADED_AUDIO +- friend int Decode_MPEGaudio(void *udata); +-#endif +- + public: + MPEGaudio(MPEGstream *stream, bool initSDL = true); + virtual ~MPEGaudio(); +@@ -367,6 +361,20 @@ public: + #define N_TIMESTAMPS 5 + + double timestamp[N_TIMESTAMPS]; ++ ++ /* Functions which access MPEGaudio internals */ ++ friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); ++ friend int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len); ++#ifdef THREADED_AUDIO ++ friend int Decode_MPEGaudio(void *udata); ++#endif + }; + ++/* Need to duplicate the prototypes, this is not a typo :) */ ++void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); ++int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len); ++#ifdef THREADED_AUDIO ++int Decode_MPEGaudio(void *udata); ++#endif ++ + #endif /* _MPEGAUDIO_H_ */ |