libGL: create symlinks for vaapi detection.

This commit is contained in:
Juan RP 2014-12-15 14:51:26 +01:00
parent 4e9564701f
commit 5e9e665fb6
1 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template build file for 'libGL'. # Template build file for 'libGL'.
pkgname=libGL pkgname=libGL
version=10.4.0 version=10.4.0
revision=2 revision=3
wrksrc="Mesa-${version}" wrksrc="Mesa-${version}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-glx-tls --enable-shared-glapi --enable-gbm configure_args="--enable-glx-tls --enable-shared-glapi --enable-gbm
@ -19,7 +19,7 @@ hostmakedepends="
automake libtool flex pkg-config llvm libxml2-python wayland-devel" automake libtool flex pkg-config llvm libxml2-python wayland-devel"
makedepends=" makedepends="
glproto dri2proto>=2.1 dri3proto presentproto libXext-devel libXxf86vm-devel glproto dri2proto>=2.1 dri3proto presentproto libXext-devel libXxf86vm-devel
libudev-devel libdrm-devel expat-devel talloc-devel libvdpau-devel libudev-devel libdrm-devel expat-devel talloc-devel libvdpau-devel libva-devel
libXdamage-devel libXvMC-devel>=1.0.6 libxshmfence-devel wayland-devel libXdamage-devel libXvMC-devel>=1.0.6 libxshmfence-devel wayland-devel
elfutils-devel ncurses-devel zlib-devel libffi-devel" elfutils-devel ncurses-devel zlib-devel libffi-devel"
replaces="MesaLib>=0 mesa-swraster-dri>=0" replaces="MesaLib>=0 mesa-swraster-dri>=0"
@ -36,7 +36,6 @@ i686*|x86_64*)
configure_args+=" --enable-xa --enable-dri3 --enable-nine" configure_args+=" --enable-xa --enable-dri3 --enable-nine"
configure_args+=" --enable-opencl --enable-opencl-icd --enable-r600-llvm-compiler" configure_args+=" --enable-opencl --enable-opencl-icd --enable-r600-llvm-compiler"
hostmakedepends+=" clang libclc-git" hostmakedepends+=" clang libclc-git"
makedepends+=" libva-devel"
subpackages+=" libxatracker mesa-ati-dri mesa-intel-dri mesa-nouveau-dri" subpackages+=" libxatracker mesa-ati-dri mesa-intel-dri mesa-nouveau-dri"
subpackages+=" mesa-vmwgfx-dri mesa-opencl" subpackages+=" mesa-vmwgfx-dri mesa-opencl"
;; ;;
@ -72,6 +71,16 @@ pre_configure() {
post_install() { post_install() {
vmkdir usr/lib/xorg/modules/extensions vmkdir usr/lib/xorg/modules/extensions
ln -s libglx-xorg.so ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so ln -s libglx-xorg.so ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
for f in r200 r300 r600 radeonsi svga nouveau; do
ln -s gallium_drv_video.so ${DESTDIR}/usr/lib/dri/${f}_drv_video.so
done
;;
armv6l*)
ln -s gallium_drv_video.so ${DESTDIR}/usr/lib/dri/vc4_drv_video.so
;;
esac
} }
libglapi_package() { libglapi_package() {