pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/libretro-flycast



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Jul  9 15:39:45 UTC 2023

Modified Files:
        pkgsrc/emulators/libretro-flycast: options.mk

Log Message:
libretro-flycast: graphics library is a required option, pkgsrc wants
at least one option to be available


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/emulators/libretro-flycast/options.mk

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

Modified files:

Index: pkgsrc/emulators/libretro-flycast/options.mk
diff -u pkgsrc/emulators/libretro-flycast/options.mk:1.2 pkgsrc/emulators/libretro-flycast/options.mk:1.3
--- pkgsrc/emulators/libretro-flycast/options.mk:1.2    Sun Jul  2 17:32:30 2023
+++ pkgsrc/emulators/libretro-flycast/options.mk        Sun Jul  9 15:39:45 2023
@@ -1,14 +1,20 @@
-# $NetBSD: options.mk,v 1.2 2023/07/02 17:32:30 nia Exp $
+# $NetBSD: options.mk,v 1.3 2023/07/09 15:39:45 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.libretro-flycast
 
 .include "../../mk/bsd.fast.prefs.mk"
 
-.if !empty(MACHINE_ARCH:M*arm*)
-PKG_SUPPORTED_OPTIONS+=                rpi
+PKG_OPTIONS_REQUIRED_GROUPS+=  gl
+PKG_OPTIONS_GROUP.gl+=         opengl
+
+.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:M*arm*)
+PKG_OPTIONS_GROUP.gl+=         rpi
 .endif
+
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv6hf)
 PKG_SUGGESTED_OPTIONS+=                rpi
+.elif ${OPSYS} != "Darwin"
+PKG_SUGGESTED_OPTIONS+=                opengl
 .endif
 
 .include "../../mk/bsd.options.mk"
@@ -18,7 +24,8 @@ CMAKE_ARGS+=  -DUSE_VIDEOCORE=ON
 CMAKE_ARGS+=   -DUSE_GLES2=ON
 CMAKE_ARGS+=   -DUSE_OPENGL=OFF
 .  include "../../misc/raspberrypi-userland/buildlink3.mk"
-.else
+.elif !empty(PKG_OPTIONS:Mopengl)
+CMAKE_ARGS+=   -DUSE_OPENGL=ON
 .  if ${OPSYS} != "Darwin"
 .    include "../../graphics/MesaLib/buildlink3.mk"
 .  endif



Home | Main Index | Thread Index | Old Index