aboutsummaryrefslogtreecommitdiffstats
path: root/games/xnibbles/files
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-11-11 14:33:09 +0800
committerkevlo <kevlo@FreeBSD.org>2000-11-11 14:33:09 +0800
commitdfb4a8febcc2a154314a42ce56069974525c3fc5 (patch)
tree5e2efede6bb7883eec03626c26961ec2b984645a /games/xnibbles/files
parent31ab395db203a13c10136e7d519dbe4e289773af (diff)
downloadfreebsd-ports-gnome-dfb4a8febcc2a154314a42ce56069974525c3fc5.tar.gz
freebsd-ports-gnome-dfb4a8febcc2a154314a42ce56069974525c3fc5.tar.zst
freebsd-ports-gnome-dfb4a8febcc2a154314a42ce56069974525c3fc5.zip
- Support CXX/CXXFLAGS propelry
PR: 22745 Submitted by: Ports Fury
Diffstat (limited to 'games/xnibbles/files')
-rw-r--r--games/xnibbles/files/patch-aa43
1 files changed, 16 insertions, 27 deletions
diff --git a/games/xnibbles/files/patch-aa b/games/xnibbles/files/patch-aa
index ce00efb901e7..407b1326f7b9 100644
--- a/games/xnibbles/files/patch-aa
+++ b/games/xnibbles/files/patch-aa
@@ -1,39 +1,28 @@
---- 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++
+--- Makefile.orig Thu Feb 26 09:14:35 1998
++++ Makefile Wed Nov 8 22:45:42 2000
+@@ -25,10 +25,10 @@
-- # Directory for XNibbles specific data
-- # This must be set correctly at compile time
+ # Directory for XNibbles specific data
+ # This must be set correctly at compile time
- DATADIR = /usr/local/games/xnibbles
--
++ DATADIR = ${PREFIX}/share/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
+- PREFIX = /usr/local
++ PREFIX ?= /usr/local
# 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
+@@ -76,9 +76,9 @@
- # 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' \
+- CC=$(CC) LDFLAGS='-L/usr/X11R6/lib' \
- CFLAGS='-Wall -O2 $(SDEV) \
-+ CFLAGS+='-Wall $(SDEV) \
- -I/usr/X11R6/include -fwritable-strings \
+- -I/usr/X11R6/include -fwritable-strings \
++ CC=${CXX} LDFLAGS='-L${X11BASE}/lib' \
++ CFLAGS='${CXXFLAGS} $(SDEV) \
++ -I${X11BASE}/include -fwritable-strings \
$(JDEV) -DDATADIR=\"$(DATADIR)\"' \
xnibbles
+