head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.38 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.36 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.34 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.32 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.30 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.28 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.26 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.24 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.22 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.20 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.18 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.16 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.14 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.12 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.10 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.8 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.6 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.4 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.2 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.1.0.10 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.8 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.6 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.4 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.2 pkgsrc-2020Q2-base:1.1; locks; strict; comment @# @; 1.3 date 2021.08.24.13.27.26; author nia; state Exp; branches; next 1.2; commitid i2ggRILFTLIO8e6D; 1.2 date 2021.07.04.07.47.20; author nia; state Exp; branches; next 1.1; commitid VSdadOxQIr5MTDZC; 1.1 date 2020.06.02.13.24.32; author nia; state Exp; branches; next ; commitid OCE15ILeK2QAwEaC; desc @@ 1.3 log @gearboy: update to 3.4.0 All platforms: GBA mode. Bootrom support. Many performance improvements. Several bug fixes. Windows , Linux and Mac (desktop): Fullscreen. Multi-line cheat input to add multiple cheats in batch. BSD support. 5 custom palettes. Debugger: go-to address, double click in jumps, back, memory breakpoints. RetroArch (libretro): Apple TV macOS ARM OpenDingux @ text @$NetBSD: patch-platforms_desktop-shared_Makefile.common,v 1.2 2021/07/04 07:47:20 nia Exp $ Avoid overriding variables we want to pass through pkgsrc. --- platforms/desktop-shared/Makefile.common.orig 2021-08-13 21:15:08.000000000 +0000 +++ platforms/desktop-shared/Makefile.common @@@@ -1,11 +1,5 @@@@ - -CXX = g++ -#CXX = clang++ - EXE = gearboy -GIT_VERSION := "$(shell git describe --abbrev=7 --dirty --always --tags)" - EMULATOR_SRC=../../src EMULATOR_DESKTOP_SHARED_SRC=../desktop-shared EMULATOR_AUDIO_SRC=$(EMULATOR_SRC)/audio @@@@ -27,14 +21,14 @@@@ OBJS = $(addsuffix .o, $(basename $(notd UNAME_S := $(shell uname -s) -CXXFLAGS = -I../ -I../../ +CXXFLAGS += -I../ -I../../ CXXFLAGS += -Wall -Wextra -Wformat -std=c++11 -DEMULATOR_BUILD=\"$(GIT_VERSION)\" DEBUG ?= 0 ifeq ($(DEBUG), 1) - CXXFLAGS +=-DDEBUG -g3 + CXXFLAGS +=-DDEBUG else - CXXFLAGS +=-DNDEBUG -O3 -flto + CXXFLAGS +=-DNDEBUG endif SANITIZE ?= 0 @ 1.2 log @gearboy: update to 3.3.0 All platforms: Many performance improvements. Several bug fixes. @ text @d1 1 a1 1 $NetBSD: patch-platforms_desktop-shared_Makefile.common,v 1.1 2020/06/02 13:24:32 nia Exp $ d5 1 a5 1 --- platforms/desktop-shared/Makefile.common.orig 2021-02-14 19:44:04.000000000 +0000 d14 1 a14 1 -GIT_VERSION := "$(shell git describe --abbrev=4 --dirty --always --tags)" d29 2 a30 1 CXXFLAGS +=-DDEBUG -g3 -fsanitize=address d32 1 a32 1 - CXXFLAGS +=-DNDEBUG -O3 d36 1 a36 28 LIBS = @@@@ -48,7 +42,7 @@@@ ifeq ($(UNAME_S), Linux) #LINUX LIBS += -lGL -lGLEW -ldl `sdl2-config --libs` CXXFLAGS += `sdl2-config --cflags` - CFLAGS = $(CXXFLAGS) + CFLAGS += $(CXXFLAGS) endif ifeq ($(UNAME_S), Darwin) #APPLE @@@@ -58,7 +52,7 @@@@ ifeq ($(UNAME_S), Darwin) #APPLE CXXFLAGS += `sdl2-config --cflags` CXXFLAGS += -I/usr/local/include -I/opt/local/include - CFLAGS = $(CXXFLAGS) + CFLAGS += $(CXXFLAGS) endif ifeq ($(findstring MINGW,$(UNAME_S)),MINGW) @@@@ -95,7 +89,7 @@@@ all: $(EXE) @@echo Build complete for $(ECHO_MESSAGE) $(EXE): $(OBJS) - $(CXX) -o $@@ $^ $(CXXFLAGS) $(LIBS) + $(CXX) -o $@@ $^ $(LDFLAGS) $(LIBS) clean: rm -f $(EXE) $(OBJS) @ 1.1 log @emulators: add gearboy Gearboy is a cross-platform Game Boy / GameBoy Color emulator written in C++. ## Features - Accurate CPU emulation, passes cpu_instrs.gb from blargg's tests. - Accurate instruction and memory timing, passes instr_timing.gb and mem_timing.gb from blargg's tests. - Supported cartridges: ROM, ROM + RAM, MBC1, MBC2, MBC3 + RTC, MBC5, HuC-1 and MBC1M (multicart). - Accurate LCD controller emulation with correct timings and priorities including mid-scanline effects. - Game Boy Color support. - LCD screen ghosting effect as seen in the original Game Boy. - LCD dot matrix effect. - Sound emulation using SDL Audio and Gb_Snd_Emu library. - Save battery powered RAM cartridges to file. - Save states. - Compressed rom support (ZIP). - Game Genie and GameShark cheat support. - Full debugger with disassembler, breakpoints, debug symbols, memory editor, IO inspector and and VRAM viewer including tiles, sprites, backgrounds and palettes. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- platforms/desktop-shared/Makefile.common.orig 2020-05-23 18:52:56.000000000 +0000 d7 13 a19 1 @@@@ -27,14 +27,14 @@@@ OBJS = $(addsuffix .o, $(basename $(notd d29 1 a29 2 - CXXFLAGS +=-DDEBUG -g3 + CXXFLAGS +=-DDEBUG d36 1 a36 1 @@@@ -48,7 +48,7 @@@@ ifeq ($(UNAME_S), Linux) #LINUX d45 1 a45 1 @@@@ -58,7 +58,7 @@@@ ifeq ($(UNAME_S), Darwin) #APPLE d54 1 a54 1 @@@@ -95,7 +95,7 @@@@ all: $(EXE) @