pkgsrc-Changes archive

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

CVS commit: [pkgsrc-2024Q3] pkgsrc/emulators/blastem



Module Name:    pkgsrc
Committed By:   maya
Date:           Tue Nov  5 01:15:51 UTC 2024

Modified Files:
        pkgsrc/emulators/blastem [pkgsrc-2024Q3]: Makefile distinfo
Added Files:
        pkgsrc/emulators/blastem/patches [pkgsrc-2024Q3]: patch-render__sdl.c
Removed Files:
        pkgsrc/emulators/blastem [pkgsrc-2024Q3]: MESSAGE.NetBSD

Log Message:
Pullup ticket #6913 - requested by nia
Runtime functionality fix for NetBSD

Revisions pulled up:
- emulators/blastem/MESSAGE.NetBSD                              deleted
- emulators/blastem/Makefile                                    1.14
- emulators/blastem/distinfo                                    1.4
- emulators/blastem/patches/patch-render__sdl.c                 1.1

---
   Module Name: pkgsrc
   Committed By:        nia
   Date:                Mon Nov  4 21:39:04 UTC 2024

   Modified Files:
        pkgsrc/emulators/blastem: Makefile distinfo
   Added Files:
        pkgsrc/emulators/blastem/patches: patch-render__sdl.c
   Removed Files:
        pkgsrc/emulators/blastem: MESSAGE.NetBSD

   Log Message:
   blastem: Fix sound.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 pkgsrc/emulators/blastem/MESSAGE.NetBSD
cvs rdiff -u -r1.13 -r1.13.4.1 pkgsrc/emulators/blastem/Makefile
cvs rdiff -u -r1.3 -r1.3.24.1 pkgsrc/emulators/blastem/distinfo
cvs rdiff -u -r0 -r1.1.2.2 \
    pkgsrc/emulators/blastem/patches/patch-render__sdl.c

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

Modified files:

Index: pkgsrc/emulators/blastem/Makefile
diff -u pkgsrc/emulators/blastem/Makefile:1.13 pkgsrc/emulators/blastem/Makefile:1.13.4.1
--- pkgsrc/emulators/blastem/Makefile:1.13      Sat Apr  6 08:05:15 2024
+++ pkgsrc/emulators/blastem/Makefile   Tue Nov  5 01:15:50 2024
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2024/04/06 08:05:15 wiz Exp $
+# $NetBSD: Makefile,v 1.13.4.1 2024/11/05 01:15:50 maya Exp $
 
 DISTNAME=      8aeac7bd9fa7
 PKGNAME=       blastem-0.6.2
-PKGREVISION=   10
+PKGREVISION=   11
 CATEGORIES=    emulators
 MASTER_SITES=  https://www.retrodev.com/repos/blastem/archive/
 DIST_SUBDIR=   blastem
@@ -14,13 +14,14 @@ LICENSE=    gnu-gpl-v3
 
 WRKSRC=                ${WRKDIR}/blastem-${DISTNAME}
 USE_TOOLS+=    gmake pkg-config
-USE_LANGUAGES= c99
 
 MAKE_FLAGS+=   HOST_ZLIB=1
 MAKE_FLAGS+=   OPT=
 MAKE_FLAGS+=   NOLTO=1
 MAKE_FLAGS+=   DATA_PATH=${PREFIX}/share/blastem
 
+USE_CC_FEATURES+=      c99
+
 INSTALLATION_DIRS+=    bin
 INSTALLATION_DIRS+=    share/applications
 INSTALLATION_DIRS+=    share/blastem

Index: pkgsrc/emulators/blastem/distinfo
diff -u pkgsrc/emulators/blastem/distinfo:1.3 pkgsrc/emulators/blastem/distinfo:1.3.24.1
--- pkgsrc/emulators/blastem/distinfo:1.3       Tue Oct 26 10:23:47 2021
+++ pkgsrc/emulators/blastem/distinfo   Tue Nov  5 01:15:50 2024
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:23:47 nia Exp $
+$NetBSD: distinfo,v 1.3.24.1 2024/11/05 01:15:50 maya Exp $
 
 BLAKE2s (blastem/8aeac7bd9fa7.tar.gz) = c9e84dd4bf9423ce9d3dbd195a3e4416ef129047643b7c7490249a9caceb98ab
 SHA512 (blastem/8aeac7bd9fa7.tar.gz) = dec0d0c49cec9f896884b93c6ec568eb88d8ae51ddcf93445a70e9ad6543ef92c34fcdf14e66b56de1805dc5876d1ff17e51ab79d8d894da51312a42ac1c36d3
 Size (blastem/8aeac7bd9fa7.tar.gz) = 1113490 bytes
 SHA1 (patch-Makefile) = 1635e72bb90227b5fbfc32fe43bd5552ca48fb64
+SHA1 (patch-render__sdl.c) = 8cf2e7ebd0c4ad60cd616d6660f3239aec2fc694

Added files:

Index: pkgsrc/emulators/blastem/patches/patch-render__sdl.c
diff -u /dev/null pkgsrc/emulators/blastem/patches/patch-render__sdl.c:1.1.2.2
--- /dev/null   Tue Nov  5 01:15:51 2024
+++ pkgsrc/emulators/blastem/patches/patch-render__sdl.c        Tue Nov  5 01:15:51 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-render__sdl.c,v 1.1.2.2 2024/11/05 01:15:51 maya Exp $
+
+Fix audio output on NetBSD - floats unsupported.
+
+--- render_sdl.c.orig  2024-11-04 21:34:19.095086183 +0000
++++ render_sdl.c
+@@ -1038,7 +1038,7 @@ static void init_audio()
+               rate = 48000;
+       }
+     desired.freq = rate;
+-      desired.format = AUDIO_F32SYS;
++      desired.format = AUDIO_S16SYS;
+       desired.channels = 2;
+     char * samples_str = tern_find_path(config, "audio\0buffer\0", TVAL_PTR).ptrval;
+       int samples = samples_str ? atoi(samples_str) : 0;



Home | Main Index | Thread Index | Old Index