blob: 7e7dd2b7cfed22f93fc9bfd39859686ee20b7470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.2 2000/12/20 14:24:03 wiz Exp $
DISTNAME= clanbomber-1.01
CATEGORIES= games x11
MASTER_SITES= http://www.clanbomber.de/files/
MAINTAINER= root@garbled.net
HOMEPAGE= http://www.clanbomber.de/
DEPENDS+= ClanLib>=0.4:../../graphics/clanlib
USE_X11BASE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
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"
|