emulators/cannonball: Updates to 0.31 Changes since 0.3.2019102: Maintenance Release This release focuses on upgrading the libraries and compilation tools CannonBall uses, as I hadn't maintained the codebase in a number of years. Most of these changes will be invisible to most users. Right now, I'm trying to get the house in order as opposed to add lots of wild new features! :) * [audio] Audio updates at the correct rate and resolves the longstanding issue with music and sound being very slightly 'off' * [roms] ROMs are now read by CRC 32 value. Filenames no longer matter - so long as they are present they can be renamed to anything. * [roms] Fixed expected Z80 rom file length * [controls] Start Button behaviour less 'sticky' and buggy * [controls] Analog axis for accelerate and brake can now be configured via the in-built menu system * [menu] Reduced delay when scrolling through menu with analog controls * [config] ROMs and save data can be relocated to separate locations * [bug fix] Time Trial mode no longer crashes if used as the first mode played * [timing] Code tries to use V-Sync for timing OR internal timing, as opposed to both at once * [source] SDL 2 used by default. SDL 1 removed from codebase. This appears to have fixed compatibility bugs for some people * [source] Added compatibility for upcoming SmartyPi hardware (Pi 4 based) to run on original arcade hardware * [source] A general clean-up in many areasdiff -r1.7 -r1.8 pkgsrc/emulators/cannonball/Makefile
(fox)
@@ -1,36 +1,32 @@ | @@ -1,36 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2021/01/01 08:24:42 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2021/03/16 23:51:48 fox Exp $ | |
2 | 2 | |||
3 | DISTNAME= cannonball-0.3.20191023 | 3 | DISTNAME= cannonball-0.31 | |
4 | PKGREVISION= 5 | |||
5 | CATEGORIES= emulators | 4 | CATEGORIES= emulators | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=djyt/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=djyt/} | |
7 | GITHUB_TAG= b6aa525ddd552f96b43b3b3a6f69326a277206bd | 6 | GITHUB_TAG= v0.31 | |
8 | EXTRACT_USING= bsdtar | 7 | EXTRACT_USING= bsdtar | |
9 | 8 | |||
10 | MAINTAINER= fox@NetBSD.org | 9 | MAINTAINER= fox@NetBSD.org | |
11 | HOMEPAGE= https://github.com/djyt/cannonball/wiki | 10 | HOMEPAGE= https://github.com/djyt/cannonball/wiki | |
12 | COMMENT= Enhanced OutRun Engine | 11 | COMMENT= Enhanced OutRun Engine | |
13 | LICENSE= mame-license | 12 | LICENSE= mame-license | |
14 | 13 | |||
15 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
16 | USE_TOOLS+= pkg-config | 15 | USE_TOOLS+= pkg-config | |
17 | USE_CMAKE= yes | 16 | USE_CMAKE= yes | |
18 | CONFIGURE_DIRS= build | 17 | CONFIGURE_DIRS= build | |
19 | CMAKE_ARG_PATH= ${WRKSRC}/cmake | 18 | CMAKE_ARG_PATH= ${WRKSRC}/cmake | |
20 | CMAKE_ARGS.Linux+= -DTARGET=debian | 19 | CMAKE_ARGS+= -DTARGET=linux.cmake | |
21 | CMAKE_ARGS.NetBSD+= -G "Unix Makefiles" | |||
22 | CMAKE_ARGS.NetBSD+= -DTARGET=bsd | |||
23 | CMAKE_ARGS.NetBSD+= -DBSD_PREFIX_PATH:STRING=${PREFIX} | |||
24 | 20 | |||
25 | TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils | 21 | TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils | |
26 | 22 | |||
27 | ICON_SIZES= 16 | 23 | ICON_SIZES= 16 | |
28 | 24 | |||
29 | INSTALLATION_DIRS+= bin libexec share/applications \ | 25 | INSTALLATION_DIRS+= bin libexec share/applications \ | |
30 | share/cannonball share/cannonball/res \ | 26 | share/cannonball share/cannonball/res \ | |
31 | share/cannonball/conf ${PKGMANDIR}/man6 | 27 | share/cannonball/conf ${PKGMANDIR}/man6 | |
32 | .for s in ${ICON_SIZES} | 28 | .for s in ${ICON_SIZES} | |
33 | INSTALLATION_DIRS+= share/icons/hicolor/${s}x${s}/apps | 29 | INSTALLATION_DIRS+= share/icons/hicolor/${s}x${s}/apps | |
34 | .endfor | 30 | .endfor | |
35 | 31 | |||
36 | pre-configure: | 32 | pre-configure: | |
@@ -58,15 +54,19 @@ do-install: | @@ -58,15 +54,19 @@ do-install: | |||
58 | ${DESTDIR}${PREFIX}/bin/cannonball | 54 | ${DESTDIR}${PREFIX}/bin/cannonball | |
59 | ${INSTALL_PROGRAM} ${WRKSRC}/build/cannonball \ | 55 | ${INSTALL_PROGRAM} ${WRKSRC}/build/cannonball \ | |
60 | ${DESTDIR}${PREFIX}/libexec | 56 | ${DESTDIR}${PREFIX}/libexec | |
61 | ${INSTALL_MAN} ${WRKSRC}/docs/cannonball.6 \ | 57 | ${INSTALL_MAN} ${WRKSRC}/docs/cannonball.6 \ | |
62 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6 | 58 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6 | |
63 | .for s in ${ICON_SIZES} | 59 | .for s in ${ICON_SIZES} | |
64 | ${INSTALL_DATA} ${WRKSRC}/${s}.png \ | 60 | ${INSTALL_DATA} ${WRKSRC}/${s}.png \ | |
65 | ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/cannonball.png | 61 | ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/cannonball.png | |
66 | .endfor | 62 | .endfor | |
67 | 63 | |||
68 | .include "../../devel/boost-headers/buildlink3.mk" | 64 | .include "../../devel/boost-headers/buildlink3.mk" | |
69 | .include "../../devel/boost-libs/buildlink3.mk" | 65 | .include "../../devel/boost-libs/buildlink3.mk" | |
70 | .include "../../devel/SDL2/buildlink3.mk" | 66 | .include "../../devel/SDL2/buildlink3.mk" | |
67 | .if ${OPSYS} != "Darwin" | |||
68 | . include "../../graphics/glu/buildlink3.mk" | |||
69 | . include "../../graphics/MesaLib/buildlink3.mk" | |||
70 | .endif | |||
71 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | 71 | .include "../../graphics/hicolor-icon-theme/buildlink3.mk" | |
72 | .include "../../mk/bsd.pkg.mk" | 72 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2019/10/24 00:32:36 fox Exp $ | 1 | $NetBSD: distinfo,v 1.3 2021/03/16 23:51:48 fox Exp $ | |
2 | 2 | |||
3 | SHA1 (cannonball-0.3.20191023-b6aa525ddd552f96b43b3b3a6f69326a277206bd.tar.gz) = 3f75608aa20cae57ac0d3c2c1682d27ef1ed000b | 3 | SHA1 (cannonball-0.31.tar.gz) = c39016a6b42a105316724cee0f4921db0c6ef30a | |
4 | RMD160 (cannonball-0.3.20191023-b6aa525ddd552f96b43b3b3a6f69326a277206bd.tar.gz) = 9baba3b856e4de47a0639f0619f704e71bd60020 | 4 | RMD160 (cannonball-0.31.tar.gz) = 7e81ea018b549735fe4d932589caf3a91f8f0cd0 | |
5 | SHA512 (cannonball-0.3.20191023-b6aa525ddd552f96b43b3b3a6f69326a277206bd.tar.gz) = 6b0226e9f9f2c60b7f202b7ff282181d4da4717acc162393a475b6c4e58da6198be41f789a7797e0ca9fac8b8d29b6b4f480ee75868b600b93ed55cea398a797 | 5 | SHA512 (cannonball-0.31.tar.gz) = 213729c735442f8c9abf4f7d689851904496fc5ace6b0be35d1348ee124e6f7060ce78b281c07feebb1ca66089a74aced7ff6d0ea7eba64681daa38f36de03ef | |
6 | Size (cannonball-0.3.20191023-b6aa525ddd552f96b43b3b3a6f69326a277206bd.tar.gz) = 278482 bytes | 6 | Size (cannonball-0.31.tar.gz) = 269125 bytes | |
7 | SHA1 (patch-cmake_linux.cmake) = 8b58551207d283b7c78e8a71bca864d9e8751f40 |
$NetBSD: patch-cmake_linux.cmake,v 1.1 2021/03/16 23:51:49 fox Exp $
Adds support for building in Linux / BSD.
Will be removed once upstream makes a release with
https://github.com/djyt/cannonball/commit/a9c71cbf229b9f808ae172a09d12a773fc869209
--- cmake/linux.cmake.orig 2021-03-16 09:31:59.333255192 +0000
+++ cmake/linux.cmake
@@ -0,0 +1,11 @@
+# -----------------------------------------------------------------------------
+# CannonBall Linux Setup
+# -----------------------------------------------------------------------------
+
+# Use OpenGL for rendering.
+find_package(OpenGL REQUIRED)
+
+# Platform Specific Libraries
+set(platform_link_libs
+ ${OPENGL_LIBRARIES}
+)
\ No newline at end of file