smpeg stable port information

# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.

Package: smpeg
Version: 0.4.4
Revision: 1027
Maintainer: Max Horn
Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true
BuildDepends: sdl (>= 1.2.9-1001), fink (>= 0.24.12)
Source: ftp://sunsite.auc.dk/pub/os/linux/loki/open-source/%n/%n-%v.tar.gz
Source-MD5: 59c76ac704088ef5539210190c4e1fe3
UpdateLibtool: true
PatchFile: %n.patch
PatchFile-MD5: 0234a09b0370dc785e2fb31baf024d88
SetCPPFLAGS: -I..
ConfigureParams: --disable-opengl-player --disable-gtk-player --disable-sdltest --disable-dependency-tracking --mandir='$(prefix)/share/man'
InstallScript: make install DESTDIR=%d
GCC: 4.0
SplitOff: <<
Package: %N-shlibs
Depends: sdl-shlibs (>= 1.2.9-1001)
Replaces: %N (<= 0.4.4-4)
Files: lib/libsmpeg-*.dylib
Shlibs: %p/lib/libsmpeg-0.4.0.dylib 2.0.0 %n (>= 0.4.4-25)
Docfiles: CHANGES COPYING README
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (= %v-%r)
Replaces: %N (<= 0.4.4-4)
Files: bin/plaympeg
Docfiles: CHANGES COPYING README
<<
DocFiles: CHANGES COPYING README README.SDL_mixer TODO
Description: SDL MPEG Player Library
DescPackaging: <<
Needs help to ensure it uses its own header files while building.
Disable SDL check, to allow building on headless systems.

dmacks patched smpeg.m4 syntax for more pedantic automake1.9
<<
Homepage: http://www.lokigames.com/development/smpeg.php3
License: LGPL

smpeg stable port .patch

diff -ru smpeg-0.4.4/MPEGaudio.h smpeg-0.4.4-patched/MPEGaudio.h
--- smpeg-0.4.4/MPEGaudio.h 2001-04-04 22:42:40.000000000 +0200
+++ smpeg-0.4.4-patched/MPEGaudio.h 2009-09-25 21:20:26.000000000 +0200
@@ -149,6 +149,14 @@
};

/* The actual MPEG audio class */
+
+class MPEGaudio;
+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
+
class MPEGaudio : public MPEGerror, public MPEGaudioaction {

friend void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len);
diff -ru smpeg-0.4.4/smpeg.m4 smpeg-0.4.4-patched/smpeg.m4
--- smpeg-0.4.4/smpeg.m4 2001-04-04 22:28:14.000000000 +0200
+++ smpeg-0.4.4-patched/smpeg.m4 2009-09-25 21:20:26.000000000 +0200
@@ -10,7 +10,7 @@
ACTION-IF-NOT-FOUND]]])
dnl Test for SMPEG, and define SMPEG_CFLAGS and SMPEG_LIBS
dnl
-AC_DEFUN(AM_PATH_SMPEG,
+AC_DEFUN([AM_PATH_SMPEG],
[dnl
dnl Get the cflags and libraries from the smpeg-config script
dnl
diff -ru smpeg-0.4.4/video/video.h smpeg-0.4.4-patched/video/video.h
--- smpeg-0.4.4/video/video.h 2001-02-10 08:36:42.000000000 +0100
+++ smpeg-0.4.4-patched/video/video.h 2009-09-25 21:20:54.000000000 +0200
@@ -413,7 +413,7 @@
#define __SCO__ 1
#endif

-#if defined(__i386__) || defined(__VAX__) || defined(__MIPSEL__) || defined(__alpha__) || defined(__SCO__)
+#if defined(__i386__) || defined(__x86_64__) || defined(__VAX__) || defined(__MIPSEL__) || defined(__alpha__) || defined(__SCO__)
#undef BIG_ENDIAN_ARCHITECTURE
#define LITTLE_ENDIAN_ARCHITECTURE 1
#endif

smpeg _unstable_ port .patch