pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/MesaLib Fix DRI3 build on Linux
details: https://anonhg.NetBSD.org/pkgsrc/rev/863a5956304d
branches: trunk
changeset: 650964:863a5956304d
user: tnn <tnn%pkgsrc.org@localhost>
date: Wed Apr 29 14:36:36 2015 +0000
description:
Fix DRI3 build on Linux
diffstat:
graphics/MesaLib/options.mk | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 02cd1c4280cd -r 863a5956304d graphics/MesaLib/options.mk
--- a/graphics/MesaLib/options.mk Wed Apr 29 14:31:42 2015 +0000
+++ b/graphics/MesaLib/options.mk Wed Apr 29 14:36:36 2015 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index