pkgsrc/games/clanbomber/Makefile
jlam 63fc151cb9 Use x11.buildlink.mk instead of USE_X11. Also convert hard-coded references
to ${X11BASE} in the header and library search paths into references to
${LOCALBASE}/share/x11-links.  These packages should now be strongly-
buildlinked regardless of whether xpkgwedge is installed.

Changes well-tested on NetBSD-1.5X/i386 with and without xpkgwedge and
lightly-tested on NetBSD-1.5.1/alpha without xpkgwedge.
2001-08-29 22:41:00 +00:00

35 lines
1,010 B
Makefile

# $NetBSD: Makefile,v 1.10 2001/08/29 22:41:10 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"