Thu May 28 14:44:19 2020 UTC ()
qemu: support opengl

bump pkgrevision


(nia)
diff -r1.244 -r1.245 pkgsrc/emulators/qemu/Makefile
diff -r1.9 -r1.10 pkgsrc/emulators/qemu/options.mk

cvs diff -r1.244 -r1.245 pkgsrc/emulators/qemu/Makefile (expand / switch to context diff)
--- pkgsrc/emulators/qemu/Makefile 2020/05/26 07:17:53 1.244
+++ pkgsrc/emulators/qemu/Makefile 2020/05/28 14:44:19 1.245
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.244 2020/05/26 07:17:53 skrll Exp $
+# $NetBSD: Makefile,v 1.245 2020/05/28 14:44:19 nia Exp $
 
 DISTNAME=	qemu-5.0.0
-PKGREVISION=	4
+PKGREVISION=	5
 CATEGORIES=	emulators
 MASTER_SITES=	https://download.qemu.org/
 EXTRACT_SUFX=	.tar.xz
@@ -43,7 +43,6 @@
 CONFIGURE_ARGS+=	--enable-curses
 CONFIGURE_ARGS+=	--enable-docs
 CONFIGURE_ARGS+=	--enable-jemalloc
-CONFIGURE_ARGS+=	--disable-opengl
 CONFIGURE_ENV+=		mansuffix=/${PKGMANDIR}
 
 .if defined(PKGSRC_USE_SSP)

cvs diff -r1.9 -r1.10 pkgsrc/emulators/qemu/options.mk (expand / switch to context diff)
--- pkgsrc/emulators/qemu/options.mk 2020/03/13 13:57:04 1.9
+++ pkgsrc/emulators/qemu/options.mk 2020/05/28 14:44:19 1.10
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2020/03/13 13:57:04 tnn Exp $
+# $NetBSD: options.mk,v 1.10 2020/05/28 14:44:19 nia Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.qemu
 PKG_SUPPORTED_OPTIONS=	gtk3 iscsi sdl spice
@@ -11,7 +11,8 @@
 .endif
 
 .if ${OPSYS} != "Darwin"
-PKG_SUGGESTED_OPTIONS+=	sdl
+PKG_SUPPORTED_OPTIONS+=	opengl
+PKG_SUGGESTED_OPTIONS+=	opengl sdl
 .endif
 
 .include "../../mk/bsd.options.mk"
@@ -24,6 +25,14 @@
 .include "../../x11/gtk3/buildlink3.mk"
 .else
 CONFIGURE_ARGS+=	--disable-gtk
+.endif
+
+.if !empty(PKG_OPTIONS:Mopengl)
+CONFIGURE_ARGS+=	--enable-opengl
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/libepoxy/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-opengl
 .endif
 
 .if !empty(PKG_OPTIONS:Msdl)