libmpeg2:moved into main for pisi 2.0

This commit is contained in:
2015-07-23 16:02:32 +03:00
parent 1a2f14f3e6
commit 929b7cfeb1
4 changed files with 136 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/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 libtools
from pisi.actionsapi import get
def setup():
autotools.autoreconf("-fi")
autotools.configure("--enable-shared \
--disable-dependency-tracking \
--disable-static \
--disable-sdl \
--without-x")
def build():
autotools.make('OPT_CFLAGS="%s" \
MPEG2DEC_CFLAGS="%s" \
LIBMPEG2_CFLAGS=""' % (get.CFLAGS(), get.CFLAGS()))
def install():
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "TODO")
@@ -0,0 +1,26 @@
--- test/globals.orig 2006-04-29 19:19:59.000000000 +0200
+++ test/globals 2006-04-29 19:24:35.000000000 +0200
@@ -14,8 +14,9 @@
error=0
-bad_globals=`nm -g --defined-only $builddir/../libmpeg2/*.o |\
- awk '{if ($3) print $3}' | grep -v '^_\?mpeg2_'`
+bad_globals=`readelf -s $builddir/../libmpeg2/*.o |\
+ awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\
+ grep -v '^_\?mpeg2_'`
if test x"$bad_globals" != x""; then
echo BAD GLOBAL SYMBOLS:
@@ -23,8 +24,9 @@
error=1
fi
-bad_globals=`nm -g --defined-only $builddir/../libmpeg2/convert/*.o |\
- awk '{if ($3) print $3}' | grep -v '^_\?mpeg2convert_'`
+bad_globals=`readelf -s $builddir/../libmpeg2/convert/*.o |\
+ awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\
+ grep -v '^_\?mpeg2convert_'`
if test x"$bad_globals" != x""; then
echo BAD GLOBAL SYMBOLS:
+66
View File
@@ -0,0 +1,66 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libmpeg2</Name>
<Homepage>http://libmpeg2.sourceforge.net/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video streams</Summary>
<Description>libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video streams. libmpeg2 is able to decode all mpeg streams that conform to certain restrictions: "constrained parameters" for mpeg-1, and "main profile" for mpeg-2.</Description>
<Archive sha1sum="0f9163d8fd52db5f577ebe45636f674252641fd7" type="targz">http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz</Archive>
<Patches>
<Patch>libmpeg2-0.4.1-use-readelf-for-test.patch</Patch>
</Patches>
</Source>
<Package>
<Name>libmpeg2</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>libmpeg2-devel</Name>
<Summary>Development files for libmpeg2</Summary>
<RuntimeDependencies>
<Dependency release="current">libmpeg2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-05-25</Date>
<Version>0.5.1</Version>
<Comment>Rebuild</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="2">
<Date>2014-01-31</Date>
<Version>0.5.1</Version>
<Comment>Rebuild</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-12</Date>
<Version>0.5.1</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>libmpeg2</Name>
<Summary xml:lang="tr">mpeg-2 ve mpeg-1 video görüntülerini çözmek için ücretsiz bir kütüphane</Summary>
<Description xml:lang="tr">libmpeg2, mpeg-1 ve mpeg-2 video akışlarının çözülerek okunması için ücretsiz bir kütüphanedir. Libmpeg-2, bir takım kısıtlayıcı kurallara (mpeg-1 için &quot;kısıtlanmış parametreler&quot; ve mpeg-2 için &quot;ana profil&quot;) uyan bütün mpeg yayınlarını çözebilir.</Description>
<Description xml:lang="fr">libmpeg2 est une librairie libre pour décoder les flux vidéos mpeg-2 et mpeg-1. libmpeg2 est capable de décoder tous les flux vidéos se conformant à certaines restrictions : &quot;paramètres contraints (constrained parameters)&quot; pour mpeg-1 et &quot;profil principal (main profile)&quot; pour mpeg-2.</Description>
<Description xml:lang="es">libmpeg2 es una librería libre para decodificar flujos de video mpeg-2 y mpeg-1. libmpeg2 puede decodificar todo tipo de flujos mpeg que cumplen ciertos restricciones: &quot;constrained parameters&quot; para mpeg-1, y &quot;main profile&quot; para mpeg-2.</Description>
</Source>
<Package>
<Name>libmpeg2-devel</Name>
<Summary xml:lang="tr">libmpeg2 için geliştirme dosyaları</Summary>
</Package>
</PISI>