diff options
author | tnn <tnn> | 2015-04-29 14:36:36 +0000 |
---|---|---|
committer | tnn <tnn> | 2015-04-29 14:36:36 +0000 |
commit | 362671d0b52331dc3460b8ee06bf4aedb2ac6ece (patch) | |
tree | 8856fd519c35509a22a3ebda000ad9a1b4354a01 /graphics/MesaLib/options.mk | |
parent | b7977476116ba1b7d7e2b942ff6c39b6a58a62f2 (diff) | |
download | pkgsrc-362671d0b52331dc3460b8ee06bf4aedb2ac6ece.tar.gz |
Fix DRI3 build on Linux
Diffstat (limited to 'graphics/MesaLib/options.mk')
-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 |