summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-10-24 03:19:35 +0000
committerkris <kris@FreeBSD.org>2002-10-24 03:19:35 +0000
commitbe01cb2308e6acfc54e0e5fe939d9a73e18cb251 (patch)
treeb31af48ad3d7be3279889089b43d903d3811b6a4
parenta7e906f02ce35db3b0f7cc11951d016beeb55e22 (diff)
downloadFreeBSD-ports-be01cb2308e6acfc54e0e5fe939d9a73e18cb251.zip
FreeBSD-ports-be01cb2308e6acfc54e0e5fe939d9a73e18cb251.tar.gz
Fix build on -current (machine/soundcard.h -> sys/soundcard.h) and
respect CC and CFLAGS
-rw-r--r--emulators/darcnes/files/patch-aa11
-rw-r--r--emulators/darcnes/files/patch-ab35
2 files changed, 46 insertions, 0 deletions
diff --git a/emulators/darcnes/files/patch-aa b/emulators/darcnes/files/patch-aa
new file mode 100644
index 0000000..18290f5
--- /dev/null
+++ b/emulators/darcnes/files/patch-aa
@@ -0,0 +1,11 @@
+--- snd_unix.c.orig Wed Oct 23 20:11:53 2002
++++ snd_unix.c Wed Oct 23 20:12:07 2002
+@@ -23,7 +23,7 @@
+ #endif
+
+ #ifdef SYSTEM_FREEBSD
+-#include <machine/soundcard.h>
++#include <sys/soundcard.h>
+ #define SOUND_DEVICE "/dev/dsp"
+ #endif
+
diff --git a/emulators/darcnes/files/patch-ab b/emulators/darcnes/files/patch-ab
new file mode 100644
index 0000000..8202938
--- /dev/null
+++ b/emulators/darcnes/files/patch-ab
@@ -0,0 +1,35 @@
+--- Makefile.orig Tue Mar 27 16:51:41 2001
++++ Makefile Wed Oct 23 20:19:27 2002
+@@ -18,7 +18,7 @@
+
+ DEBUG=-g
+
+-OPTFLAGS=-O2 -fomit-frame-pointer
++OPTFLAGS=
+
+ BASE_CFLAGS=-Wall $(DEBUG) $(OPTFLAGS) $(C_ONLY) $(BYTE_ORDER) $(MACH_TYPES)
+ BASE_SFLAGS=-Wall $(DEBUG) $(OPTFLAGS)
+@@ -85,15 +85,14 @@
+ #
+ # fixup command variables
+ #
+-LOCAL_CC?=gcc
+-LOCAL_CXX?=g++
+-LOCAL_AS?=gcc
+-LOCAL_LD?=gcc
+-
+-CC=$(LOCAL_CC)
+-CXX=$(LOCAL_CC)
+-AS=$(LOCAL_AS)
+-LD=$(LOCAL_LD)
++CC?=cc
++LOCAL_CC=$(CC)
++CXX?=c++
++LOCAL_CXX=$(CXX)
++AS=$(CC)
++LOCAL_AS=$(AS)
++LD=$(CC)
++LOCAL_LD=$(LD)
+
+ ifndef CROSS_COMPILING
+ TARGET_CC=$(LOCAL_CC)
OpenPOWER on IntegriCloud