### this file is sourced not run
PKGVER=2.4.95
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5 updated to latest
TARBALL=libdrm-$PKGVER.tar.bz2
MD5SUM=41b9ed196a27f5dc7fb88412b704e9fd
SRC_URL=http://dri.freedesktop.org/libdrm/$TARBALL
BUNDLE=

SLACKREQ= # xorg libraries
SLACKDESC="libdrm: libdrm $PKGVER (Direct Rendering Manager for Xorg)  
libdrm:  
libdrm: libdrm provides core library routines for the X Window System to 
libdrm: directly interface with video hardware using the Linux kernel Direct 
libdrm: Rendering Manager (DRM).  
libdrm: 
libdrm: 
libdrm: 
libdrm: 
libdrm: 
libdrm:
"

### default pkg_download
### default pkg_prepare 
### default pkg_package
### build
pkg_build() {	
	CONFFLAGS="$CONFFLAGS --enable-udev"
	cd /tmp/libdrm*
#	sed -e "/pthread-stubs/d" -i configure.ac &&
#	autoreconf -fi &&
	pkg_build_autoconf && pkg_build_slackdesc &&
	cp tests/modetest/.libs/modetest /usr/bin/kmsset
}
