#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=xvidcore
pkgver=1.3.4
pkgrel=1gv
source=("http://downloads.xvid.org/downloads/xvidcore-$pkgver.tar.gz")
docs=("readme" "doc/install" "codingstyle" "copying" "changelog" "changelog-1.0" "authors" "licence" "news" "todo")
url="http://www.xvid.org/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"xvidcore (ISO MPEG-4 Compliant Video Codec Library)"
"XviD is an ISO MPEG-4 compliant video codec, so designed to"
"compress/decompress digital video. It's a open source project, which"
"is developed and maintained by a handful of skilled and interested"
"engineers from all over the world."
)


build() {
	cd $startdir/src/$pkgname/build/generic
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg

	# remove the static library (there is no --disable-static option)
	rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libxvidcore.a
}