# Maintainer: Luis Henrique <lmello.009@gmail.com>

# Mandatory
pkgname=frei0r-plugins
pkgver=1.2.1
pkgrel=1lm
source=("http://www.piksel.no/frei0r/releases/frei0r-plugins-1.2.1.tar.gz")
# Optional
url="http://www.piksel.org/frei0r"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"frei0r-plugins (plugin API for video sources and filters)"
"Frei0r is a minimalistic plugin API for video sources and filters. The"
"behaviour of the effects can be controlled from the host by simple"
"parameters. The intent is to solve the recurring reimplementation or"
"adaptation issue of standard effects."
)

build() {
        cd $startdir/src/$pkgname-$pkgver
        ./configure \
          --prefix=/usr \
          --libdir=/usr/lib${LIBDIRSUFFIX} \
          --sysconfdir=/etc \
          --localstatedir=/var \
          --mandir=/usr/man \
          --docdir=/usr/doc/$pkgname-$pkgver \
          --enable-static=no \
          --enable-shared=yes \
          --build=$arch-slackware-linux
        make || return 1
        make DESTDIR=$startdir/pkg install
        # Install documentation in the proper place
        mkdir -p $startdir/pkg/usr/doc
        mv $startdir/pkg/usr/share/doc/frei0r-plugins $startdir/pkg/usr/doc/$pkgname-$pkgver
        rmdir $startdir/pkg/usr/share/doc
        rmdir $startdir/pkg/usr/share
}