summaryrefslogtreecommitdiff
path: root/games/pacman
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-12-20 14:24:03 +0000
committerwiz <wiz@pkgsrc.org>2000-12-20 14:24:03 +0000
commitfd01bb368bb1a21a98b89ad0ca5f85992aa7ff20 (patch)
tree97a0b12bacb4ab7b65512aab2d6b7c1f061f6954 /games/pacman
parentfca91d195434acf678d95e260c26c2bfe4904425 (diff)
downloadpkgsrc-fd01bb368bb1a21a98b89ad0ca5f85992aa7ff20.tar.gz
Set IS_INTERACTIVE (for bulk builds) and bail out (for interactive builds)
if DISPLAY isn't set.
Diffstat (limited to 'games/pacman')
-rw-r--r--games/pacman/Makefile14
1 files changed, 13 insertions, 1 deletions
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"