smpeg ported from pisi 1.2

This commit is contained in:
groni
2015-10-19 15:35:16 +02:00
parent 37ea759d9f
commit 4e45bcd553
7 changed files with 247 additions and 0 deletions
+58
View File
@@ -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")
@@ -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] == '-');
@@ -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:
@@ -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 \
@@ -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
+116
View File
@@ -0,0 +1,116 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>smpeg</Name>
<Homepage>http://www.lokigames.com/development/smpeg.php3</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<IsA>app:gui</IsA>
<Summary>SDL MPEG library</Summary>
<Description>SMPEG is a SDL MPEG decoding library.</Description>
<Archive sha1sum="a9c3c65628092b694510d596591ca20f1863cf4d" type="tarxz">http://source.pisilinux.org/1.0/smpeg-0.4.5.tar.xz</Archive>
<BuildDependencies>
<Dependency>libsdl-devel</Dependency>
<Dependency>freeglut-devel</Dependency>
<Dependency>mesa-devel</Dependency>
<Dependency>mesa-glu-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="0">smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff</Patch>
<Patch level="1">smpeg-0.4.5-fix-header.patch</Patch>
<Patch level="1">smpeg-0.4.5-libsupc++.patch</Patch>
<Patch level="0">smpeg-0.4.5-link.patch</Patch>
</Patches>
</Source>
<Package>
<Name>smpeg</Name>
<RuntimeDependencies>
<Dependency>libsdl</Dependency>
<Dependency>mesa</Dependency>
<Dependency>mesa-glu</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>smpeg-devel</Name>
<Summary>Development files for smpeg</Summary>
<RuntimeDependencies>
<Dependency release="current">smpeg</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/smpeg-config</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/share/aclocal</Path>
</Files>
</Package>
<Package>
<Name>smpeg-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for smpeg</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>freeglut-32bit</Dependency>
<Dependency>mesa-32bit</Dependency>
<Dependency>libsdl-32bit</Dependency>
<Dependency>mesa-glu-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">smpeg</Dependency>
<Dependency>libsdl-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2014-06-01</Date>
<Version>0.4.5</Version>
<Comment>Rebuild</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="4">
<Date>2014-03-09</Date>
<Version>0.4.5</Version>
<Comment>Rebuild</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-07-31</Date>
<Version>0.4.5</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-29</Date>
<Version>0.4.4</Version>
<Comment>missing dep.</Comment>
<Name>Erdinç Gültekin</Name>
<Email>erdincgultekin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-12-30</Date>
<Version>0.4.4</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>smpeg</Name>
<Summary xml:lang="tr">SDL MPEG kitaplığı</Summary>
<Description xml:lang="tr">SMPEG, MPEG formatını kullanabilen SDL kitaplığıdır.</Description>
<Summary xml:lang="de">SDL MPEG</Summary>
</Source>
<Package>
<Name>smpeg-devel</Name>
<Summary xml:lang="tr">smpeg için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>smpeg-32bit</Name>
<Summary xml:lang="tr">smpeg için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>