pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/x16-emulator



Module Name:    pkgsrc
Committed By:   thorpej
Date:           Sun Aug  7 17:38:08 UTC 2022

Modified Files:
        pkgsrc/emulators/x16-emulator: Makefile PLIST distinfo
        pkgsrc/emulators/x16-emulator/patches: patch-Makefile
Added Files:
        pkgsrc/emulators/x16-emulator/patches: patch-src_main.c
            patch-src_rendertext.c
Removed Files:
        pkgsrc/emulators/x16-emulator/patches: patch-main.c patch-rendertext.c

Log Message:
Update to x16-emulator r41.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/emulators/x16-emulator/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/emulators/x16-emulator/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/emulators/x16-emulator/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/emulators/x16-emulator/patches/patch-Makefile
cvs rdiff -u -r1.1 -r0 pkgsrc/emulators/x16-emulator/patches/patch-main.c \
    pkgsrc/emulators/x16-emulator/patches/patch-rendertext.c
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/x16-emulator/patches/patch-src_main.c \
    pkgsrc/emulators/x16-emulator/patches/patch-src_rendertext.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/x16-emulator/Makefile
diff -u pkgsrc/emulators/x16-emulator/Makefile:1.8 pkgsrc/emulators/x16-emulator/Makefile:1.9
--- pkgsrc/emulators/x16-emulator/Makefile:1.8  Mon Mar 28 10:53:06 2022
+++ pkgsrc/emulators/x16-emulator/Makefile      Sun Aug  7 17:38:08 2022
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2022/03/28 10:53:06 tnn Exp $
+# $NetBSD: Makefile,v 1.9 2022/08/07 17:38:08 thorpej Exp $
 
-DISTNAME=      x16-emulator-35
-PKGREVISION=   7
+DISTNAME=      x16-emulator-41
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=commanderx16/}
 GITHUB_PROJECT=        x16-emulator
@@ -12,15 +11,17 @@ HOMEPAGE=   http://commanderx16.com/
 COMMENT=       Emulator for the Commander X16 computer system
 LICENSE=       2-clause-bsd
 
-DEPENDS+=      x16-rom-35{,nb*}:../../emulators/x16-rom
+DEPENDS+=      x16-rom-41{,nb*}:../../emulators/x16-rom
 MAKE_ENV+=     ROM_RELATIVE_PATH=../share/x16/
 
 USE_TOOLS+=    gmake
 
 INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/x16
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/x16emu ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_DATA} ${WRKSRC}/sdcard.img.zip ${DESTDIR}${PREFIX}/share/x16
 
 .include "../../devel/SDL2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/emulators/x16-emulator/PLIST
diff -u pkgsrc/emulators/x16-emulator/PLIST:1.1 pkgsrc/emulators/x16-emulator/PLIST:1.2
--- pkgsrc/emulators/x16-emulator/PLIST:1.1     Sat Dec 28 19:32:18 2019
+++ pkgsrc/emulators/x16-emulator/PLIST Sun Aug  7 17:38:08 2022
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2019/12/28 19:32:18 thorpej Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/08/07 17:38:08 thorpej Exp $
 bin/x16emu
+share/x16/sdcard.img.zip

Index: pkgsrc/emulators/x16-emulator/distinfo
diff -u pkgsrc/emulators/x16-emulator/distinfo:1.5 pkgsrc/emulators/x16-emulator/distinfo:1.6
--- pkgsrc/emulators/x16-emulator/distinfo:1.5  Tue Oct 26 10:24:15 2021
+++ pkgsrc/emulators/x16-emulator/distinfo      Sun Aug  7 17:38:08 2022
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:24:15 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/08/07 17:38:08 thorpej Exp $
 
-BLAKE2s (x16-emulator-35.tar.gz) = ce9acf3b456fa9761db64da16ac0575a19d9edd2dfc9545f479971c01e524614
-SHA512 (x16-emulator-35.tar.gz) = ec014b6ad13a7631d533b665c7544689629167261ffe0f0941c9381ea8cc6b3803a27deac0d76de7aa2fdae3dc438d8f0abbabe9f55ed0221e7fa0f0d39fbf3c
-Size (x16-emulator-35.tar.gz) = 123338 bytes
-SHA1 (patch-Makefile) = 22c6d74e46c085e361900af3f8931ebd842f87c9
-SHA1 (patch-main.c) = db0721d145546dd60ed40b8e9151cd26493e07ad
-SHA1 (patch-rendertext.c) = 81a7e50e7598827addf9aca1f05a22869f2ddeeb
+BLAKE2s (x16-emulator-41.tar.gz) = 095b9dd13b544d878dab791bb2e4ffae82ba582e72bd7d8b618b2181eceb558c
+SHA512 (x16-emulator-41.tar.gz) = 88b75589149e3c308e66fa45c2c07b497c97cea11b9c3fc9635f3e27f8f11ea47fcb55cf9089ac720742b7c96288c2286d120b07ca77879d08153ffbc7870fa1
+Size (x16-emulator-41.tar.gz) = 182076 bytes
+SHA1 (patch-Makefile) = e5029a2956a79e808d8ca9197d5db330930fa7e3
+SHA1 (patch-src_main.c) = 2d037b3b897eb7767ead3968eeb92f3fff4ac563
+SHA1 (patch-src_rendertext.c) = 2474af4dff454ddd6d4ca2c9abc4eba963c3d51e

Index: pkgsrc/emulators/x16-emulator/patches/patch-Makefile
diff -u pkgsrc/emulators/x16-emulator/patches/patch-Makefile:1.2 pkgsrc/emulators/x16-emulator/patches/patch-Makefile:1.3
--- pkgsrc/emulators/x16-emulator/patches/patch-Makefile:1.2    Sat Jan 16 12:20:00 2021
+++ pkgsrc/emulators/x16-emulator/patches/patch-Makefile        Sun Aug  7 17:38:08 2022
@@ -1,24 +1,24 @@
-$NetBSD: patch-Makefile,v 1.2 2021/01/16 12:20:00 nia Exp $
+$NetBSD: patch-Makefile,v 1.3 2022/08/07 17:38:08 thorpej Exp $
 
 Honor CFLAGS/LDFLAGS.
 
 Allow the default location of the X16 ROM to be overridden.
 
---- Makefile.orig      2019-12-20 20:00:49.000000000 +0000
-+++ Makefile
-@@ -10,8 +10,8 @@ else
+--- Makefile.orig      2022-05-09 06:32:54.000000000 +0000
++++ Makefile   2022-08-07 14:43:29.476121731 +0000
+@@ -20,8 +20,8 @@ else
        SDL2CONFIG=sdl2-config
  endif
  
--CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src
+-CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -Isrc/extern/src
 -LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm
-+CFLAGS+=-std=c99 -Wall $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src
++CFLAGS+=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -Isrc/extern/src
 +LDFLAGS+=$(shell $(SDL2CONFIG) --libs) -lm
  
- OUTPUT=x16emu
- 
-@@ -48,6 +48,9 @@ ifneq ("$(wildcard ./rom_labels.h)","")
- HEADERS+=rom_labels.h
+ ODIR = build
+ SDIR = src
+@@ -66,6 +66,9 @@ ifneq ("$(wildcard ./src/rom_labels.h)",
+ HEADERS+=src/rom_labels.h
  endif
  
 +ifdef ROM_RELATIVE_PATH

Added files:

Index: pkgsrc/emulators/x16-emulator/patches/patch-src_main.c
diff -u /dev/null pkgsrc/emulators/x16-emulator/patches/patch-src_main.c:1.1
--- /dev/null   Sun Aug  7 17:38:08 2022
+++ pkgsrc/emulators/x16-emulator/patches/patch-src_main.c      Sun Aug  7 17:38:08 2022
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_main.c,v 1.1 2022/08/07 17:38:08 thorpej Exp $
+
+Allow the default location of the X16 ROM to be overridden.
+
+--- src/main.c.orig    2022-08-07 02:13:20.524132103 +0000
++++ src/main.c 2022-08-07 02:17:36.561192332 +0000
+@@ -491,9 +491,13 @@ main(int argc, char **argv)
+ 
+       char *base_path = SDL_GetBasePath();
+ 
+-      // This causes the emulator to load ROM data from the executable's directory when
+-      // no ROM file is specified on the command line.
++      // This causes the emulator to load ROM data from the executable's
++      // directory ((or somewhere nearby if ROM_RELATIVE_PATH is specified)
++      // when no ROM file is specified on the command line.
+       memcpy(rom_path, base_path, strlen(base_path) + 1);
++#ifdef ROM_RELATIVE_PATH
++      strncpy(rom_path + strlen(rom_path), ROM_RELATIVE_PATH, PATH_MAX - strlen(rom_path));
++#endif
+       strncpy(rom_path + strlen(rom_path), rom_filename, PATH_MAX - strlen(rom_path));
+ 
+       argc--;
Index: pkgsrc/emulators/x16-emulator/patches/patch-src_rendertext.c
diff -u /dev/null pkgsrc/emulators/x16-emulator/patches/patch-src_rendertext.c:1.1
--- /dev/null   Sun Aug  7 17:38:08 2022
+++ pkgsrc/emulators/x16-emulator/patches/patch-src_rendertext.c        Sun Aug  7 17:38:08 2022
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_rendertext.c,v 1.1 2022/08/07 17:38:08 thorpej Exp $
+
+--- src/rendertext.c.orig      2022-08-07 02:20:35.066620319 +0000
++++ src/rendertext.c   2022-08-07 02:22:17.485680282 +0000
+@@ -23,7 +23,7 @@ int textureInitialized = 0;
+ //
+ char *ltrim(char *s)
+ {
+-      while(isspace(*s)) s++;
++      while(isspace((unsigned char)*s)) s++;
+       return s;
+ }
+ 



Home | Main Index | Thread Index | Old Index