summaryrefslogtreecommitdiff
path: root/games/frotz/patches/patch-aa
blob: d6c73ca374ce3a872bada06ad0f09609e67f32a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
$NetBSD: patch-aa,v 1.7 2002/10/29 17:09:06 dillo Exp $

--- Makefile.orig	Mon Oct 28 02:21:52 2002
+++ Makefile
@@ -1,7 +1,7 @@
 # Define your C compiler.  I recommend gcc if you have it.
 # MacOS users should use "cc" even though it's really "gcc".
 #
-CC = gcc
+CC ?= cc
 #CC = cc
 
 # Define your optimization flags.  Most compilers understand -O and -O2,
@@ -14,7 +14,7 @@
 #-malign-jumps=2
 
 # Define where you want Frotz installed.  Usually this is /usr/local
-PREFIX = /usr/local
+#PREFIX = /usr/local
 
 MAN_PREFIX = $(PREFIX)
 #MAN_PREFIX = /usr/local/share
@@ -24,7 +24,7 @@
 
 # Define where you want Frotz to look for frotz.conf.
 #
-CONFIG_DIR = /usr/local/etc
+CONFIG_DIR = ${PREFIX}/etc
 #CONFIG_DIR = /etc
 #CONFIG_DIR = /usr/pkg/etc
 #CONFIG_DIR =
@@ -37,18 +37,18 @@
 # Uncomment this if you have an OSS soundcard driver and want classical
 # Infocom sound support.
 #
-#SOUND_DEFS = -DOSS_SOUND
+SOUND_DEFS = -DOSS_SOUND
 
 # Uncomment this too if you're running BSD of some sort and are using
 # the OSS sound driver.
 #
-#SOUND_LIB = -lossaudio
+SOUND_LIB = ${LIBOSSAUDIO}
 
 # Define your sound device 
 # This should probably be a command-line/config-file option.
 #
 #SOUND_DEV = /dev/dsp
-#SOUND_DEV = /dev/sound
+SOUND_DEV = ${DEVOSSSOUND}
 #SOUND_DEV = /dev/audio
 
 # If your vendor-supplied curses library won't work, uncomment the
@@ -163,7 +163,7 @@
 $(NAME): $(NAME)-curses
 
 $(NAME)-curses:		soundcard.h  $(COMMON_TARGET) $(CURSES_TARGET)
-	$(CC) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \
+	$(CC) $(LDFLAGS) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \
 		$(SOUND_LIB)
 
 all:	$(NAME) d$(NAME)