aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/hatari
diff options
context:
space:
mode:
authorstefan <stefan@FreeBSD.org>2010-05-19 05:44:36 +0800
committerstefan <stefan@FreeBSD.org>2010-05-19 05:44:36 +0800
commit63e586fa2e7d7cfefe0c96b39f79c5568c3ecd2f (patch)
tree6916d40056d1bc71b3e9dd48cfd72459ac52885c /emulators/hatari
parent16cc33503f3095c2b89e394eb5907b35ca309038 (diff)
downloadfreebsd-ports-gnome-63e586fa2e7d7cfefe0c96b39f79c5568c3ecd2f.tar.gz
freebsd-ports-gnome-63e586fa2e7d7cfefe0c96b39f79c5568c3ecd2f.tar.zst
freebsd-ports-gnome-63e586fa2e7d7cfefe0c96b39f79c5568c3ecd2f.zip
Change order of includes so the port still builds fine if emulators/rtc is
installed. PR: ports/140731 Submitted by: Bojan Petrovic <bpetrovi@f.bg.ac.rs>
Diffstat (limited to 'emulators/hatari')
-rw-r--r--emulators/hatari/files/patch-Makefile.cnf.in22
-rw-r--r--emulators/hatari/files/patch-tools_hmsa_Makefile13
2 files changed, 35 insertions, 0 deletions
diff --git a/emulators/hatari/files/patch-Makefile.cnf.in b/emulators/hatari/files/patch-Makefile.cnf.in
new file mode 100644
index 000000000000..509502586a18
--- /dev/null
+++ b/emulators/hatari/files/patch-Makefile.cnf.in
@@ -0,0 +1,22 @@
+# This patch prevents shadowing of hatari's header
+# files by files in directories mentioned in X_CFLAGS.
+--- Makefile.cnf.in Sun Nov 22 01:43:31 2009 +0100
++++ Makefile.cnf.in Sun Nov 22 01:58:24 2009 +0100
+@@ -5,7 +5,7 @@
+ CC = @CC@
+
+ # Set flags passed to the compiler (e.g. optimization flags)
+-CFLAGS = @CFLAGS@ @X_CFLAGS@
++CFLAGS = @CFLAGS@
+
+ # Set flags passed to the preprocessor (e.g. -I<include dir>)
+ CPPFLAGS = @CPPFLAGS@
+@@ -30,7 +30,7 @@
+
+
+ # SDL-Library configuration (compiler flags and linker options)
+-SDL_CFLAGS = @SDL_CFLAGS@
++SDL_CFLAGS = @X_CFLAGS@ @SDL_CFLAGS@
+ SDL_LIBS = @SDL_LIBS@
+
+
diff --git a/emulators/hatari/files/patch-tools_hmsa_Makefile b/emulators/hatari/files/patch-tools_hmsa_Makefile
new file mode 100644
index 000000000000..f26982f5369a
--- /dev/null
+++ b/emulators/hatari/files/patch-tools_hmsa_Makefile
@@ -0,0 +1,13 @@
+# This patch prevents shadowing of hatari's header
+# files by files in directories mentioned in X_CFLAGS.
+--- tools/hmsa/Makefile Sun Nov 22 01:43:31 2009 +0100
++++ tools/hmsa/Makefile Sun Nov 22 01:59:13 2009 +0100
+@@ -8,7 +8,7 @@
+ OBJS = $(HMSA_OBJS) $(HATARI_OBJS:%.o=../../src/%.o)
+
+ # Additional include directories:
+-CPPFLAGS += $(SDL_CFLAGS) -I../.. -I../../src/includes -I../../src/uae-cpu
++CPPFLAGS += -I../.. -I../../src/includes -I../../src/uae-cpu $(SDL_CFLAGS)
+
+ all: hmsa
+