summaryrefslogtreecommitdiff
path: root/games/xblast/Makefile
blob: b556bc7abb8096605e7e986b02535e2428ab47bb (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $NetBSD: Makefile,v 1.31 2012/10/06 11:54:59 asau Exp $
#

DISTNAME=		xblast-2.10.4
PKGREVISION=		1
CATEGORIES=		games x11
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=xblast/}
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} \
			images-2005-01-06${EXTRACT_SUFX} \
			levels-2005-01-06${EXTRACT_SUFX} \
			models-2005-01-06${EXTRACT_SUFX} \
			musics-2005-01-06${EXTRACT_SUFX} \
			sounds${EXTRACT_SUFX}

MAINTAINER=		dsainty@NetBSD.org
HOMEPAGE=		http://xblast.sourceforge.net/
COMMENT=		2-6 player kill the other guy with bombs game. A real blast!
LICENSE=		gnu-gpl-v2 # or later

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--enable-sound
CONFIGURE_ARGS+=	--enable-SMPF
CONFIGURE_ARGS+=	--with-otherdatadir=${PREFIX}/share/xblast

PKG_OPTIONS_VAR=	PKG_OPTIONS.xblast
PKG_SUPPORTED_OPTIONS=	xblast-mini

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mxblast-mini)
# Use a 480x392 window instead of the default 960x784 window
CONFIGURE_ARGS+=	--enable-mini
.endif

SUBST_CLASSES+=		ossaudio
SUBST_STAGE.ossaudio=	pre-configure
SUBST_MESSAGE.ossaudio=	Linking ossaudio library
SUBST_FILES.ossaudio=	Makefile.in
SUBST_SED.ossaudio=	-e 's|xbsndsrv_LDADD =|& ${LIBOSSAUDIO}|'

SUBST_CLASSES+=		xbsndsrv
SUBST_STAGE.xbsndsrv=	pre-configure
SUBST_MESSAGE.xbsndsrv=	Qualify path to xbsndsrv
SUBST_FILES.xbsndsrv=	x11_sound.c
SUBST_SED.xbsndsrv=	-e 's|"xbsndsrv"|"${PREFIX}/bin/xbsndsrv"|'

INSTALLATION_DIRS=	${PKGMANDIR}/man6

post-extract:
	${MV} ${WRKDIR}/levels-2005-01-06/reconstruct?on2.xal \
	      ${WRKDIR}/levels-2005-01-06/reconstruction2.xal

pre-build:
	${MV} ${WRKDIR}/images-2005-01-06 ${WRKSRC}/image
	${MV} ${WRKDIR}/levels-2005-01-06 ${WRKSRC}/level
	${MV} ${WRKDIR}/models-2005-01-06 ${WRKSRC}/image/sprite
	${MV} ${WRKDIR}/sounds ${WRKSRC}/sounds
	${MV} ${WRKDIR}/musics-2005-01-06/* ${WRKSRC}/sounds

post-install:
	${INSTALL_MAN} ${WRKSRC}/xblast.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xblast.6

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../x11/libICE/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"