aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtheora
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-19 16:50:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-19 16:51:23 +0000
commit91b932140301f25a6cdb87f0d6227c2df335a908 (patch)
tree0cfc02dcdb59d278fb99dec2e059fed76d25d955 /main/libtheora
parent21d38433cdd892ec1b542df063fb34b3d5334343 (diff)
downloadaports-91b932140301f25a6cdb87f0d6227c2df335a908.tar.bz2
aports-91b932140301f25a6cdb87f0d6227c2df335a908.tar.xz
main/libtheora: build fix, create examples package
Diffstat (limited to 'main/libtheora')
-rw-r--r--main/libtheora/APKBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/main/libtheora/APKBUILD b/main/libtheora/APKBUILD
index 1f4f1117bc..f17b0e8ac6 100644
--- a/main/libtheora/APKBUILD
+++ b/main/libtheora/APKBUILD
@@ -1,13 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtheora
pkgver=1.1.1
-pkgrel=0
+pkgrel=1
pkgdesc="An open video codec developed by the Xiph.org"
url="http://www.xiph.org"
license="custom"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-examples"
depends=
-makedepends="libvorbis-dev libogg-dev autoconf automake libtool"
+makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool"
source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2
libtheora-flags.patch"
@@ -15,7 +15,7 @@ depends_dev="libogg-dev"
build() {
cd "$srcdir"/libtheora-$pkgver
patch -p1 -i ../libtheora-flags.patch || return 1
- aclocal -I m4 && autoconf && automake || return 1
+ aclocal -I m4 && autoconf && automake && libtoolize || return 1
./configure --prefix=/usr \
--enable-shared \
@@ -30,5 +30,14 @@ package() {
install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname"
install -m644 LICENSE COPYING "$pkgdir"/usr/share/licenses/$pkgname/
}
+
+examples() {
+ pkgdesc="Example applications for libtheora"
+ cd "$srcdir"/libtheora-$pkgver/examples
+ install -d "$subpkgdir"/usr/bin
+ install -m755 dump_psnr player_example dump_video encoder_example \
+ "$subpkgdir"/usr/bin/
+}
+
md5sums="292ab65cedd5021d6b7ddd117e07cd8e libtheora-1.1.1.tar.bz2
7cbab1ce1f52adb98e1c241515a27aca libtheora-flags.patch"