openbsd-ports/games/uhexen2/patches/patch-engine_hexen2_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_hexen2_Makefile,v 1.4 2020/06/08 21:15:19 edd Exp $
Disable internal timidity. Use standard optimisations.
Index: engine/hexen2/Makefile
--- engine/hexen2/Makefile.orig
+++ engine/hexen2/Makefile
@@ -136,7 +136,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
@@ -198,15 +198,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 =
@@ -405,6 +396,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