pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/emulators
Module Name: pkgsrc
Committed By: thorpej
Date: Mon Nov 27 03:21:00 UTC 2023
Modified Files:
pkgsrc/emulators/x16-emulator: Makefile distinfo
pkgsrc/emulators/x16-emulator/patches: patch-Makefile patch-src_main.c
pkgsrc/emulators/x16-rom: Makefile distinfo
Added Files:
pkgsrc/emulators/x16-rom/patches: patch-Makefile
Removed Files:
pkgsrc/emulators/x16-emulator/patches: patch-src_debugger.c
patch-src_glue.h patch-src_serial.c
pkgsrc/emulators/x16-rom/patches: patch-scripts_symbolize.sh
Log Message:
Update the Commander X16 emulator and ROM to version r46.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/emulators/x16-emulator/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/emulators/x16-emulator/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/emulators/x16-emulator/patches/patch-Makefile
cvs rdiff -u -r1.1 -r0 \
pkgsrc/emulators/x16-emulator/patches/patch-src_debugger.c \
pkgsrc/emulators/x16-emulator/patches/patch-src_glue.h \
pkgsrc/emulators/x16-emulator/patches/patch-src_serial.c
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/emulators/x16-emulator/patches/patch-src_main.c
cvs rdiff -u -r1.4 -r1.5 pkgsrc/emulators/x16-rom/Makefile \
pkgsrc/emulators/x16-rom/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/x16-rom/patches/patch-Makefile
cvs rdiff -u -r1.1 -r0 \
pkgsrc/emulators/x16-rom/patches/patch-scripts_symbolize.sh
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.13 pkgsrc/emulators/x16-emulator/Makefile:1.14
--- pkgsrc/emulators/x16-emulator/Makefile:1.13 Tue May 16 06:01:45 2023
+++ pkgsrc/emulators/x16-emulator/Makefile Mon Nov 27 03:20:59 2023
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2023/05/16 06:01:45 thorpej Exp $
+# $NetBSD: Makefile,v 1.14 2023/11/27 03:20:59 thorpej Exp $
-DISTNAME= x16-emulator-41
-PKGREVISION= 4
+DISTNAME= x16-emulator-46
CATEGORIES= emulators
-MASTER_SITES= ${MASTER_SITE_GITHUB:=commanderx16/}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=X16Community/}
GITHUB_PROJECT= x16-emulator
GITHUB_TAG= r${PKGVERSION_NOREV}
@@ -12,9 +11,11 @@ HOMEPAGE= http://commanderx16.com/
COMMENT= Emulator for the Commander X16 computer system
LICENSE= 2-clause-bsd
-DEPENDS+= x16-rom-41{,nb*}:../../emulators/x16-rom
+DEPENDS+= x16-rom-46{,nb*}:../../emulators/x16-rom
MAKE_ENV+= ROM_RELATIVE_PATH=../share/x16/
+MAKE_ENV+= GIT_REV=${GITHUB_TAG}
+USE_LANGUAGES= c99 c++17
USE_TOOLS+= gmake
INSTALLATION_DIRS+= bin
Index: pkgsrc/emulators/x16-emulator/distinfo
diff -u pkgsrc/emulators/x16-emulator/distinfo:1.7 pkgsrc/emulators/x16-emulator/distinfo:1.8
--- pkgsrc/emulators/x16-emulator/distinfo:1.7 Tue May 16 06:01:45 2023
+++ pkgsrc/emulators/x16-emulator/distinfo Mon Nov 27 03:20:59 2023
@@ -1,11 +1,8 @@
-$NetBSD: distinfo,v 1.7 2023/05/16 06:01:45 thorpej Exp $
+$NetBSD: distinfo,v 1.8 2023/11/27 03:20:59 thorpej Exp $
-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_debugger.c) = ab309e1ece277a3c0bb6c1a3fc230efbc95c325e
-SHA1 (patch-src_glue.h) = 377c592090c9853d604953896480ea4d6526bf47
-SHA1 (patch-src_main.c) = 2d037b3b897eb7767ead3968eeb92f3fff4ac563
+BLAKE2s (x16-emulator-46.tar.gz) = ec4ec0c0155843c4c7be5ce103794b02973b31aae3c8af8cc5fade765453a78d
+SHA512 (x16-emulator-46.tar.gz) = d5e2ac7db8dbb710dd400a31e5c4b0d426c7284d899df3a7814c25ca15a4cbe546dbf986223e833f6526a7981c785bbebe47729c79d03a35928c5f72c985d86e
+Size (x16-emulator-46.tar.gz) = 300653 bytes
+SHA1 (patch-Makefile) = bc5fa340969e56d8eb8f6d8e3d6527ac773a6d31
+SHA1 (patch-src_main.c) = 6b759386bc9e1a87a1b33763cc14da75cd4b755f
SHA1 (patch-src_rendertext.c) = 2474af4dff454ddd6d4ca2c9abc4eba963c3d51e
-SHA1 (patch-src_serial.c) = fc80458efe6fd3b9f78071e31d44bada1788219b
Index: pkgsrc/emulators/x16-emulator/patches/patch-Makefile
diff -u pkgsrc/emulators/x16-emulator/patches/patch-Makefile:1.3 pkgsrc/emulators/x16-emulator/patches/patch-Makefile:1.4
--- pkgsrc/emulators/x16-emulator/patches/patch-Makefile:1.3 Sun Aug 7 17:38:08 2022
+++ pkgsrc/emulators/x16-emulator/patches/patch-Makefile Mon Nov 27 03:21:00 2023
@@ -1,29 +1,40 @@
-$NetBSD: patch-Makefile,v 1.3 2022/08/07 17:38:08 thorpej Exp $
+$NetBSD: patch-Makefile,v 1.4 2023/11/27 03:21:00 thorpej Exp $
Honor CFLAGS/LDFLAGS.
Allow the default location of the X16 ROM to be overridden.
---- Makefile.orig 2022-05-09 06:32:54.000000000 +0000
-+++ Makefile 2022-08-07 14:43:29.476121731 +0000
-@@ -20,8 +20,8 @@ else
+Allow GIT_REV to be overridden.
+
+--- Makefile.orig 2023-11-06 03:36:56
++++ Makefile 2023-11-27 03:00:05
+@@ -10,9 +10,9 @@ CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CON
SDL2CONFIG=sdl2-config
endif
--CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -Isrc/extern/src
--LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm
-+CFLAGS+=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -Isrc/extern/src
-+LDFLAGS+=$(shell $(SDL2CONFIG) --libs) -lm
-
- ODIR = build
- SDIR = src
-@@ -66,6 +66,9 @@ ifneq ("$(wildcard ./src/rom_labels.h)",
- HEADERS+=src/rom_labels.h
+-CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include
+-CXXFLAGS=-std=c++17 -O3 -Wall -Werror -Isrc/extern/ymfm/src
+-LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm -lz
++CFLAGS+=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include
++CXXFLAGS+=-std=c++17 -O3 -Wall -Werror -Isrc/extern/ymfm/src
++LDFLAGS+=$(shell $(SDL2CONFIG) --libs) -lm -lz
+
+ # build with link time optimization
+ ifndef NOLTO
+@@ -30,10 +30,16 @@ X16_OUTPUT=x16emu
+ CFLAGS+=-D TRACE
endif
+ifdef ROM_RELATIVE_PATH
+ CFLAGS+=-DROM_RELATIVE_PATH=\"$(ROM_RELATIVE_PATH)\"
+endif
++
+ X16_OUTPUT=x16emu
+ MAKECART_OUTPUT=makecart
+
++ifndef GIT_REV
+ GIT_REV=$(shell git diff --quiet && /bin/echo -n $$(git rev-parse --short=8 HEAD || /bin/echo "00000000") || /bin/echo -n $$( /bin/echo -n $$(git rev-parse --short=7 HEAD || /bin/echo "0000000");
/bin/echo -n '+'))
++endif
+
+ CFLAGS+=-D GIT_REV='"$(GIT_REV)"'
- all: $(OBJS) $(HEADERS)
- $(CC) -o $(OUTPUT) $(OBJS) $(LDFLAGS)
Index: pkgsrc/emulators/x16-emulator/patches/patch-src_main.c
diff -u pkgsrc/emulators/x16-emulator/patches/patch-src_main.c:1.1 pkgsrc/emulators/x16-emulator/patches/patch-src_main.c:1.2
--- pkgsrc/emulators/x16-emulator/patches/patch-src_main.c:1.1 Sun Aug 7 17:38:08 2022
+++ pkgsrc/emulators/x16-emulator/patches/patch-src_main.c Mon Nov 27 03:21:00 2023
@@ -1,22 +1,22 @@
-$NetBSD: patch-src_main.c,v 1.1 2022/08/07 17:38:08 thorpej Exp $
+$NetBSD: patch-src_main.c,v 1.2 2023/11/27 03:21:00 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)
+--- src/main.c.orig 2023-11-06 03:36:56
++++ src/main.c 2023-11-27 02:44:32
+@@ -513,9 +513,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
+ 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));
+ memory_randomize_ram(true);
- argc--;
Index: pkgsrc/emulators/x16-rom/Makefile
diff -u pkgsrc/emulators/x16-rom/Makefile:1.4 pkgsrc/emulators/x16-rom/Makefile:1.5
--- pkgsrc/emulators/x16-rom/Makefile:1.4 Mon Aug 14 05:24:22 2023
+++ pkgsrc/emulators/x16-rom/Makefile Mon Nov 27 03:21:00 2023
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2023/08/14 05:24:22 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2023/11/27 03:21:00 thorpej Exp $
-DISTNAME= x16-rom-41
-PKGREVISION= 1
+DISTNAME= x16-rom-46
CATEGORIES= emulators
-MASTER_SITES= ${MASTER_SITE_GITHUB:=commanderx16/}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=X16Community/}
GITHUB_PROJECT= x16-rom
GITHUB_TAG= r${PKGVERSION_NOREV}
@@ -13,6 +12,9 @@ COMMENT= ROM for the Commander X16 compu
LICENSE= commander-x16-rom-license
TOOL_DEPENDS+= cc65-[0-9]*:../../cross/cc65
+TOOL_DEPENDS+= lzsa-[0-9]*:../../archivers/lzsa
+
+MAKE_ENV+= GIT_REV=${GITHUB_TAG}
USE_TOOLS+= gmake bash
Index: pkgsrc/emulators/x16-rom/distinfo
diff -u pkgsrc/emulators/x16-rom/distinfo:1.4 pkgsrc/emulators/x16-rom/distinfo:1.5
--- pkgsrc/emulators/x16-rom/distinfo:1.4 Sun Aug 7 17:36:52 2022
+++ pkgsrc/emulators/x16-rom/distinfo Mon Nov 27 03:21:00 2023
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2022/08/07 17:36:52 thorpej Exp $
+$NetBSD: distinfo,v 1.5 2023/11/27 03:21:00 thorpej Exp $
-BLAKE2s (x16-rom-41.tar.gz) = ad1c5ce4fe1fb3b2642f59fdedf0d3895e097663c68f71fb016479ba7b31277a
-SHA512 (x16-rom-41.tar.gz) = 21afe719d1447e289a210607fde0a54847d2dcc6216933146b2a96f13e83c72158827c98a2c2dcc2f9b4fd1aee18d1b25947ca0ef3cb60bad0518f7952c10512
-Size (x16-rom-41.tar.gz) = 630172 bytes
-SHA1 (patch-scripts_symbolize.sh) = 1d5c75ccd3015508ab8510a1b0890a376aca80eb
+BLAKE2s (x16-rom-46.tar.gz) = 3efd6965342935fb5d588038cf11df869c9eeedd38eb7cd88c21aff0aa564606
+SHA512 (x16-rom-46.tar.gz) = 2eb9a9e4f2cf86e71897e900bfa528f79a3e9e8bedc5bcc25868c3508afc85cdd087a39be37d1ceab7441b3d91553e0056a67efcd575dfa11fda468f9065181a
+Size (x16-rom-46.tar.gz) = 899784 bytes
+SHA1 (patch-Makefile) = cea4a06b0545215ceec4ed36eb84534737ec2f5f
Added files:
Index: pkgsrc/emulators/x16-rom/patches/patch-Makefile
diff -u /dev/null pkgsrc/emulators/x16-rom/patches/patch-Makefile:1.1
--- /dev/null Mon Nov 27 03:21:00 2023
+++ pkgsrc/emulators/x16-rom/patches/patch-Makefile Mon Nov 27 03:21:00 2023
@@ -0,0 +1,23 @@
+$NetBSD: patch-Makefile,v 1.1 2023/11/27 03:21:00 thorpej Exp $
+
+Allow the git revision to be overridden.
+
+--- Makefile.orig 2023-11-06 03:34:39
++++ Makefile 2023-11-27 03:12:47
+@@ -336,10 +336,16 @@ $(GIT_SIGNATURE): FORCE
+ rm -rf $(BUILD_DIR)
+ $(MAKE) -C codex clean
+
++ifdef GIT_REV
++$(GIT_SIGNATURE): FORCE
++ @mkdir -p $(BUILD_DIR)
++ /bin/echo -n ${GIT_REV} | tr '[:lower:]' '[:upper:]' > $(GIT_SIGNATURE)
++else
+ $(GIT_SIGNATURE): FORCE
+ @mkdir -p $(BUILD_DIR)
+ git diff --quiet && /bin/echo -n $$( (git rev-parse --short=8 HEAD || /bin/echo "00000000") | tr '[:lower:]' '[:upper:]') > $(GIT_SIGNATURE) \
+ || /bin/echo -n $$( /bin/echo -n $$(git rev-parse --short=7 HEAD || echo "0000000") | tr '[:lower:]' '[:upper:]'; /bin/echo -n '+') > $(GIT_SIGNATURE)
++endif
+
+ FORCE:
+
Home |
Main Index |
Thread Index |
Old Index