summaryrefslogtreecommitdiff
path: root/repo/libtheora
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
commitf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (patch)
tree31fe2a493efcc3ec8721b8ae9943a0f938cd3f4d /repo/libtheora
parente4a392b4e1e547c9569abdd1f08ec51da3dc4562 (diff)
added qemu
Diffstat (limited to 'repo/libtheora')
-rw-r--r--repo/libtheora/libtheora.xibuild44
1 files changed, 33 insertions, 11 deletions
diff --git a/repo/libtheora/libtheora.xibuild b/repo/libtheora/libtheora.xibuild
index 64bfcc0..a50e044 100644
--- a/repo/libtheora/libtheora.xibuild
+++ b/repo/libtheora/libtheora.xibuild
@@ -1,22 +1,44 @@
#!/bin/sh
-MAKEDEPS="make"
-DEPS="libogg libvorbis"
-
+NAME="libtheora"
DESC="An open video codec developed by the Xiph.org"
+MAKEDEPS=" libvorbis libogg autoconf automake libtool linux-headers"
+
PKG_VER=1.1.1
-SOURCE=https://downloads.xiph.org/releases/theora/libtheora-$PKG_VER.tar.xz
-
-prepare () {
+SOURCE="http://downloads.xiph.org/releases/theora/libtheora-$PKG_VER.tar.bz2"
+
+ADDITIONAL="
+automake.patch
+enc.patch
+fix-mmx.patch
+fix-timeb.patch
+libtheora-flags.patch
+"
+
+prepare() {
+ apply_patches
sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c
+
+ libtoolize --force
+ aclocal -I m4
+ autoconf --force
+ automake --force --add-missing
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-static
+ make -j 1 -C lib
+ make
}
-build () {
- ./configure --prefix=/usr --disable-static &&
- make
+check() {
+ make check
}
-package () {
- make DESTDIR=$PKG_DEST install
+package() {
+ make -j1 DESTDIR="$PKG_DEST" install
}