summaryrefslogtreecommitdiff
path: root/games/xnibbles/files/patch-aa
blob: ce00efb901e767def8ba4fddeefcfb485a01d565 (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
36
37
38
39
--- Makefile.orig	Wed Feb 25 18:14:35 1998
+++ Makefile	Sun Jun 20 19:14:23 1999
@@ -23,12 +23,14 @@
   # Compiler to use (C++ compiler _please_)
   CC = g++
 
-  # Directory for XNibbles specific data
-  # This must be set correctly at compile time
-  DATADIR = /usr/local/games/xnibbles
-
   # Prefix to find bin and man directories for installation
+ifndef PREFIX
   PREFIX  = /usr/local
+endif
+
+  # Directory for XNibbles specific data
+  # This must be set correctly at compile time
+  DATADIR = $(PREFIX)/share/xnibbles
 
   # Install program
   INSTALL = /usr/bin/install
@@ -40,7 +42,7 @@
 ### LINUX ONLY OPTIONS ###
 
   # Requires kernel sound support, change from 0 to 1 if you want it
-  SOUND = 0
+  #SOUND = 0
   SOUNDDEV = /dev/dsp
 
   # Requires kernel joystick support, change from 0 to 1 if you want it
@@ -77,7 +79,7 @@
 linux:
 	$(MAKE) OBJECTS=$(OBJECTS) \
 	CC=$(CC) LDFLAGS='-L/usr/X11R6/lib' \
-	CFLAGS='-Wall -O2 $(SDEV) \
+	CFLAGS+='-Wall $(SDEV) \
 	-I/usr/X11R6/include -fwritable-strings \
 	$(JDEV) -DDATADIR=\"$(DATADIR)\"' \
 	xnibbles