openbsd-ports/games/uhexen2/patches/patch-engine_hexenworld_client_Makefile
edd 35698f718e games/uhexen2: Update to version 1.5.9.
Sent in from Paul Valencia, with some minor tweaks from myself.

Tested by thfr@

Thanks both.
2020-06-08 21:15:19 +00:00

43 lines
1.0 KiB
Plaintext

$OpenBSD: patch-engine_hexenworld_client_Makefile,v 1.4 2020/06/08 21:15:19 edd Exp $
Disable internal timidity. Use standard optimisations.
Index: engine/hexenworld/client/Makefile
--- engine/hexenworld/client/Makefile.orig
+++ engine/hexenworld/client/Makefile
@@ -129,7 +129,7 @@ USE_CODEC_XMP=no
USE_CODEC_UMX=no
# either timidity (preferred) or wildmidi (both possible
# but not needed nor meaningful)
-USE_CODEC_TIMIDITY=yes
+USE_CODEC_TIMIDITY=no
USE_CODEC_WILDMIDI=no
# which library to use for mp3 decoding: mad or mpg123
MP3LIB=mad
@@ -157,15 +157,6 @@ endif
CPUFLAGS=$(CPU_X86)
CFLAGS += -Wall
-CFLAGS += $(CPUFLAGS)
-ifdef DEBUG
-CFLAGS += -g
-else
-# optimization flags
-CFLAGS += -O2 -DNDEBUG=1 -ffast-math
-# NOTE: -fomit-frame-pointer is broken with ancient gcc versions!!
-CFLAGS += -fomit-frame-pointer
-endif
CPPFLAGS=
LDFLAGS =
@@ -366,6 +357,9 @@ ifeq ($(TARGET_OS),unix)
# common unix:
NASMFLAGS=-f elf -d_NO_PREFIX
+ifeq ($(USE_X86_ASM),yes)
+LDFLAGS += -Wl,-znotext
+endif
ifneq ($(X11BASE),)
INCLUDES+= -I$(X11BASE)/include