summaryrefslogtreecommitdiff
path: root/games/angband-x11/Makefile
blob: 609969f2e97e7d190f206e096fade2ad4e8f040e (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
# $NetBSD: Makefile,v 1.46 2012/01/14 15:36:10 dholland Exp $
#

DISTNAME=	angband-3.0.3
PKGNAME=	angband-x11-3.0.3
PKGREVISION=	3
CATEGORIES=	games x11
MASTER_SITES=	# ftp://clockwork.dementia.org/angband/Source/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${SPOILERFILE}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.thangorodrim.net/
COMMENT=	Tolkien based variant of Moria for X11 displays

PKG_DESTDIR_SUPPORT=	destdir

CONFLICTS=	angband-tty-[0-9]*

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

USE_TOOLS+=	pax
USE_GAMESGROUP=	yes

INCOMPAT_CURSES=	NetBSD-1.5*-* NetBSD-1.6[-_.]*-*
INCOMPAT_CURSES+=	NetBSD-1.6[A-M]-*

SPOILERFILE=	angband-spoilers.tar.gz

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-setgid=${GAMES_GROUP}

.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+=		2.95.3
.endif

SUBST_CLASSES+=		070
SUBST_STAGE.070=	pre-configure
SUBST_MESSAGE.070=	Fixing file permissions.
SUBST_FILES.070=	lib/save/Makefile.in lib/bone/Makefile.in
SUBST_SED.070=		-e 's,070,770,g'

INSTALLATION_DIRS+=	share/games/angband/lib/info

# add spoiler files and clean up a bit
post-install:
	cd ${DESTDIR}${PREFIX}/share/games/angband/lib/info/ && \
		 pax -O -zrf ${DISTDIR}/${SPOILERFILE}
	${CHGRP} -R ${GAMES_GROUP} ${DESTDIR}${PREFIX}/share/games/angband
	${FIND} ${DESTDIR}${PREFIX}/share/games/angband -name delete.me -exec ${RM} {} \;

BUILDLINK_DEPMETHOD.libXt?=	build

.include "../../devel/ncurses/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"