diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-20 10:12:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-20 10:12:09 +0000 |
commit | 9bd12f322b294909af74233a5d7b9db88841a645 (patch) | |
tree | 2fb5dbee47bbc5006f8178c4a1cb49cdfcdb580d /x11 | |
parent | ed465d76f1655e6be5e9d2ecc73bb3bfc0ce4d23 (diff) | |
download | aports-9bd12f322b294909af74233a5d7b9db88841a645.tar.bz2 aports-9bd12f322b294909af74233a5d7b9db88841a645.tar.xz |
x11/libtheora: moved from main
the examples package needs x11 stuff
Diffstat (limited to 'x11')
-rw-r--r-- | x11/libtheora/APKBUILD | 43 | ||||
-rw-r--r-- | x11/libtheora/libtheora-flags.patch | 14 |
2 files changed, 57 insertions, 0 deletions
diff --git a/x11/libtheora/APKBUILD b/x11/libtheora/APKBUILD new file mode 100644 index 000000000..f17b0e8ac --- /dev/null +++ b/x11/libtheora/APKBUILD @@ -0,0 +1,43 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libtheora +pkgver=1.1.1 +pkgrel=1 +pkgdesc="An open video codec developed by the Xiph.org" +url="http://www.xiph.org" +license="custom" +subpackages="$pkgname-dev $pkgname-doc $pkgname-examples" +depends= +makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool" +source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2 + libtheora-flags.patch" + +depends_dev="libogg-dev" +build() { + cd "$srcdir"/libtheora-$pkgver + patch -p1 -i ../libtheora-flags.patch || return 1 + aclocal -I m4 && autoconf && automake && libtoolize || return 1 + + ./configure --prefix=/usr \ + --enable-shared \ + --disable-static || return 1 + + make || return 1 +} + +package() { + cd "$srcdir"/libtheora-$pkgver + make DESTDIR="$pkgdir" install || return 1 + 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" diff --git a/x11/libtheora/libtheora-flags.patch b/x11/libtheora/libtheora-flags.patch new file mode 100644 index 000000000..a47cc5771 --- /dev/null +++ b/x11/libtheora/libtheora-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" |