aboutsummaryrefslogtreecommitdiffstats
path: root/games
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
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')
-rw-r--r--games/xnibbles/Makefile32
-rw-r--r--games/xnibbles/files/patch-aa43
2 files changed, 32 insertions, 43 deletions
diff --git a/games/xnibbles/Makefile b/games/xnibbles/Makefile
index 98c73b8f314c..1e79f533b067 100644
--- a/games/xnibbles/Makefile
+++ b/games/xnibbles/Makefile
@@ -9,37 +9,37 @@ PORTNAME= xnibbles
PORTVERSION= 1.0.b3
CATEGORIES= games
MASTER_SITES= http://www.tjhsst.edu/xnibbles/
-DISTNAME= xnibbles-1.0BETA3
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/BETA/}
MAINTAINER= ports@FreeBSD.org
-ALL_TARGET= linux
-USE_GMAKE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
USE_X_PREFIX= yes
USE_XPM= yes
-WRKSRC= ${WRKDIR}/xnibbles
+USE_GMAKE= yes
+MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
+ALL_TARGET= linux
MAN6= xnibbles.6
-CFLAGS+= -I ${X11BASE}/include -L ${X11BASE}/lib
-
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
- @${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${PREFIX}/man/man6
+ ${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${MANPREFIX}/man/man6
@${MKDIR} ${PREFIX}/share/xnibbles/sounds
- @${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
+ ${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
@${MKDIR} ${PREFIX}/share/xnibbles/levels
- @if [ -f ${PREFIX}/share/xnibbles/levels/LEVELS ]; then \
- ${RM} ${PREFIX}/share/xnibbles/levels/LEVELS; \
- fi
+.if exists(${PREFIX}/share/xnibbles/levels/LEVELS)
+ @${RM} ${PREFIX}/share/xnibbles/levels/LEVELS
+.endif
@${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS
.for file in 001 002 003 004 005 006 007 008 009 010 011 012
@${ECHO} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS
- @${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
+ ${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
.endfor
@${MKDIR} ${PREFIX}/share/doc/xnibbles
- @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xnibbles
- @${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/xnibbles
- @${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xnibbles
+ ${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/xnibbles
+ ${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels
.include <bsd.port.mk>
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
+