summaryrefslogtreecommitdiff
path: root/repo/libtheora/libtheora.xibuild
blob: a50e044b92ba8ef4a6cbb6b356fecc4a419e5630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh

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="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
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$PKG_DEST" install
}