# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=gnash pkgver=0.8.10 pkgrel=0 pkgdesc="GNU flash player implementation" url="http://www.gnashdev.org/" arch="all" license="GPL" depends= depends_dev="agg-dev cairo-dev gstreamer-dev gst-plugins-base-dev mesa-dev gtk+-dev sdl-dev boost-dev giflib-dev speex-dev libxml2-dev jpeg-dev xulrunner-dev gtkglext-dev curl-dev libxmu-dev libx11-dev" makedepends="$depends_dev libtool" install="" subpackages="$pkgname-doc $pkgname-dev $pkgname-mozilla $pkgname-sdl $pkgname-fb $pkgname-lang" source="http://ftp.gnu.org/pub/gnu/gnash/$pkgver/gnash-$pkgver.tar.bz2 gnash-ffmpeg.patch" _builddir="$srcdir"/gnash-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-media=gst \ --without-gconf \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/gnash/*.la || return 1 } sdl() { pkgdesc="$pkgdesc (sdl player)" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/sdl-gnash "$subpkgdir"/usr/bin } fb() { pkgdesc="$pkgdesc (framebuffer player)" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/fb-gnash "$subpkgdir"/usr/bin } mozilla() { depends="gnash" pkgdesc="$pkgdesc (mozilla plugin)" mkdir -p "$subpkgdir"/usr/lib/mozilla/plugins mv "$_builddir"/plugin/npapi/.libs/libgnashplugin.so "$subpkgdir"/usr/lib/mozilla/plugins } md5sums="63e9f79c41d93d48c5a2fa94856548c4 gnash-0.8.10.tar.bz2 b324b3fee1e017d8fcc4d991146266f8 gnash-ffmpeg.patch"