# $Id$
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor (Parabola): Jorge Lopez <jorginho@adinet.com.uy>

pkgname=libquicktime-libre
_pkgname=libquicktime
pkgver=1.2.4
pkgrel=1
pkgdesc="A library for reading and writing quicktime files (no unfree faac support)."
arch=('i686' 'x86_64')
license=('GPL')
url="http://libquicktime.sourceforge.net/"
depends=('gtk2'  'ffmpeg' 'libxv' 'libgl' 'libxaw' 'x264' 'faad2')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('1c53359c33b31347b4d7b00d3611463fe5e942cae3ec0fefe0d2fd413fd47368')
provides=("$_pkgname=$pkgver")
conflicts=($_pkgname)
replaces=($_pkgname)

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  ./configure --prefix=/usr \
  	--enable-gpl \
	--with-ffmpeg \
	--with-x264 \
	--without-doxygen
	make
}

package() {
  cd $srcdir/$_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}