diff --git a/multimedia/video/smpeg/actions.py b/multimedia/video/smpeg/actions.py new file mode 100644 index 0000000000..2cebd0123b --- /dev/null +++ b/multimedia/video/smpeg/actions.py @@ -0,0 +1,58 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.export("CC", get.CC()) + shelltools.export("CXX", get.CXX()) + shelltools.export("RANLIB", get.RANLIB()) + shelltools.export("AR", get.AR()) + + # enable-debug is bogus, it should stay here + options = "--with-x \ + --enable-opengl-player \ + --disable-gtk-player \ + --enable-mmx \ + --disable-assertions \ + --disable-static \ + --enable-debug" + + if get.buildTYPE() == "emul32": + options += " --prefix=/emul32 \ + --libdir=/usr/lib32 \ + --bindir=/emul32/bin \ + --includedir=/emul32/include \ + --mandir=/emul32/man \ + --disable-sdltest \ + --disable-gtktest" + + shelltools.export("CC", "%s -m32" % get.CC()) + shelltools.export("CXX", "%s -m32" % get.CXX()) + shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) + shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) + + + + shelltools.system("rm -rf acinclude/lt*.m4 acinclude/libtool.m4") + + neededfilelist=["NEWS","ChangeLog","AUTHORS"] + for i in neededfilelist: + shelltools.touch(i) + + autotools.autoreconf("-fi -Iacinclude") + autotools.configure(options) + +def build(): + autotools.make() + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("CHANGES", "README*", "TODO") diff --git a/multimedia/video/smpeg/files/smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff b/multimedia/video/smpeg/files/smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff new file mode 100644 index 0000000000..dfcaf05c14 --- /dev/null +++ b/multimedia/video/smpeg/files/smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff @@ -0,0 +1,11 @@ +--- plaympeg.c 2008-12-23 13:36:59.000000000 +0100 ++++ plaympeg.c.oden 2008-12-23 13:36:51.000000000 +0100 +@@ -262,7 +262,7 @@ int ftp_get_reply(int tcp_sock) + answer[i] = c; + } + answer[i] = 0; +- fprintf(stderr, answer + 4); ++ fprintf(stderr, "%s", answer + 4); + } + while(answer[3] == '-'); + diff --git a/multimedia/video/smpeg/files/smpeg-0.4.5-fix-header.patch b/multimedia/video/smpeg/files/smpeg-0.4.5-fix-header.patch new file mode 100644 index 0000000000..8929cd7716 --- /dev/null +++ b/multimedia/video/smpeg/files/smpeg-0.4.5-fix-header.patch @@ -0,0 +1,16 @@ +--- smpeg-0.4.5/MPEGaudio.h.orig 2006-05-01 06:18:36.000000000 +0300 ++++ smpeg-0.4.5/MPEGaudio.h 2011-02-05 18:55:15.573765022 +0200 +@@ -153,6 +153,13 @@ + }; + + /* 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 { + + public: diff --git a/multimedia/video/smpeg/files/smpeg-0.4.5-libsupc++.patch b/multimedia/video/smpeg/files/smpeg-0.4.5-libsupc++.patch new file mode 100644 index 0000000000..562ab75096 --- /dev/null +++ b/multimedia/video/smpeg/files/smpeg-0.4.5-libsupc++.patch @@ -0,0 +1,16 @@ +--- smpeg-0.4.5/Makefile.am.libsupc++ 2006-05-01 04:56:06.000000000 +0300 ++++ smpeg-0.4.5/Makefile.am 2011-02-05 19:15:59.707558762 +0200 +@@ -64,6 +64,13 @@ + -release $(LT_RELEASE) \ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) + ++# (gb) hackish to force link with gcc so that we don't get a ++# dependence on libstdc++.so.*. Do add necessary supc++ hereunder. ++CXXLD = $(CC) ++ ++libsmpeg_la_LIBADD = \ ++ -lsupc++ -lgcc_s ++ + EXTRA_DIST = \ + CHANGES \ + COPYING \ diff --git a/multimedia/video/smpeg/files/smpeg-0.4.5-link.patch b/multimedia/video/smpeg/files/smpeg-0.4.5-link.patch new file mode 100644 index 0000000000..eef8c1f690 --- /dev/null +++ b/multimedia/video/smpeg/files/smpeg-0.4.5-link.patch @@ -0,0 +1,11 @@ +--- Makefile.am~ 2012-10-14 17:50:31.000000000 +0800 ++++ Makefile.am 2012-10-14 18:22:05.000000000 +0800 +@@ -119,7 +119,7 @@ + + # Sources for gtv + gtv_SOURCES = gtv.c gtv.h +-gtv_LDADD = @GTK_LIBS@ libsmpeg.la ++gtv_LDADD = @GTK_LIBS@ libsmpeg.la -lX11 + + # Sources for glmovie + glmovie_SOURCES = glmovie-tile.c glmovie.c glmovie.h diff --git a/multimedia/video/smpeg/pspec.xml b/multimedia/video/smpeg/pspec.xml new file mode 100644 index 0000000000..38b6dbf1c7 --- /dev/null +++ b/multimedia/video/smpeg/pspec.xml @@ -0,0 +1,116 @@ + + + + + smpeg + http://www.lokigames.com/development/smpeg.php3 + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + app:gui + SDL MPEG library + SMPEG is a SDL MPEG decoding library. + http://source.pisilinux.org/1.0/smpeg-0.4.5.tar.xz + + libsdl-devel + freeglut-devel + mesa-devel + mesa-glu-devel + + + smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff + smpeg-0.4.5-fix-header.patch + smpeg-0.4.5-libsupc++.patch + smpeg-0.4.5-link.patch + + + + + smpeg + + libsdl + mesa + mesa-glu + + + /usr/bin + /usr/lib + /usr/share/doc + /usr/share/man + + + + + smpeg-devel + Development files for smpeg + + smpeg + + + /usr/bin/smpeg-config + /usr/include + /usr/share/aclocal + + + + + smpeg-32bit + emul32 + 32-bit shared libraries for smpeg + emul32 + + freeglut-32bit + mesa-32bit + libsdl-32bit + mesa-glu-32bit + + + smpeg + libsdl-32bit + + + /usr/lib32 + + + + + + 2014-06-01 + 0.4.5 + Rebuild + Kamil Atlı + suvarice@gmail.com + + + 2014-03-09 + 0.4.5 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-07-31 + 0.4.5 + Version bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2013-07-29 + 0.4.4 + missing dep. + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2012-12-30 + 0.4.4 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + diff --git a/multimedia/video/smpeg/translations.xml b/multimedia/video/smpeg/translations.xml new file mode 100644 index 0000000000..f6884118a2 --- /dev/null +++ b/multimedia/video/smpeg/translations.xml @@ -0,0 +1,19 @@ + + + + smpeg + SDL MPEG kitaplığı + SMPEG, MPEG formatını kullanabilen SDL kitaplığıdır. + SDL MPEG + + + + smpeg-devel + smpeg için geliştirme dosyaları + + + + smpeg-32bit + smpeg için 32-bit paylaşımlı kitaplıklar + +