openbsd-ports/emulators/sdlmame/patches/patch-makefile
fgsch 4b3d575b5a Update to sdlmame 0.148.
With help and comments from dcoppa@ and benoit@.
Please note this requires a kernel with the MAXTSIZ bump committed earlier.
2013-01-31 22:27:36 +00:00

53 lines
1.5 KiB
Plaintext

$OpenBSD: patch-makefile,v 1.4 2013/01/31 22:27:36 fgsch Exp $
--- makefile.orig Sun Jan 20 20:15:29 2013
+++ makefile Sun Jan 20 20:15:29 2013
@@ -214,10 +214,10 @@ endif
# BIGENDIAN = 1
# uncomment next line to build expat as part of MAME build
-BUILD_EXPAT = 1
+# BUILD_EXPAT = 1
# uncomment next line to build zlib as part of MAME build
-BUILD_ZLIB = 1
+# BUILD_ZLIB = 1
# uncomment next line to build libflac as part of MAME build
BUILD_FLAC = 1
@@ -315,7 +315,7 @@ endif
# compiler, linker and utilities
AR = @ar
-CC = @gcc
+CC ?= @gcc
LD = @g++
MD = -mkdir$(EXE)
RM = @rm -f
@@ -364,7 +364,7 @@ NAME = $(TARGET)$(SUBTARGET)
endif
# fullname is prefix+name+suffix+suffix64+suffixdebug
-FULLNAME = $(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
+FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
# add an EXE suffix to get the final emulator name
EMULATOR = $(FULLNAME)$(EXE)
@@ -455,7 +455,7 @@ CPPONLYFLAGS =
# CFLAGS is defined based on C or C++ targets
# (remember, expansion only happens when used, so doing it here is ok)
-CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS)
+CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS)
# we compile C-only to C89 standard with GNU extensions
# we compile C++ code to C++98 standard with GNU extensions
@@ -482,7 +482,7 @@ CCOMFLAGS += -pg
endif
# add the optimization flag
-CCOMFLAGS += -O$(OPTIMIZE)
+#CCOMFLAGS += -O$(OPTIMIZE)
# add the error warning flag
ifndef NOWERROR