snes9x: Attempt to accomodate messy c++ versions situationdiff -r1.6 -r1.7 pkgsrc/emulators/libretro-snes9x/Makefile
(nia)
@@ -1,16 +1,18 @@ | @@ -1,16 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2020/05/30 15:20:12 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2024/02/21 11:31:21 nia Exp $ | |
2 | 2 | |||
3 | .include "../../emulators/snes9x/Makefile.common" | 3 | .include "../../emulators/snes9x/Makefile.common" | |
4 | 4 | |||
5 | PKGNAME= libretro-snes9x-${SNES9X_VERSION} | 5 | PKGNAME= libretro-snes9x-${SNES9X_VERSION} | |
6 | 6 | |||
7 | MAINTAINER= nia@NetBSD.org | 7 | MAINTAINER= nia@NetBSD.org | |
8 | HOMEPAGE= https://docs.libretro.com/library/snes9x/ | 8 | HOMEPAGE= https://docs.libretro.com/library/snes9x/ | |
9 | COMMENT= Libretro core based on the snes9x Super Nintendo emulator | 9 | COMMENT= Libretro core based on the snes9x Super Nintendo emulator | |
10 | 10 | |||
11 | BUILD_DIRS= libretro | 11 | BUILD_DIRS= libretro | |
12 | 12 | |||
13 | LIBRETRO_CORE= snes9x | 13 | LIBRETRO_CORE= snes9x | |
14 | 14 | |||
15 | FORCE_CXX_STD= c++11 | |||
16 | ||||
15 | .include "../../emulators/retroarch/core.mk" | 17 | .include "../../emulators/retroarch/core.mk" | |
16 | .include "../../mk/bsd.pkg.mk" | 18 | .include "../../mk/bsd.pkg.mk" |
@@ -1,20 +1,22 @@ | @@ -1,20 +1,22 @@ | |||
1 | # $NetBSD: Makefile,v 1.60 2022/05/03 17:09:19 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.61 2024/02/21 11:31:21 nia Exp $ | |
2 | 2 | |||
3 | .include "../../emulators/snes9x/Makefile.common" | 3 | .include "../../emulators/snes9x/Makefile.common" | |
4 | 4 | |||
5 | MAINTAINER= nia@NetBSD.org | 5 | MAINTAINER= nia@NetBSD.org | |
6 | COMMENT= Super Nintendo Entertainment System (SNES) emulator (CLI version) | 6 | COMMENT= Super Nintendo Entertainment System (SNES) emulator (CLI version) | |
7 | 7 | |||
8 | FORCE_CXX_STD= c++11 | |||
9 | ||||
8 | CONFIGURE_DIRS= unix | 10 | CONFIGURE_DIRS= unix | |
9 | BUILD_DIRS= unix | 11 | BUILD_DIRS= unix | |
10 | 12 | |||
11 | GNU_CONFIGURE= yes | 13 | GNU_CONFIGURE= yes | |
12 | 14 | |||
13 | USE_TOOLS+= gmake pkg-config | 15 | USE_TOOLS+= gmake pkg-config | |
14 | 16 | |||
15 | CONFIGURE_ARGS+= --enable-netplay | 17 | CONFIGURE_ARGS+= --enable-netplay | |
16 | 18 | |||
17 | CONFIGURE_ARGS+= --with-system-zip | 19 | CONFIGURE_ARGS+= --with-system-zip | |
18 | 20 | |||
19 | INSTALLATION_DIRS+= bin | 21 | INSTALLATION_DIRS+= bin | |
20 | INSTALLATION_DIRS+= share/doc/snes9x | 22 | INSTALLATION_DIRS+= share/doc/snes9x |
@@ -1,24 +1,26 @@ | @@ -1,24 +1,26 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.7 2023/11/20 10:19:00 nia Exp $ | 1 | # $NetBSD: Makefile.common,v 1.8 2024/02/21 11:31:21 nia Exp $ | |
2 | 2 | |||
3 | # used by emulators/libretro-snes9x/Makefile | 3 | # used by emulators/libretro-snes9x/Makefile | |
4 | # used by emulators/snes9x/Makefile | 4 | # used by emulators/snes9x/Makefile | |
5 | # used by emulators/snes9x-gtk/Makefile | 5 | # used by emulators/snes9x-gtk/Makefile | |
6 | 6 | |||
7 | SNES9X_VERSION= 1.62.3 | 7 | SNES9X_VERSION= 1.62.3 | |
8 | DISTNAME= snes9x-${SNES9X_VERSION} | 8 | DISTNAME= snes9x-${SNES9X_VERSION} | |
9 | CATEGORIES= emulators | 9 | CATEGORIES= emulators | |
10 | MASTER_SITES= ${MASTER_SITE_GITHUB:=snes9xgit/} | 10 | MASTER_SITES= ${MASTER_SITE_GITHUB:=snes9xgit/} | |
11 | GITHUB_PROJECT= snes9x | 11 | GITHUB_PROJECT= snes9x | |
12 | GITHUB_TAG= ${SNES9X_VERSION} | 12 | GITHUB_TAG= ${SNES9X_VERSION} | |
13 | 13 | |||
14 | GITHUB_SUBMODULES+= KhronosGroup SPIRV-Cross 4e2fdb25671c742a9fbe93a6034eb1542244c7e1 external/SPIRV-Cross | 14 | GITHUB_SUBMODULES+= KhronosGroup SPIRV-Cross 4e2fdb25671c742a9fbe93a6034eb1542244c7e1 external/SPIRV-Cross | |
15 | GITHUB_SUBMODULES+= KhronosGroup glslang 6d41bb9c557c5a0eec61ffba1f775dc5f717a8f7 external/glslang | 15 | GITHUB_SUBMODULES+= KhronosGroup glslang 6d41bb9c557c5a0eec61ffba1f775dc5f717a8f7 external/glslang | |
16 | GITHUB_SUBMODULES+= KhronosGroup Vulkan-Headers a3dd2655a3a68c2a67c55a0f8b77dcb8b166ada2 external/vulkan-headers | 16 | GITHUB_SUBMODULES+= KhronosGroup Vulkan-Headers a3dd2655a3a68c2a67c55a0f8b77dcb8b166ada2 external/vulkan-headers | |
17 | 17 | |||
18 | HOMEPAGE= http://www.snes9x.com/ | 18 | HOMEPAGE= http://www.snes9x.com/ | |
19 | LICENSE= snes9x-license | 19 | LICENSE= snes9x-license | |
20 | 20 | |||
21 | USE_LANGUAGES= c c++ | 21 | USE_LANGUAGES= c c++ | |
22 | 22 | |||
23 | USE_CXX_FEATURES+= c++11 | |||
24 | ||||
23 | DISTINFO_FILE= ${.CURDIR}/../../emulators/snes9x/distinfo | 25 | DISTINFO_FILE= ${.CURDIR}/../../emulators/snes9x/distinfo | |
24 | PATCHDIR= ${.CURDIR}/../../emulators/snes9x/patches | 26 | PATCHDIR= ${.CURDIR}/../../emulators/snes9x/patches |
@@ -1,27 +1,30 @@ | @@ -1,27 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.104 2024/02/17 21:19:30 nia Exp $ | 1 | # $NetBSD: Makefile,v 1.105 2024/02/21 11:31:21 nia Exp $ | |
2 | 2 | |||
3 | PKGREVISION= 1 | 3 | PKGREVISION= 1 | |
4 | .include "../../emulators/snes9x/Makefile.common" | 4 | .include "../../emulators/snes9x/Makefile.common" | |
5 | 5 | |||
6 | PKGNAME= snes9x-gtk-${SNES9X_VERSION} | 6 | PKGNAME= snes9x-gtk-${SNES9X_VERSION} | |
7 | 7 | |||
8 | MAINTAINER= nia@NetBSD.org | 8 | MAINTAINER= nia@NetBSD.org | |
9 | COMMENT= Super Nintendo Entertainment System (SNES) emulator (GUI version) | 9 | COMMENT= Super Nintendo Entertainment System (SNES) emulator (GUI version) | |
10 | 10 | |||
11 | USE_TOOLS+= pkg-config | 11 | USE_TOOLS+= pkg-config | |
12 | USE_TOOLS+= msgfmt xgettext | 12 | USE_TOOLS+= msgfmt xgettext | |
13 | USE_TOOLS+= gawk | 13 | USE_TOOLS+= gawk | |
14 | 14 | |||
15 | USE_CXX_FEATURES+= c++17 | |||
16 | FORCE_CXX_STD= c++17 | |||
17 | ||||
15 | USE_PKGLOCALEDIR= yes | 18 | USE_PKGLOCALEDIR= yes | |
16 | 19 | |||
17 | CMAKE_ARGS+= -DUSE_SYSTEMZIP=ON | 20 | CMAKE_ARGS+= -DUSE_SYSTEMZIP=ON | |
18 | CMAKE_ARGS+= -DENABLE_PCH=OFF | 21 | CMAKE_ARGS+= -DENABLE_PCH=OFF | |
19 | CMAKE_ARGS+= -DCMAKE_INSTALL_LOCALEDIR=${PKGLOCALEDIR}/locale | 22 | CMAKE_ARGS+= -DCMAKE_INSTALL_LOCALEDIR=${PKGLOCALEDIR}/locale | |
20 | 23 | |||
21 | TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | 24 | TOOL_DEPENDS+= gettext-m4-[0-9]*:../../devel/gettext-m4 | |
22 | 25 | |||
23 | CONFIGURE_DIR= gtk | 26 | CONFIGURE_DIR= gtk | |
24 | 27 | |||
25 | USE_CXX_FEATURES+= c++17 filesystem | 28 | USE_CXX_FEATURES+= c++17 filesystem | |
26 | 29 | |||
27 | .include "../../mk/oss.buildlink3.mk" | 30 | .include "../../mk/oss.buildlink3.mk" |