pkgsrc/games/clanbomber/Makefile
jlam a4bc16d30c I am a triple idiot. The only relevant variable that x11.buildlink.mk
redefines about which buildlink.mk files would care is BUILDLINK_X11_DIR,
which points to the location of the X11R6 hierarchy used during building.
If x11.buildlink.mk isn't included, then BUILDLINK_X11_DIR defaults to
${X11BASE} (set in bsd.pkg.mk), so its value is always safe to use.  Remove
the ifdefs surrounding the use of BUILDLINK_X11_DIR in tk/buildlink.mk and
revert changes to move x11.buildlink.mk before the other buildlink.mk files.
2001-10-24 22:10:43 +00:00

35 lines
1,010 B
Makefile

# $NetBSD: Makefile,v 1.12 2001/10/24 22:10:55 jlam Exp $
DISTNAME= clanbomber-1.01
PKGNAME= ${DISTNAME}nb1
CATEGORIES= games x11
MASTER_SITES= http://www.clanbomber.de/files/
MAINTAINER= root@garbled.net
HOMEPAGE= http://www.clanbomber.de/
COMMENT= Bomberman clone using the ClanLib graphics system
USE_BUILDLINK_ONLY= yes
USE_X11BASE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
# needs a valid X display to compile its datafiles
.ifndef DISPLAY
IS_INTERACTIVE= yes
.endif
pre-configure:
${ECHO} "#define BOMBERDATDIR \"${X11PREFIX}/share/clanbomber/clanbomber.dat\"" >> ${WRKSRC}/config.h.in
${ECHO} "#define BOMBERMAPS \"${X11PREFIX}/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 "../../graphics/clanlib/buildlink.mk"
.include "../../mk/x11.buildlink.mk"
.include "../../mk/bsd.pkg.mk"