libtheora:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-21 16:14:03 +03:00
parent 3bcbc8de63
commit fccb393db7
5 changed files with 170 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/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():
if get.buildTYPE() == "emul32":
pisitools.dosed("configure.ac", "(.*OC_X86_64_ASM.*)", r"#\1")
shelltools.system("./autogen.sh")
autotools.configure("--enable-shared \
--enable-encode \
--disable-dependency-tracking \
--disable-spec \
--disable-sdltest \
--disable-examples \
--disable-static")
def build():
autotools.make()
def install():
autotools.rawInstall('DESTDIR="%s" docdir=/%s/libtheora' % (get.installDIR(), get.docDIR()))
pisitools.dodoc("README", "AUTHORS", "CHANGES")
@@ -0,0 +1,14 @@
diff -ur libtheora-1.0beta2.orig/configure.ac libtheora-1.0beta2/configure.ac
--- libtheora-1.0beta2.orig/configure.ac 2007-10-13 00:01:38.000000000 +0300
+++ libtheora-1.0beta2/configure.ac 2007-11-25 22:44:49.000000000 +0200
@@ -102,8 +102,8 @@
case $host in
*)
DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
- CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
- PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
+ CFLAGS="-Wall -Wno-parentheses"
+ PROFILE="-Wall -Wno-parentheses -pg -g -fno-inline-functions -DDEBUG";;
esac
fi
CFLAGS="$CFLAGS $cflags_save"
@@ -0,0 +1,17 @@
http://bugs.gentoo.org/465450
http://trac.xiph.org/ticket/1947
--- examples/png2theora.c
+++ examples/png2theora.c
@@ -462,9 +462,9 @@
png_set_strip_alpha(png_ptr);
row_data = (png_bytep)png_malloc(png_ptr,
- 3*height*width*png_sizeof(*row_data));
+ 3*height*width*sizeof(*row_data));
row_pointers = (png_bytep *)png_malloc(png_ptr,
- height*png_sizeof(*row_pointers));
+ height*sizeof(*row_pointers));
for(y = 0; y < height; y++) {
row_pointers[y] = row_data + y*(3*width);
}
+94
View File
@@ -0,0 +1,94 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>libtheora</Name>
<Homepage>http://www.theora.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Summary>The Theora Video Compression Codec</Summary>
<Description>libtheora is Xiph.Org's first publicly released video codec, intended for use within the Ogg's project's Ogg multimedia streaming system.</Description>
<Archive sha1sum="8dcaa8e61cd86eb1244467c0b64b9ddac04ae262" type="tarbz2">http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2</Archive>
<BuildDependencies>
<Dependency>libogg-devel</Dependency>
<Dependency>libvorbis-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">flags.patch</Patch>
<Patch level="0">libtheora-1.1.1-libpng16.patch</Patch>
</Patches>
</Source>
<Package>
<Name>libtheora</Name>
<RuntimeDependencies>
<Dependency>libogg</Dependency>
<Dependency>libvorbis</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>libtheora-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libtheora</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>libogg-32bit</Dependency>
<Dependency>glibc-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">libtheora</Dependency>
<Dependency>libogg-32bit</Dependency>
<Dependency>glibc-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<Package>
<Name>libtheora-devel</Name>
<Summary>Development files for libtheora</Summary>
<RuntimeDependencies>
<Dependency release="current">libtheora</Dependency>
<Dependency>libogg-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-05-20</Date>
<Version>1.1.1</Version>
<Comment>Rebuild, add libpng16 patch.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-02-14</Date>
<Version>1.1.1</Version>
<Comment>Add emul32</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-12</Date>
<Version>1.1.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>libtheora</Name>
<Summary xml:lang="tr">Theora video sıkıştırma kodlaması</Summary>
<Description xml:lang="tr">libtheora, Ogg projesi kapsamında Ogg çokluortam akış sistemi ile beraber kullanılmak üzere tasarlanmış bir video kodlamasıdır.</Description>
<Summary xml:lang="fr">Le codec (compresseur / décompresseur) de compression vidéo Theora.</Summary>
<Summary xml:lang="de">Der Theora Video Kompressions-Codec</Summary>
</Source>
<Package>
<Name>libtheora-devel</Name>
<Summary xml:lang="tr">libtheora için geliştirme dosyaları</Summary>
</Package>
</PISI>