blob: 80e9458f566f68261e29ec6875dfc3cdf2ac5def (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.19 2006/02/05 23:09:21 joerg Exp $
#
DISTNAME= quake2-0.3
PKGNAME= ${DISTNAME:S/quake2/quake2forge/}
PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.quakeforge.net/files/quake2forge/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.quakeforge.net/
COMMENT= Enhanced Quake II engine
USE_TOOLS+= gmake
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_BUILTIN.glu= yes
USE_BUILTIN.MesaLib= yes
BUILDLINK_TRANSFORM+= rm:-Werror
CONFIGURE_ARGS+= --program-transform-name='s/^quake2$$/quake2forge/'
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quake2forge
${INSTALL_DATA} ${WRKSRC}/docs/README* ${PREFIX}/share/doc/quake2forge
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${PREFIX}/share/doc/quake2forge
SUBST_CLASSES+= snd data
SUBST_STAGE.snd= post-patch
SUBST_FILES.snd= src/snd.c
SUBST_SED.snd= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
SUBST_MESSAGE.snd= "Fixing harcoded audio device."
SUBST_STAGE.data= post-patch
SUBST_FILES.data= configure
SUBST_SED.data= -e "s|PACKAGE=\'quake2\'|PACKAGE=\'${PKGBASE}\'|g"
SUBST_MESSAGE.data= "Fixing installation directories."
.include "../../mk/bsd.prefs.mk"
# Don't try to build the Sun Solaris sound module, it's broken.
.if !empty(OPSYS:MNetBSD) || !empty(OPSYS:MOpenBSD)
CONFIGURE_ENV+= ac_cv_header_sys_audioio_h=no
.endif
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|