summaryrefslogtreecommitdiff
path: root/games/miscom/files/patch-aa
blob: da5262094fd04f71438f705e451e2bea028c0f68 (plain) (blame)
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
--- Makefile.orig	Sat Mar 15 15:37:42 1997
+++ Makefile	Sat Jun 19 16:10:46 1999
@@ -1,7 +1,7 @@
 # makefile for miscom
 
 # needs an ANSI C compiler - gcc is fine
-CC=gcc
+#CC=gcc
 
 # change these if you want anything anywhere else
 #
@@ -12,7 +12,7 @@
 MANDIR=/usr/man/man6
 
 # sounds/* go here:
-DATADIR=/usr/games/lib/miscom
+DATADIR=${PREFIX}/share/miscom
 
 # about `-DMORE_SOUNDBUF':
 # With the new version of the sound driver in 1.3.x/2.0.x kernels,
@@ -24,11 +24,13 @@
 #
 # comment the line out if you don't want sound support, or if
 # you're compiling on a non-Linux box.
+.if ${MACHINE_ARCH} == "i386"
 SOUNDOPT=-DSOUNDSDIR=\"$(DATADIR)\" -DSOUND_SUPPORT -DMORE_SOUNDBUF
+.endif
 
 # compiler opts - shouldn't need changing. the `-I' is there just
 # in case you're using an older ncurses.
-CFLAGS=-O -I/usr/include/ncurses $(SOUNDOPT)
+CFLAGS+= $(SOUNDOPT)
 
 # how to link your curses lib. `-lncurses' on Linux (and newer BSD?),
 # `-lcurses -ltermcap' on trad. BSD, `-lcurses -ltermlib' on SysV,