Initial import of QuakeForge 0.5.4.
[pkgsrc.git] / games / quakeforge / Makefile
1 # $NetBSD$
2
3 DISTNAME=               quakeforge-0.5.4
4 CATEGORIES=             games
5 MASTER_SITES=           ${MASTER_SITE_SOURCEFORGE:=quake/}
6
7 MAINTAINER=             snj@NetBSD.org
8 HOMEPAGE=               http://www.quakeforge.net/
9 COMMENT=                Improved Quake engine
10
11 BUILD_DEPENDS+=         bison-[0-9]*:../../devel/bison
12
13 CONFIGURE_ARGS+=        --with-cpp="${CPP} %d %i %o"
14 GNU_CONFIGURE=          YES
15 USE_BUILDLINK3=         YES
16 USE_GNU_TOOLS+=         make
17 USE_LIBTOOL=            YES
18 USE_X11=                YES
19 YACC=                   ${LOCALBASE}/bin/bison
20
21 SUBST_CLASSES+=         dsp
22 SUBST_STAGE.dsp=        post-patch
23 SUBST_MESSAGE.dsp=      Adjusting sound device path.
24 SUBST_FILES.dsp=        libs/audio/targets/snd_oss.c
25 SUBST_SED.dsp=          -e "s|/dev/dsp|${DEVOSSAUDIO}|"
26
27 BUILD_DEFS+=            USE_INET6
28
29 .include "../../mk/bsd.prefs.mk"
30 .if !(defined(USE_INET6) && ${USE_INET6} == "YES")
31 CONFIGURE_ARGS+=        --without-ipv6
32 .endif
33
34 .include "../../devel/SDL/buildlink3.mk"
35 .include "../../mk/ossaudio.buildlink3.mk"
36 .include "../../mk/bsd.pkg.mk"