diff options
Diffstat (limited to 'emulators/x16-emulator')
-rw-r--r-- | emulators/x16-emulator/Makefile | 9 | ||||
-rw-r--r-- | emulators/x16-emulator/PLIST | 3 | ||||
-rw-r--r-- | emulators/x16-emulator/distinfo | 14 | ||||
-rw-r--r-- | emulators/x16-emulator/patches/patch-Makefile | 20 | ||||
-rw-r--r-- | emulators/x16-emulator/patches/patch-rendertext.c | 13 | ||||
-rw-r--r-- | emulators/x16-emulator/patches/patch-src_main.c (renamed from emulators/x16-emulator/patches/patch-main.c) | 10 | ||||
-rw-r--r-- | emulators/x16-emulator/patches/patch-src_rendertext.c | 13 |
7 files changed, 42 insertions, 40 deletions
diff --git a/emulators/x16-emulator/Makefile b/emulators/x16-emulator/Makefile index ef472c500ba..c21487a628e 100644 --- a/emulators/x16-emulator/Makefile +++ b/emulators/x16-emulator/Makefile @@ -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" diff --git a/emulators/x16-emulator/PLIST b/emulators/x16-emulator/PLIST index d3fb34a17a6..2fc08db5b28 100644 --- a/emulators/x16-emulator/PLIST +++ b/emulators/x16-emulator/PLIST @@ -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 diff --git a/emulators/x16-emulator/distinfo b/emulators/x16-emulator/distinfo index df206615cc3..8fbdeaa9303 100644 --- a/emulators/x16-emulator/distinfo +++ b/emulators/x16-emulator/distinfo @@ -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 diff --git a/emulators/x16-emulator/patches/patch-Makefile b/emulators/x16-emulator/patches/patch-Makefile index a39fb93d0aa..259b14e3b7e 100644 --- a/emulators/x16-emulator/patches/patch-Makefile +++ b/emulators/x16-emulator/patches/patch-Makefile @@ -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 diff --git a/emulators/x16-emulator/patches/patch-rendertext.c b/emulators/x16-emulator/patches/patch-rendertext.c deleted file mode 100644 index ea677176b93..00000000000 --- a/emulators/x16-emulator/patches/patch-rendertext.c +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-rendertext.c,v 1.1 2020/04/18 22:04:18 joerg Exp $ - ---- rendertext.c.orig 2020-04-17 21:39:18.771500194 +0000 -+++ rendertext.c -@@ -22,7 +22,7 @@ int textureInitialized = 0; - // - char *ltrim(char *s) - { -- while(isspace(*s)) s++; -+ while(isspace((unsigned char)*s)) s++; - return s; - } - diff --git a/emulators/x16-emulator/patches/patch-main.c b/emulators/x16-emulator/patches/patch-src_main.c index 3b11c63cc5f..90cb0f8b0d1 100644 --- a/emulators/x16-emulator/patches/patch-main.c +++ b/emulators/x16-emulator/patches/patch-src_main.c @@ -1,17 +1,17 @@ -$NetBSD: patch-main.c,v 1.1 2019/12/28 19:32:18 thorpej Exp $ +$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. ---- main.c.orig 2019-12-28 19:00:35.000000000 +0000 -+++ main.c -@@ -436,9 +436,13 @@ main(int argc, char **argv) +--- 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) ++ // 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 diff --git a/emulators/x16-emulator/patches/patch-src_rendertext.c b/emulators/x16-emulator/patches/patch-src_rendertext.c new file mode 100644 index 00000000000..d5bda6cfb0f --- /dev/null +++ b/emulators/x16-emulator/patches/patch-src_rendertext.c @@ -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; + } + |