weston: fix ppc build

This commit is contained in:
q66 2019-03-29 20:33:55 +01:00 committed by maxice8
parent fc35b3b628
commit 7fe7cb7f0f
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- meson_options.txt
+++ meson_options.txt
@@ -167,7 +167,7 @@ option(
option(
'simple-dmabuf-drm',
type: 'array',
- choices: [ 'auto', 'intel', 'freedreno', 'etnaviv' ],
+ choices: [ 'none', 'auto', 'intel', 'freedreno', 'etnaviv' ],
value: [ 'intel', 'freedreno', 'etnaviv' ],
description: 'List of DRM drivers to be supported by weston-simple-dmabuf-drm'
)

View File

@ -27,10 +27,14 @@ build_options="elogind vaapi"
desc_option_elogind="Use elogind for suidless startup"
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|ppc64*)
x86_64*|i686*)
build_options_default+=" vaapi"
configure_args+=" -Dsimple-dmabuf-drm=intel"
;;
ppc*)
build_options_default+=" vaapi"
configure_args+=" -Dsimple-dmabuf-drm=none"
;;
armv*|aarch*)
configure_args+=" -Dsimple-dmabuf-drm=freedreno"
;;