diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-11 00:08:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-11 00:08:05 +0100 |
commit | 65ff3cc3bd9c3f8e718a67dfecf1f8215bf5d1d4 (patch) | |
tree | 541cbae0eb51d2fdb39d64b3d135d1a6f7994dc8 /games-roguelike/tomenet/files | |
parent | 0aad4cd3e3fe3db90904ffc51b35e4ff160b53c5 (diff) |
gentoo auto-resync : 11:06:2024 - 00:08:04
Diffstat (limited to 'games-roguelike/tomenet/files')
-rw-r--r-- | games-roguelike/tomenet/files/tomenet-4.9.1-disable-experimental.patch | 12 | ||||
-rw-r--r-- | games-roguelike/tomenet/files/tomenet-4.9.1-makefile.patch | 48 |
2 files changed, 60 insertions, 0 deletions
diff --git a/games-roguelike/tomenet/files/tomenet-4.9.1-disable-experimental.patch b/games-roguelike/tomenet/files/tomenet-4.9.1-disable-experimental.patch new file mode 100644 index 000000000000..02ee8bad8c90 --- /dev/null +++ b/games-roguelike/tomenet/files/tomenet-4.9.1-disable-experimental.patch @@ -0,0 +1,12 @@ +diff --git a/config.h b/config.h +index 6280af8f0..f8c8ddebf 100644 +--- a/config.h ++++ b/config.h +@@ -833,7 +833,6 @@ + /* + * Use the new meta scheme to do neater things + */ +-#define EXPERIMENTAL_META + #ifdef EXPERIMENTAL_META + /* Retrieve ping times for all servers listed on the meta server. - C. Blue + The number indicates the max number of server names we read (raw, ie duplicates included). diff --git a/games-roguelike/tomenet/files/tomenet-4.9.1-makefile.patch b/games-roguelike/tomenet/files/tomenet-4.9.1-makefile.patch new file mode 100644 index 000000000000..3c2a104a4d11 --- /dev/null +++ b/games-roguelike/tomenet/files/tomenet-4.9.1-makefile.patch @@ -0,0 +1,48 @@ +diff --git a/makefile b/makefile +index cd79e4d4d..4d3c5e53b 100644 +--- a/makefile ++++ b/makefile +@@ -224,7 +224,7 @@ CPP = cpp + #thing is, that the correctly transcribed URL will actually make tolua choke. + #So, -nostdinc will prevent the whole own comment blob of cpp to get generated + #in the first place, as we never asked for it: +-CPPFLAGS = -C -P -nostdinc ++CPPFLAGS = -C -P -nostdinc $(GENTOO_CPPFLAGS) + + # gcc variant: + #CPP = gcc +@@ -235,6 +235,21 @@ CPPFLAGS = -C -P -nostdinc + # For variations with X11 + X11BASE = /usr/X11R6 + ++# Defines ++ifdef USE_SDL ++CFLAGS += -DSOUND_SDL -I/usr/local/include/SDL2 -I/usr/include/SDL2 $(shell sdl-config --cflags) ++SDL_LIBS = $(shell sdl-config --libs) -lSDL2 -lSDL2_mixer ++endif ++ ++ifdef USE_X ++CFLAGS += -DUSE_X11 ++LIBS += -lX11 ++endif ++ ++CFLAGS += -Wall ++CFLAGS += -DUSE_GCU -D_XOPEN_SOURCE -D_DEFAULT_SOURCE -DMEXP=19937 -std=c99 ++LIBS += $(shell ${PKG_CONFIG} --libs ncurses) -lcrypt -lm ${SDL_LIBS} ++ + + # Account editor + ACCEDIT_LIBS = -lncurses -lcrypt +@@ -289,12 +304,10 @@ SERVER_EXTRA_LIBS = -lcrypt + + # With SDL2 + # With sdl2-config +-CFLAGS = -pipe -Wall -DUSE_GCU -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -std=c99 -D_DEFAULT_SOURCE -DACC32 -fPIE -fsigned-char -Wno-format-truncation + # Note: -fsigned-char is important for ARM64, as there 'char' is by default unsigned, while on x86/AM64 it is by default signed! + # With manually set prefix + #CFLAGS = -pipe -Wall -DUSE_X11 -DUSE_GCU -I${X11BASE}/include -D_XOPEN_SOURCE -D_BSD_SOURCE -DMEXP=19937 -std=c99 -DSOUND_SDL -I/usr/local/include/SDL2 -I/usr/include/SDL2 -D_REENTRANT -D_DEFAULT_SOURCE -DACC32 -fPIE -Wno-format-truncation + # With sdl2-config +-LIBS = -L/usr/pkg/lib -lncurses -lm + # With manually set prefix + #LIBS = -L${X11BASE}/lib -L/usr/pkg/lib -lX11 -lncurses -lm -L/usr/local/lib -L/usr/lib -pthread -lSDL2 -lSDL2_mixer + |