Files
Arch-R/packages/graphics/libdrm/build
Stephan Raue ef942e7da5 libdrm:
- remove references to nouveau driver
- ensure that we build with intel support if we build with intel graphic driver
2010-01-06 01:05:05 +01:00

36 lines
731 B
Bash
Executable File

#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build libpthread-stubs
$SCRIPTS/build udev
get_graphicdrivers
for drv in $DRM_DRIVERS; do
[ $drv = intel ] && \
DRM_CONFIG="$DRM_CONFIG --enable-intel"
[ $drv = radeon ] && \
DRM_CONFIG="$DRM_CONFIG --enable-radeon-experimental-api"
done
export LIBUDEV_CFLAGS="-I`ls -d $ROOT/$BUILD/udev*`"
export LIBUDEV_LIBS="-I`ls -d $ROOT/$BUILD/udev*`"
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--enable-shared \
--enable-udev \
--enable-largefile \
$DRM_CONFIG \
make
$MAKEINSTALL