summaryrefslogtreecommitdiff
path: root/games/xmris/Makefile
blob: c1e396c802fb89a350d5c9063ed1a3f28ad1f00e (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
# $NetBSD: Makefile,v 1.18 2012/10/06 11:55:01 asau Exp $

DISTNAME=		xmris.4.0.5
PKGNAME=		xmris-4.05
PKGREVISION=		3
CATEGORIES=		games x11
MASTER_SITES=		http://www.planetfall.pwp.blueyonder.co.uk/xmris/
EXTRACT_SUFX=		.tgz

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.planetfall.pwp.blueyonder.co.uk/xmris/
COMMENT=		Version of the Mr Do video arcade game for X
LICENSE=		gnu-gpl-v2

USE_IMAKE=		yes
USE_GAMESGROUP=		yes
NO_INSTALL_MANPAGES=	yes
INSTALLATION_DIRS=	bin ${PKGMANDIR}/man6

BUILD_DEFS+=		VARBASE

SUBST_CLASSES+=		varbase
SUBST_STAGE.varbase=	pre-configure
SUBST_FILES.varbase=	Imakefile
SUBST_VARS.varbase=	VARBASE

post-install:
	${INSTALL_MAN} ${WRKSRC}/xmris.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xmris.6
	${LN} -fs xmris.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xmsit.6
	${INSTALL_MAN} ${WRKSRC}/xmred.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xmred.6

SPECIAL_PERMS+=		bin/xmris ${SETGID_GAMES_PERMS}
# require to write lock files
REQD_DIRS_PERMS+=	${VARBASE}/games/xmris ${GAMEDIR_PERMS}
REQD_FILES_PERMS+=	/dev/null ${VARBASE}/games/xmris/xmris.score ${GAMEDATA_PERMS}

.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"