#Maintainer: Thorsten Muehlfelder <thenktor@gmx.de>

pkgname=libv4l
pkgver=0.5.99
pkgrel=1tm
arch=i686
source=("http://people.atrpms.net/~hdegoede/libv4l-$pkgver.tar.gz")
sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/
url="http://people.atrpms.net/~hdegoede/"
docs=('AUTHORS' 'COPYING' 'ChangeLog' 'NEWS' 'README')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - Video 4 Linux userspace interface"
"libv4l is a collection of libraries which adds a thin abstraction"
"layer on top of video4linux2 devices. The purpose of this (thin) layer"
"is to make it easy for application writers to support a wide variety"
"of devices without having to write seperate code for different devices"
"in the same class."
)

build() {
	cd $startdir/src/${pkgname}-${pkgver}
	# adjust cflags
	sed -i 's/CFLAGS\ :=\ -g\ -O1/CFLAGS\ :=\ -g\ -O2\ -march=i686\ -mtune=i686/' */Makefile || return 1
	make -j3 PREFIX=/usr || return 1
	make install PREFIX=/usr DESTDIR=$startdir/pkg
}
