git: 577a8353dc68 - main - emulators/86Box: Improve Makefile

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Tue, 13 Aug 2024 14:38:40 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=577a8353dc6865db743bb1752458cc0aa6a555f3

commit 577a8353dc6865db743bb1752458cc0aa6a555f3
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-08-13 14:31:36 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-13 14:31:36 +0000

    emulators/86Box: Improve Makefile
    
     - Require c++11 for default cmake option CPPTHREADS.
     - Enable RELEASE build.
     - Disable runtime use Discord library - it isn't available for FreeBSD.
     - Align to make the Makefile look better.
    
    Approved by:    gatekeeper <tiago.gasiba@gmail.com> (maintainer, via Discord)
---
 emulators/86Box/Makefile | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/emulators/86Box/Makefile b/emulators/86Box/Makefile
index 896703f5b7a2..5d6db4b4580d 100644
--- a/emulators/86Box/Makefile
+++ b/emulators/86Box/Makefile
@@ -29,7 +29,7 @@ FLAVOR?=		${FLAVORS:[2]}
 qt5_PKGNAMESUFFIX=	-qt5
 qt6_PKGNAMESUFFIX=	-qt6
 
-USES=		cmake compiler gnome pkgconfig qmake sdl xorg
+USES=		cmake compiler:c++11-lang gnome pkgconfig qmake sdl xorg
 USE_GITHUB=	yes
 USE_GNOME=	glib20
 USE_SDL=	sdl2
@@ -48,14 +48,14 @@ CMAKE_ON=	USE_QT6
 CXXFLAGS+=	-I${LOCALBASE}/include/qt6/QtGui/`pkg-config --modversion Qt6Gui`/QtGui
 .endif
 
-CMAKE_OFF+=		${CMAKE_OFF_${ARCH}}
-CMAKE_OFF_powerpc64le=	DYNAREC
-CMAKE_ON+=		${CMAKE_ON_${ARCH}}
+CMAKE_ON+=		RELEASE	${CMAKE_ON_${ARCH}}
 CMAKE_ON_aarch64=	NEW_DYNAREC
+CMAKE_OFF=		DISCORD ${CMAKE_OFF_${ARCH}}
+CMAKE_OFF_powerpc64le=	DYNAREC
 
-SUB_FILES=	86Box-install-roms.sh
-SUB_LIST=	DISTVERSION=${DISTVERSION} \
-		DISTVERSIONPREFIX=${DISTVERSIONPREFIX}
+SUB_FILES=		86Box-install-roms.sh
+SUB_LIST=		DISTVERSION=${DISTVERSION} \
+			DISTVERSIONPREFIX=${DISTVERSIONPREFIX}
 
 OPTIONS_DEFINE=		NLS WAYLAND
 OPTIONS_DEFAULT=	WAYLAND