head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.40 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.38 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.36 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.34 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.32 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.30 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.28 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.26 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.24 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.22 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.20 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.18 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.16 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.14 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.12 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.10 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.8 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.6 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.4 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.2 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.2.0.8 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.6 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.4 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.2 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.1.0.8 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.10 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.6 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.4 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.2 pkgsrc-2019Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2021.06.19.07.23.31; author nia; state Exp; branches; next 1.2; commitid lR4uEizDRuijfIXC; 1.2 date 2020.05.14.19.35.59; author joerg; state Exp; branches; next 1.1; commitid hVdJhlD7SYTObf8C; 1.1 date 2019.01.02.13.24.29; author nia; state Exp; branches; next ; commitid 0X8SJYQHRQAR8d6B; desc @@ 1.3 log @libretro-mame2010: fix building on non-x86 non-powerpc use the "ARM" CPU yield code (actually portable C) on everything where there's not inline ASM. while here, comment patches, convert line endings to unix. @ text @$NetBSD: patch-Makefile,v 1.2 2020/05/14 19:35:59 joerg Exp $ Avoid overriding build settings. Fix build problems with newer compilers. --- Makefile.orig 2021-06-19 06:48:42.800581466 +0000 +++ Makefile @@@@ -57,14 +57,9 @@@@ LIBS = #------------------------------------------------- # start with empties for everything -CCOMFLAGS = -DDISABLE_MIDI -CONLYFLAGS = -COBJFLAGS = -CPPONLYFLAGS = +CCOMFLAGS += -DDISABLE_MIDI # LDFLAGS are used generally; LDFLAGSEMULATOR are additional # flags only used when linking the core emulator -LDFLAGS = -LDFLAGSEMULATOR = GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)" ifneq ($(GIT_VERSION)," unknown") @@@@ -145,15 +140,6 @@@@ ifeq ($(VRENDER),opengl) LIBS += -lGL endif LDFLAGS += $(SHARED) - NATIVELD = g++ - NATIVELDFLAGS = -Wl,--warn-common -lstdc++ - NATIVECC = g++ - NATIVECFLAGS = -std=gnu99 - CC_AS = gcc - CC = g++ - AR = @@ar - LD = g++ - CCOMFLAGS += $(PLATCFLAGS) -ffast-math LIBS += -lstdc++ -lpthread # Android @@@@ -656,7 +642,7 @@@@ DEFS += -DFLAC__NO_DLL # CFLAGS is defined based on C or C++ targets # (remember, expansion only happens when used, so doing it here is ok) -CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) +CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS) # we compile C-only to C89 standard with GNU extensions # we compile C++ code to C++98 standard with GNU extensions @@@@ -666,7 +652,7 @@@@ CONLYFLAGS += -ansi else CONLYFLAGS += -std=gnu89 endif -CPPONLYFLAGS += -x c++ -std=gnu++98 +CPPONLYFLAGS += -x c++ -std=gnu++11 -Wno-narrowing COBJFLAGS += -x objective-c++ # this speeds it up a bit by piping between the preprocessor/compiler/assembler @@@@ -676,7 +662,6 @@@@ ifeq ($(MDEBUG),1) CCOMFLAGS += -O0 -g else # add the optimization flag -CCOMFLAGS += -O$(OPTIMIZE) endif # add the error warning flag @ 1.2 log @Consistently build as C++11 source, but ignore narrow issues. Don't depend on ordering of pointers relative to zero. Avoid UDL. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.1 2019/01/02 13:24:29 nia Exp $ d4 1 d6 1 a6 1 --- Makefile.orig 2018-04-17 17:16:44.000000000 +0000 d8 58 a65 58 @@@@ -55,14 +55,9 @@@@ LIBS = #------------------------------------------------- # start with empties for everything -CCOMFLAGS = -DDISABLE_MIDI -CONLYFLAGS = -COBJFLAGS = -CPPONLYFLAGS = +CCOMFLAGS += -DDISABLE_MIDI # LDFLAGS are used generally; LDFLAGSEMULATOR are additional # flags only used when linking the core emulator -LDFLAGS = -LDFLAGSEMULATOR = GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)" ifneq ($(GIT_VERSION)," unknown") @@@@ -143,15 +138,6 @@@@ ifeq ($(VRENDER),opengl) LIBS += -lGL endif LDFLAGS += $(SHARED) - NATIVELD = g++ - NATIVELDFLAGS = -Wl,--warn-common -lstdc++ - NATIVECC = g++ - NATIVECFLAGS = -std=gnu99 - CC_AS = gcc - CC = g++ - AR = @@ar - LD = g++ - CCOMFLAGS += $(PLATCFLAGS) -ffast-math LIBS += -lstdc++ -lpthread # Android @@@@ -568,7 +554,7 @@@@ DEFS += -DFLAC__NO_DLL # CFLAGS is defined based on C or C++ targets # (remember, expansion only happens when used, so doing it here is ok) -CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) +CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS) # we compile C-only to C89 standard with GNU extensions # we compile C++ code to C++98 standard with GNU extensions @@@@ -578,7 +564,7 @@@@ CONLYFLAGS += -ansi else CONLYFLAGS += -std=gnu89 endif -CPPONLYFLAGS += -x c++ -std=gnu++98 +CPPONLYFLAGS += -x c++ -std=gnu++11 -Wno-c++11-narrowing COBJFLAGS += -x objective-c++ # this speeds it up a bit by piping between the preprocessor/compiler/assembler @@@@ -588,7 +574,6 @@@@ ifeq ($(MDEBUG),1) CCOMFLAGS += -O0 -g else # add the optimization flag -CCOMFLAGS += -O$(OPTIMIZE) endif # add the error warning flag @ 1.1 log @emulators/libretro-mame2010: Import version libretro-mame2010-20180417 Libretro is a simple but powerful development interface that allows for the easy creation of emulators, games and multimedia applications that can plug straight into any libretro-compatible frontend. This development interface is open to others so that they can run these pluggable emulator and game cores also in their own programs or devices. MAME is the Multiple Arcade Machine Emulator. This is a port of MAME 0.139 to libretro with backported improvements and is compatible with MAME 0.139 romsets. @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 @@@@ -55,14 +55,9 @@@@ LIBS = d23 1 a23 1 @@@@ -143,15 +138,6 @@@@ ifeq ($(VRENDER),opengl) d39 1 a39 1 @@@@ -568,7 +554,7 @@@@ DEFS += -DFLAC__NO_DLL d48 10 a57 1 @@@@ -588,7 +574,6 @@@@ ifeq ($(MDEBUG),1) @