# $Id: PKGBUILD 17544 2008-10-30 22:40:52Z pierre $

pkgname=gnash-common
pkgver=0.8.4
pkgrel=1
pkgdesc='A GNU Flash movie player'
arch=('i686' 'x86_64')
url='http://www.gnu.org/software/gnash/'
license=('GPL3')
depends=('curl' 'giflib' 'boost' 'libldap' 'gstreamer0.10-base' 'sdl' 'libgl'
         'libjpeg' 'libpng' 'mesa')
makedepends=('pkgconfig')
source=("http://ftp.gnu.org/gnu/gnash/${pkgver}/gnash-${pkgver}.tar.bz2")
options=('!libtool' '!emptydirs' '!docs')
provides=('gnash')
replaces=('gnash')
md5sums=('b47a7ed4b7c66b8c2ebacc2286ef0d4b')

build() {
	cd $srcdir/gnash-$pkgver

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-plugins \
		--disable-menus \
		--enable-gui=sdl \
		--enable-renderer=ogl \
		--enable-z \
		--enable-jpeg \
		--enable-libpng \
		--enable-gif \
		--enable-fontconfig \
		--enable-Xft \
		--enable-expat \
		--enable-gstreamer \
		--enable-media=gst || return 1

	make || return 1
	make DESTDIR=$pkgdir install || return 1
}