diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-02 10:07:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-02 10:07:09 +0000 |
commit | fae93727d154ad73cf8be0c62dec4cd7400c07fd (patch) | |
tree | 5c7f6ffafbfa798adc84150ed710b58551dc190c | |
parent | 02cf9589b27ddef1034c984d7ca89c32312a922c (diff) | |
download | alpine_aports-fae93727d154ad73cf8be0c62dec4cd7400c07fd.tar.bz2 alpine_aports-fae93727d154ad73cf8be0c62dec4cd7400c07fd.tar.xz alpine_aports-fae93727d154ad73cf8be0c62dec4cd7400c07fd.zip |
main/libtheora: link libtheoraenc with libtheoradec
it uses a symbol there.
-rw-r--r-- | main/libtheora/APKBUILD | 31 | ||||
-rw-r--r-- | main/libtheora/enc.patch | 11 |
2 files changed, 34 insertions, 8 deletions
diff --git a/main/libtheora/APKBUILD b/main/libtheora/APKBUILD index 700a7c79f8..f306c0581b 100644 --- a/main/libtheora/APKBUILD +++ b/main/libtheora/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=libtheora | 2 | pkgname=libtheora |
3 | pkgver=1.1.1 | 3 | pkgver=1.1.1 |
4 | pkgrel=4 | 4 | pkgrel=5 |
5 | pkgdesc="An open video codec developed by the Xiph.org" | 5 | pkgdesc="An open video codec developed by the Xiph.org" |
6 | url="http://www.xiph.org" | 6 | url="http://www.xiph.org" |
7 | license="custom" | 7 | license="custom" |
@@ -9,23 +9,37 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-examples" | |||
9 | depends= | 9 | depends= |
10 | makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool" | 10 | makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool" |
11 | source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2 | 11 | source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2 |
12 | libtheora-flags.patch" | 12 | libtheora-flags.patch |
13 | enc.patch | ||
14 | " | ||
13 | 15 | ||
14 | depends_dev="libogg-dev" | 16 | depends_dev="libogg-dev" |
15 | build() { | 17 | _builddir="$srcdir"/libtheora-$pkgver |
16 | cd "$srcdir"/libtheora-$pkgver | 18 | prepare() { |
17 | patch -p1 -i ../libtheora-flags.patch || return 1 | 19 | cd "$_builddir" |
20 | for i in $source; do | ||
21 | case $i in | ||
22 | *.patch) | ||
23 | msg "Applying $i" | ||
24 | patch -p1 -i "$srcdir"/$i || return 1 | ||
25 | esac | ||
26 | done | ||
18 | aclocal -I m4 && autoconf && automake && libtoolize || return 1 | 27 | aclocal -I m4 && autoconf && automake && libtoolize || return 1 |
28 | } | ||
19 | 29 | ||
30 | build() { | ||
31 | cd "$_builddir" | ||
20 | ./configure --prefix=/usr \ | 32 | ./configure --prefix=/usr \ |
21 | --enable-shared \ | 33 | --enable-shared \ |
22 | --disable-static || return 1 | 34 | --disable-static || return 1 |
23 | 35 | ||
36 | cd lib && make || return 1 | ||
37 | cd .. | ||
24 | make || return 1 | 38 | make || return 1 |
25 | } | 39 | } |
26 | 40 | ||
27 | package() { | 41 | package() { |
28 | cd "$srcdir"/libtheora-$pkgver | 42 | cd "$_builddir" |
29 | make DESTDIR="$pkgdir" install || return 1 | 43 | make DESTDIR="$pkgdir" install || return 1 |
30 | install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname" | 44 | install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname" |
31 | install -m644 LICENSE COPYING "$pkgdir"/usr/share/licenses/$pkgname/ | 45 | install -m644 LICENSE COPYING "$pkgdir"/usr/share/licenses/$pkgname/ |
@@ -33,11 +47,12 @@ package() { | |||
33 | 47 | ||
34 | examples() { | 48 | examples() { |
35 | pkgdesc="Example applications for libtheora" | 49 | pkgdesc="Example applications for libtheora" |
36 | cd "$srcdir"/libtheora-$pkgver/examples | 50 | cd "$_builddir"/examples |
37 | install -d "$subpkgdir"/usr/bin | 51 | install -d "$subpkgdir"/usr/bin |
38 | install -m755 dump_psnr player_example dump_video encoder_example \ | 52 | install -m755 dump_psnr player_example dump_video encoder_example \ |
39 | "$subpkgdir"/usr/bin/ | 53 | "$subpkgdir"/usr/bin/ |
40 | } | 54 | } |
41 | 55 | ||
42 | md5sums="292ab65cedd5021d6b7ddd117e07cd8e libtheora-1.1.1.tar.bz2 | 56 | md5sums="292ab65cedd5021d6b7ddd117e07cd8e libtheora-1.1.1.tar.bz2 |
43 | 7cbab1ce1f52adb98e1c241515a27aca libtheora-flags.patch" | 57 | 7cbab1ce1f52adb98e1c241515a27aca libtheora-flags.patch |
58 | 5024b6c41351433bf0e8a354969f8efd enc.patch" | ||
diff --git a/main/libtheora/enc.patch b/main/libtheora/enc.patch new file mode 100644 index 0000000000..ea604d28ed --- /dev/null +++ b/main/libtheora/enc.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- ./lib/Makefile.am.orig | ||
2 | +++ ./lib/Makefile.am | ||
3 | @@ -152,7 +154,7 @@ | ||
4 | Version_script-enc theoraenc.exp | ||
5 | libtheoraenc_la_LDFLAGS = \ | ||
6 | -version-info @THENC_LIB_CURRENT@:@THENC_LIB_REVISION@:@THENC_LIB_AGE@ \ | ||
7 | - @THEORAENC_LDFLAGS@ $(OGG_LIBS) | ||
8 | + -ltheoradec @THEORAENC_LDFLAGS@ $(OGG_LIBS) | ||
9 | |||
10 | libtheora_la_SOURCES = \ | ||
11 | $(decoder_sources) \ | ||