From d934827bf44b7cfcf6711964418148fa60877668 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Nov 2020 22:39:15 +0000 Subject: gentoo resync : 25.11.2020 --- .../xrick/files/xrick-021212-Makefile.patch | 30 +++++++++++++++++++ .../xrick/files/xrick-021212-fno-common.patch | 34 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 games-arcade/xrick/files/xrick-021212-Makefile.patch create mode 100644 games-arcade/xrick/files/xrick-021212-fno-common.patch (limited to 'games-arcade/xrick/files') diff --git a/games-arcade/xrick/files/xrick-021212-Makefile.patch b/games-arcade/xrick/files/xrick-021212-Makefile.patch new file mode 100644 index 000000000000..2911f4715d45 --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-Makefile.patch @@ -0,0 +1,30 @@ +--- a/Makefile ++++ b/Makefile +@@ -71,10 +71,8 @@ + all: + @echo "ROOTDIR=$(ROOTDIR)" > Makefile.global + @echo "XOBJ=$(XOBJ)" >> Makefile.global +- @echo "CFLAGS=-g -ansi -pedantic -Wall -W -O2 -I $(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global +- @echo "LDFLAGS=-lz $(shell sdl-config --libs)" >> Makefile.global +- @echo "CC=gcc" >> Makefile.global +- @echo "CPP=gcc -E" >> Makefile.global ++ @echo "CFLAGS+=-pedantic -Wall -I$(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global ++ @echo "LIBS+=-lz $(shell sdl-config --libs)" >> Makefile.global + $(MAKE) -C src all + + clean: +--- a/src/Makefile ++++ b/src/Makefile +@@ -40,10 +40,10 @@ + all: $(TARGET) + + $(TARGET): $(OBJECTS) $(XOBJ) +- $(CC) $(OBJECTS) $(XOBJ) $(LDFLAGS) -o $(TARGET) ++ $(CC) $(LDFLAGS) $(OBJECTS) $(XOBJ) -o $(TARGET) $(LIBS) + + %.o: %.c +- $(CC) $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ + + xrick.res: xrick.rc + windres $< -O coff -o $@ diff --git a/games-arcade/xrick/files/xrick-021212-fno-common.patch b/games-arcade/xrick/files/xrick-021212-fno-common.patch new file mode 100644 index 000000000000..d3c05c30dbef --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-fno-common.patch @@ -0,0 +1,34 @@ +--- a/include/img.h ++++ b/include/img.h +@@ -27,7 +27,7 @@ + U8 *pixels; + } img_t; + +-img_t *IMG_SPLASH; ++extern img_t *IMG_SPLASH; + + #endif + +--- a/src/dat_snd.c ++++ b/src/dat_snd.c +@@ -19,14 +19,14 @@ + + sound_t *WAV_WAA; + sound_t *WAV_BOMB; +-sound_t *WAV_BULLET; +-sound_t *WAV_WALK; +-sound_t *WAV_JUMP; ++extern sound_t *WAV_BULLET; ++extern sound_t *WAV_WALK; ++extern sound_t *WAV_JUMP; + sound_t *WAV_TING; +-sound_t *WAV_BOMBSHHT; +-sound_t *WAV_BONUS; ++extern sound_t *WAV_BOMBSHHT; ++extern sound_t *WAV_BONUS; + sound_t *WAV_SHHT; +-sound_t *WAV_BOX; ++extern sound_t *WAV_BOX; + sound_t *WAV_DDDING; + + #endif /* ENABLE_SOUND */ -- cgit v1.2.3