diff options
author | wiz <wiz> | 2000-12-20 14:24:03 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-12-20 14:24:03 +0000 |
commit | fff572e06efa35d80f434ad7453fff0bf76fed22 (patch) | |
tree | 97a0b12bacb4ab7b65512aab2d6b7c1f061f6954 /games | |
parent | de6dd68fd96981b474a5ea8fb71015e1fde42ad5 (diff) | |
download | pkgsrc-fff572e06efa35d80f434ad7453fff0bf76fed22.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/Makefile | 14 | ||||
-rw-r--r-- | games/pacman/Makefile | 14 |
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" |