diff options
author | tnn <tnn> | 2015-04-29 14:36:36 +0000 |
---|---|---|
committer | tnn <tnn> | 2015-04-29 14:36:36 +0000 |
commit | 45b13763c8300fae6436f62530e10d7b1387c73e (patch) | |
tree | 8856fd519c35509a22a3ebda000ad9a1b4354a01 /graphics | |
parent | bfe7f9f2cc8201aca0243ad45c38a7ec3e8bd31a (diff) | |
download | pkgsrc-45b13763c8300fae6436f62530e10d7b1387c73e.tar.gz |
Fix DRI3 build on Linux
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/options.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/MesaLib/options.mk b/graphics/MesaLib/options.mk index c6c3725daaf..d989c979deb 100644 --- a/graphics/MesaLib/options.mk +++ b/graphics/MesaLib/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.30 2015/04/28 21:06:32 tnn Exp $ +# $NetBSD: options.mk,v 1.31 2015/04/29 14:36:36 tnn Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib PKG_SUPPORTED_OPTIONS= llvm dri @@ -33,10 +33,23 @@ PLIST_VARS+= dri swrast_dri i915_dri nouveau_dri i965_dri radeon_dri r200_dri CONFIGURE_ARGS+= --disable-glx-tls PLIST.dri= yes + BUILDLINK_DEPMETHOD.libpciaccess= full .include "../../sysutils/libpciaccess/buildlink3.mk" .include "../../graphics/MesaLib/dri.mk" +# Linux supports dri3 +.if ${OPSYS} == "Linux" +.include "../../x11/dri3proto/buildlink3.mk" +.include "../../x11/presentproto/buildlink3.mk" +.include "../../x11/libxshmfence/buildlink3.mk" +CONFIGURE_ARGS+= --enable-dri3 +# DRI on Linux needs either sysfs or udev +CONFIGURE_ARGS+= --enable-sysfs +.else +CONFIGURE_ARGS+= --disable-dri3 +.endif + DRI_DRIVERS= # PLIST.swrast_dri= yes DRI_DRIVERS+= swrast |