xorg-server: fix crossbuild

This commit is contained in:
Enno Boland 2017-04-18 23:18:56 +02:00
parent e258ca7686
commit e3f2eef813

View file

@ -1,12 +1,12 @@
# Template build file for 'xorg-server'. # Template build file for 'xorg-server'.
pkgname=xorg-server pkgname=xorg-server
version=1.19.3 version=1.19.3
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-ipv6 --enable-record --enable-xorg configure_args="--enable-ipv6 --enable-record --enable-xorg
--enable-xnest --enable-xephyr --enable-composite --enable-xvfb --enable-xnest --enable-xephyr --enable-composite --enable-xvfb
--disable-static --disable-config-hal --disable-xfbdev --disable-xfake --disable-static --disable-config-hal --disable-xfbdev --disable-xfake
--enable-config-udev --enable-config-udev-kms --enable-xwayland --enable-config-udev --enable-config-udev-kms
--with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb --with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb
--with-fontrootdir=/usr/share/fonts/X11 --with-sha1=libcrypto --with-fontrootdir=/usr/share/fonts/X11 --with-sha1=libcrypto
--disable-dmx --disable-xfree86-utils --enable-kdrive-mouse --disable-dmx --disable-xfree86-utils --enable-kdrive-mouse
@ -39,17 +39,19 @@ makedepends="
depends="xkeyboard-config" depends="xkeyboard-config"
provides="xserver-abi-extension-10_1 xserver-abi-input-24_1 xserver-abi-video-23_1 xf86-video-modesetting-1_1" provides="xserver-abi-extension-10_1 xserver-abi-input-24_1 xserver-abi-video-23_1 xf86-video-modesetting-1_1"
replaces="xf86-video-modesetting>=0" replaces="xf86-video-modesetting>=0"
subpackages="xorg-server-devel xorg-server-xephyr xorg-server-xnest xorg-server-xvfb xorg-server"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) i686*|x86_64*)
# Enable glamor/dri/opengl by default on x86. # Enable glamor/dri/opengl/xwayland by default on x86.
configure_args+=" --enable-glamor --enable-dri2 --enable-dri3 --enable-glx" configure_args+=" --enable-glamor --enable-dri2 --enable-dri3 --enable-glx --enable-xwayland"
makedepends+=" MesaLib-devel" makedepends+=" MesaLib-devel"
replaces+=" glamor-egl>=0" replaces+=" glamor-egl>=0"
subpackages+=" xorg-server-xwayland"
;; ;;
*) *)
# Enable dri2 on !x86 via libdri. # Enable dri2 on !x86 via libdri.
configure_args+=" --disable-glx --disable-dri --enable-dri2 --enable-dri3" configure_args+=" --disable-glx --disable-dri --enable-dri2 --enable-dri3 --disable-xwayland"
makedepends+=" MesaLib-devel dri2proto libdri2-devel-git" makedepends+=" MesaLib-devel dri2proto libdri2-devel-git"
;; ;;
esac esac