pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wine: Add option for vulkan



Module Name:	pkgsrc-wip
Committed By:	Frédéric Fauberteau <triaxx%NetBSD.org@localhost>
Pushed By:	frederic
Date:		Sun Jan 30 00:10:14 2022 +0100
Changeset:	7c1556a96023411da54795184a0b58d46a4c2031

Modified Files:
	wine/Makefile
	wine/options.mk

Log Message:
wine: Add option for vulkan

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7c1556a96023411da54795184a0b58d46a4c2031

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 wine/Makefile   | 1 -
 wine/options.mk | 8 +++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs:
diff --git a/wine/Makefile b/wine/Makefile
index 7452e12ab9..3c09abc13c 100644
--- a/wine/Makefile
+++ b/wine/Makefile
@@ -34,7 +34,6 @@ CONFIGURE_ARGS+=	--without-opencl
 CONFIGURE_ARGS+=	--without-udev
 CONFIGURE_ARGS+=	--without-v4l2
 CONFIGURE_ARGS+=	--without-vkd3d
-CONFIGURE_ARGS+=	--without-vulkan
 
 .include "../../mk/bsd.prefs.mk"
 
diff --git a/wine/options.mk b/wine/options.mk
index 0954c5c13d..684caefda8 100644
--- a/wine/options.mk
+++ b/wine/options.mk
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.21 2021/06/01 05:05:54 adam Exp $
 
 PKG_OPTIONS_VAR=		PKG_OPTIONS.wine
-PKG_SUPPORTED_OPTIONS=		alsa cups dbus gphoto2 pulseaudio sane x11
+PKG_SUPPORTED_OPTIONS=		alsa cups dbus gphoto2 pulseaudio sane vulkan x11
 PKG_SUGGESTED_OPTIONS=		cups dbus sane x11
 PKG_SUGGESTED_OPTIONS.Linux=	alsa
 
@@ -49,6 +49,12 @@ CONFIGURE_ARGS+=	--without-pulse
 CONFIGURE_ARGS+=	--without-sane
 .endif
 
+.if !empty(PKG_OPTIONS:Mvulkan)
+.  include "../../graphics/vulkan-headers/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--without-vulkan
+.endif
+
 PLIST_VARS+=	x11
 .if !empty(PKG_OPTIONS:Mx11)
 PLIST.x11=		yes


Home | Main Index | Thread Index | Old Index