Ports/SDL2-GNUBoy: Update SDL2-GNUBoy to version 1.2.1

This commit is contained in:
EWouters 2022-04-01 05:04:15 +02:00 committed by Brian Gianforcaro
parent f37d2e2d1c
commit 7fb1711a83
3 changed files with 15 additions and 14 deletions

View file

@ -189,7 +189,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`scummvm`](scummvm/) | ScummVM | 2.5.1 | https://www.scummvm.org/ |
| [`SDL_sound`](SDL_sound/) | SDL_sound (Abstract soundfile decoder) | | https://github.com/icculus/SDL_sound |
| [`SDL2`](SDL2/) | Simple DirectMedia Layer (SDL2) | | https://github.com/SerenityOS/SDL |
| [`SDL2-GNUBoy`](SDL2-GNUBoy/) | SDL2 GNUBoy | 1.2 | https://github.com/AlexOberhofer/SDL2-GNUBoy |
| [`SDL2-GNUBoy`](SDL2-GNUBoy/) | SDL2 GNUBoy | 1.2.1 | https://github.com/AlexOberhofer/SDL2-GNUBoy |
| [`SDL2_gfx`](SDL2_gfx/) | SDL2\_gfx (Graphics primitives add-on for SDL2) | 1.0.4 | https://sourceforge.net/projects/sdl2gfx/ |
| [`SDL2_image`](SDL2_image/) | SDL2\_image (Image loading add-on for SDL2) | 2.0.5 | https://www.libsdl.org/projects/SDL_image/ |
| [`SDL2_mixer`](SDL2_mixer/) | SDL2\_mixer (audio mixer add-on for SDL2) | 2.0.4 | https://www.libsdl.org/projects/SDL_mixer/ |

View file

@ -1,8 +1,8 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=SDL2-GNUBoy
version=1.2
version=1.2.1
useconfigure=false
files="https://github.com/AlexOberhofer/SDL2-GNUBoy/archive/refs/tags/v${version}.tar.gz SDL2-GNUBoy-${version}.tar.gz 7d00a80e4b6bbb4c388b1ea0a34daca5f90fba574f09915c5135431f81091c8a"
files="https://github.com/AlexOberhofer/SDL2-GNUBoy/archive/refs/tags/v${version}.tar.gz SDL2-GNUBoy-${version}.tar.gz d8b729aa88747301ed39514ad9dc857b842332ac87242993881e15125af1be20"
auth_type=sha256
depends=("SDL2")

View file

@ -1,8 +1,8 @@
diff --git a/makefile b/makefile
index 427d696..653a5d3 100644
index 8730b6c..bc1fefb 100644
--- a/makefile
+++ b/makefile
@@ -1,20 +1,58 @@
@@ -1,25 +1,55 @@
-.PHONY: all
-.PHONY: clean
+prefix = ${DESTDIR}/usr/local
@ -12,7 +12,7 @@ index 427d696..653a5d3 100644
-.PHONY: linux
-linux:
- make -f makefile.linux
- rm -f sys/*/*.o src/*.o
- rm -f sys/*/*.o src/*.o lib/*/*.o
+LD = $(CC)
+AS = $(CC)
+INSTALL = /usr/bin/install -c
@ -20,17 +20,21 @@ index 427d696..653a5d3 100644
-.PHONY: windows
-windows:
- make -f makefile.windows
- rm -f sys/*/*.o src/*.o
- rm -f sys/*/*.o src/*.o lib/*/*.o
+CFLAGS = -std=c99 -Wall -O3 -I./include
+LDFLAGS = $(CFLAGS) -s -lSDL2
+ASFLAGS = $(CFLAGS)
-.PHONY: mingw
-mingw:
- make -f makefile.mingw
- rm -f sys/*/*.o src/*.o lib/*/*.o
+TARGETS = sdl2gnuboy
-.PHONY: osx
-osx:
- make -f makefile.osx
- rm -f sys/*/*.o src/*.o
+TARGETS = sdl2gnuboy
+
- rm -f sys/*/*.o src/*.o lib/*/*.o
+SYS_DEFS = -DIS_LITTLE_ENDIAN -DIS_LINUX -DSOUND
+SYS_OBJS = sys/nix/nix.o
+SYS_INCS = -I./sys/nix
@ -71,9 +75,6 @@ index 427d696..653a5d3 100644
+ $(INSTALL) -m 755 $(TARGETS) $(bindir)
clean:
- rm -f *gnuboy sdl2gnuboy.exe mac-sdl2gnuboy gmon.out *.o sys/*.o sys/*/*.o src/*.o
- rm -f *gnuboy sdl2gnuboy.exe mac-sdl2gnuboy gmon.out *.o sys/*.o lib/*/*.o sys/*/*.o src/*.o
\ No newline at end of file
+ rm -f *gnuboy sdl2gnuboy.exe gmon.out *.o sys/*.o sys/*/*.o $(OBJS)
+
+
+