pkgname=directfb
pkgver=1.4.16
pkgrel=1
pkgdesc="A thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system on top of the Linux Framebuffer Device with Zaurus pointer orientation patch."
arch=('i686' 'x86_64' 'arm')
url="http://www.directfb.org"
license=('LGPL')
depends=('gcc-libs' 'libjpeg' 'libpng' 'freetype2' 'libdrm')
source=(http://sources.buildroot.net/DirectFB-${pkgver}.tar.gz
       Zaurus-pointer-orientation.patch)
sha1sums=('8d0ab8eeae7567b24b05ffae3267629ab6de4297'
          'ef8ad6e3563fe39570c6cf52597891e154103009')

build() {
  cd DirectFB-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --enable-static \
    --enable-zlib --disable-x11 --disable-sdl --disable-vnc --disable-osx \
    --disable-video4linux2 --disable-voodoo --with-gfxdrivers=none \
    --with-inputdrivers="keyboard,linuxinput,ps2mouse"
  make
} 

package() {
  cd DirectFB-${pkgver}
  patch -Np1 -i $srcdir/Zaurus-pointer-orientation.patch
  make DESTDIR="${pkgdir}" install
}

