summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz>2000-12-20 14:24:03 +0000
committerwiz <wiz>2000-12-20 14:24:03 +0000
commit53253c1833cc57e8e25de7939a5d57739aeeb97a (patch)
tree97a0b12bacb4ab7b65512aab2d6b7c1f061f6954 /games
parent4d6a4a9df6c4a09343941d513b46465a5458b12d (diff)
downloadpkgsrc-53253c1833cc57e8e25de7939a5d57739aeeb97a.tar.gz
Set IS_INTERACTIVE (for bulk builds) and bail out (for interactive builds)
if DISPLAY isn't set.
Diffstat (limited to 'games')
-rw-r--r--games/clanbomber/Makefile14
-rw-r--r--games/pacman/Makefile14
2 files changed, 26 insertions, 2 deletions
diff --git a/games/clanbomber/Makefile b/games/clanbomber/Makefile
index def4e4665c1..7e7dd2b7cfe 100644
--- a/games/clanbomber/Makefile
+++ b/games/clanbomber/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/12/15 07:42:32 garbled Exp $
+# $NetBSD: Makefile,v 1.2 2000/12/20 14:24:03 wiz Exp $
DISTNAME= clanbomber-1.01
CATEGORIES= games x11
@@ -17,8 +17,20 @@ LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${X11BASE}/include
MAKE_ENV+= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CFLAGS}"
+# needs a valid X display to compile its datafiles
+.ifndef DISPLAY
+IS_INTERACTIVE= yes
+.endif
+
pre-configure:
echo "#define BOMBERDATDIR \"${X11BASE}/share/clanbomber/clanbomber.dat\"" >> ${WRKSRC}/config.h.in
echo "#define BOMBERMAPS \"${X11BASE}/share/clanbomber/maps\"" >> ${WRKSRC}/config.h.in
+pre-build:
+ @if [ "${DISPLAY}" = "" ]; then \
+ ${ECHO} Please set the DISPLAY variable to a valid display; \
+ ${ECHO} before compiling ${PKGNAME}.; \
+ exit 1; \
+ fi;
+
.include "../../mk/bsd.pkg.mk"
diff --git a/games/pacman/Makefile b/games/pacman/Makefile
index 4cc9dbaabae..44b7e63411f 100644
--- a/games/pacman/Makefile
+++ b/games/pacman/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2000/12/15 04:55:25 garbled Exp $
+# $NetBSD: Makefile,v 1.8 2000/12/20 14:24:04 wiz Exp $
DISTNAME= Pacman-0.3-CVS-00-11-17
PKGNAME= Pacman-0.3
@@ -19,9 +19,21 @@ LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${X11BASE}/include
MAKE_ENV+= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CFLAGS}"
+# needs a valid X display to compile its datafiles
+.ifndef DISPLAY
+IS_INTERACTIVE= yes
+.endif
+
pre-configure:
cd ${WRKSRC} && autoconf
${SED} -e 's@/usr/share@${PREFIX}/share@' < ${WRKSRC}/Sources/config.h.in > ${WRKSRC}/foo
${MV} ${WRKSRC}/foo ${WRKSRC}/Sources/config.h.in
+pre-build:
+ @if [ "${DISPLAY}" = "" ]; then \
+ ${ECHO} Please set the DISPLAY variable to a valid display; \
+ ${ECHO} before compiling ${PKGNAME}.; \
+ exit 1; \
+ fi;
+
.include "../../mk/bsd.pkg.mk"