| @@ -1,56 +1,63 @@ | | | @@ -1,56 +1,63 @@ |
1 | # $NetBSD: Makefile,v 1.23 2011/01/13 13:37:50 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.24 2011/07/05 03:44:06 dholland Exp $ |
2 | | | 2 | |
3 | DISTNAME= quakeforge-0.5.5 | | 3 | DISTNAME= quakeforge-0.5.5 |
4 | PKGREVISION= 9 | | 4 | PKGREVISION= 10 |
5 | CATEGORIES= games | | 5 | CATEGORIES= games |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=quake/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=quake/} |
7 | | | 7 | |
8 | MAINTAINER= snj@NetBSD.org | | 8 | MAINTAINER= snj@NetBSD.org |
9 | HOMEPAGE= http://www.quakeforge.net/ | | 9 | HOMEPAGE= http://www.quakeforge.net/ |
10 | COMMENT= Improved Quake engine | | 10 | COMMENT= Improved Quake engine |
11 | | | 11 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 13 | |
14 | CONFIGURE_ARGS+= --with-cpp="${CPP} %d %i %o" | | 14 | CONFIGURE_ARGS+= --with-cpp="${CPP} %d %i %o" |
15 | CONFIGURE_ARGS+= --disable-ogg | | 15 | CONFIGURE_ARGS+= --disable-ogg |
16 | CONFIGURE_ARGS+= --disable-xmms | | 16 | CONFIGURE_ARGS+= --disable-xmms |
17 | GNU_CONFIGURE= YES | | 17 | GNU_CONFIGURE= YES |
18 | USE_LANGUAGES= c c++ | | 18 | USE_LANGUAGES= c c++ |
19 | USE_TOOLS+= bison gmake | | 19 | USE_TOOLS+= bison gmake |
20 | USE_LIBTOOL= YES | | 20 | USE_LIBTOOL= YES |
21 | | | 21 | |
22 | SUBST_CLASSES+= dsp | | 22 | SUBST_CLASSES+= dsp |
23 | SUBST_STAGE.dsp= post-patch | | 23 | SUBST_STAGE.dsp= post-patch |
24 | SUBST_MESSAGE.dsp= Adjusting sound device path. | | 24 | SUBST_MESSAGE.dsp= Adjusting sound device path. |
25 | SUBST_FILES.dsp= libs/audio/targets/snd_oss.c | | 25 | SUBST_FILES.dsp= libs/audio/targets/snd_oss.c |
26 | SUBST_SED.dsp= -e "s|/dev/dsp|${DEVOSSAUDIO}|" | | 26 | SUBST_SED.dsp= -e "s|/dev/dsp|${DEVOSSAUDIO}|" |
27 | | | 27 | |
| | | 28 | REPLACE_PYTHON+= tools/qfcc/source/qfpreqcc |
| | | 29 | |
28 | PKG_OPTIONS_VAR= PKG_OPTIONS.quakeforge | | 30 | PKG_OPTIONS_VAR= PKG_OPTIONS.quakeforge |
29 | PKG_SUPPORTED_OPTIONS= inet6 | | 31 | PKG_SUPPORTED_OPTIONS= inet6 |
30 | | | 32 | |
31 | .include "../../mk/bsd.options.mk" | | 33 | .include "../../mk/bsd.options.mk" |
32 | | | 34 | |
33 | .if !empty(PKG_OPTIONS:Minet6) | | 35 | .if !empty(PKG_OPTIONS:Minet6) |
34 | CONFIGURE_ARGS+= --with-ipv6 | | 36 | CONFIGURE_ARGS+= --with-ipv6 |
35 | .else | | 37 | .else |
36 | CONFIGURE_ARGS+= --without-ipv6 | | 38 | CONFIGURE_ARGS+= --without-ipv6 |
37 | .endif | | 39 | .endif |
38 | | | 40 | |
39 | PLIST_VARS+= sunaudio linux | | 41 | PLIST_VARS+= sunaudio linux |
40 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" | | 42 | .if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" |
41 | PLIST.sunaudio= yes | | 43 | PLIST.sunaudio= yes |
42 | .endif | | 44 | .endif |
43 | | | 45 | |
44 | .if ${OPSYS} == "Linux" | | 46 | .if ${OPSYS} == "Linux" |
45 | PLIST.linux= yes | | 47 | PLIST.linux= yes |
46 | .endif | | 48 | .endif |
47 | | | 49 | |
48 | INSTALLATION_DIRS= include/QF/GL include/QF/plugin include/QF/ruamoko/gui | | 50 | INSTALLATION_DIRS= include/QF/GL include/QF/plugin include/QF/ruamoko/gui |
49 | | | 51 | |
| | | 52 | .include "../../lang/python/application.mk" |
50 | .include "../../devel/SDL/buildlink3.mk" | | 53 | .include "../../devel/SDL/buildlink3.mk" |
51 | .include "../../devel/zlib/buildlink3.mk" | | 54 | .include "../../devel/zlib/buildlink3.mk" |
52 | .include "../../graphics/png/buildlink3.mk" | | 55 | .include "../../graphics/png/buildlink3.mk" |
53 | .include "../../x11/libXext/buildlink3.mk" | | 56 | .include "../../x11/libXext/buildlink3.mk" |
| | | 57 | .include "../../x11/libXxf86dga/buildlink3.mk" |
| | | 58 | .include "../../x11/libXxf86vm/buildlink3.mk" |
54 | .include "../../x11/xextproto/buildlink3.mk" | | 59 | .include "../../x11/xextproto/buildlink3.mk" |
| | | 60 | .include "../../x11/xf86vidmodeproto/buildlink3.mk" |
| | | 61 | .include "../../x11/xf86dgaproto/buildlink3.mk" |
55 | .include "../../mk/oss.buildlink3.mk" | | 62 | .include "../../mk/oss.buildlink3.mk" |
56 | .include "../../mk/bsd.pkg.mk" | | 63 | .include "../../mk/bsd.pkg.mk" |