diff --git a/multimedia/video/libtheora/actions.py b/multimedia/video/libtheora/actions.py
new file mode 100644
index 0000000000..9c8d8fc61b
--- /dev/null
+++ b/multimedia/video/libtheora/actions.py
@@ -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")
diff --git a/multimedia/video/libtheora/files/flags.patch b/multimedia/video/libtheora/files/flags.patch
new file mode 100644
index 0000000000..a47cc57716
--- /dev/null
+++ b/multimedia/video/libtheora/files/flags.patch
@@ -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"
diff --git a/multimedia/video/libtheora/files/libtheora-1.1.1-libpng16.patch b/multimedia/video/libtheora/files/libtheora-1.1.1-libpng16.patch
new file mode 100644
index 0000000000..d02277bdd2
--- /dev/null
+++ b/multimedia/video/libtheora/files/libtheora-1.1.1-libpng16.patch
@@ -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);
+ }
diff --git a/multimedia/video/libtheora/pspec.xml b/multimedia/video/libtheora/pspec.xml
new file mode 100644
index 0000000000..6e8987cabc
--- /dev/null
+++ b/multimedia/video/libtheora/pspec.xml
@@ -0,0 +1,94 @@
+
+
+
+
+ libtheora
+ http://www.theora.org/
+
+ PisiLinux Community
+ admins@pisilinux.org
+
+ BSD
+ library
+ The Theora Video Compression Codec
+ libtheora is Xiph.Org's first publicly released video codec, intended for use within the Ogg's project's Ogg multimedia streaming system.
+ http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
+
+ libogg-devel
+ libvorbis-devel
+
+
+ flags.patch
+ libtheora-1.1.1-libpng16.patch
+
+
+
+
+ libtheora
+
+ libogg
+ libvorbis
+
+
+ /usr/lib
+ /usr/share/doc
+
+
+
+
+ libtheora-32bit
+ emul32
+ 32-bit shared libraries for libtheora
+ emul32
+
+ libogg-32bit
+ glibc-32bit
+
+
+ libtheora
+ libogg-32bit
+ glibc-32bit
+
+
+ /usr/lib32
+
+
+
+
+ libtheora-devel
+ Development files for libtheora
+
+ libtheora
+ libogg-devel
+
+
+ /usr/include
+ /usr/lib/pkgconfig
+ /usr/lib32/pkgconfig
+
+
+
+
+
+ 2014-05-20
+ 1.1.1
+ Rebuild, add libpng16 patch.
+ Serdar Soytetir
+ kaptan@pisilinux.org
+
+
+ 2013-02-14
+ 1.1.1
+ Add emul32
+ Marcin Bojara
+ marcin@pisilinux.org
+
+
+ 2010-10-12
+ 1.1.1
+ First release
+ Pisi Linux Admins
+ admins@pisilinux.org
+
+
+
diff --git a/multimedia/video/libtheora/translations.xml b/multimedia/video/libtheora/translations.xml
new file mode 100644
index 0000000000..f96839ff6e
--- /dev/null
+++ b/multimedia/video/libtheora/translations.xml
@@ -0,0 +1,15 @@
+
+
+
+ libtheora
+ Theora video sıkıştırma kodlaması
+ libtheora, Ogg projesi kapsamında Ogg çokluortam akış sistemi ile beraber kullanılmak üzere tasarlanmış bir video kodlamasıdır.
+ Le codec (compresseur / décompresseur) de compression vidéo Theora.
+ Der Theora Video Kompressions-Codec
+
+
+
+ libtheora-devel
+ libtheora için geliştirme dosyaları
+
+