1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/games/xnibbles/files/patch-aa
Steve Price a17a1365ec A simple X11 snake game.
PR:		5905
Submitted by:	Andrey Zakhvatov <andy@icc.surw.chel.su>
1998-03-15 20:38:42 +00:00

40 lines
1.1 KiB
Plaintext

--- Makefile Thu Feb 26 00:14:35 1998
+++ /home/andy/tmp/wrk/Makefile Tue Mar 3 00:00:39 1998
@@ -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 = 1
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