summaryrefslogtreecommitdiff
path: root/games/angband-x11/Makefile
blob: 0750288b4a48ab0c8c441b1f31290ef13741c844 (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
# $NetBSD: Makefile,v 1.28 2004/01/23 23:42:01 wiz Exp $
#

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

MAINTAINER=	root@garbled.net
HOMEPAGE=	http://thangorodrim.angband.org/
COMMENT=	Tolkien based variant of Moria for X11 displays

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

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

USE_BUILDLINK2=	# defined
USE_X11=	# defined
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 --prefix=${PREFIX}

.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
USE_PKGSRC_GCC=		# defined
.endif

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

.include "../../devel/ncurses/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"