summaryrefslogtreecommitdiff
path: root/games/angband/Makefile.common
blob: fbddb234565eb022cc0f4ad62bd132d3164c507a (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.common,v 1.3 2021/08/31 08:23:14 nia Exp $
# used by games/angband-sdl/Makefile
# used by games/angband/Makefile

DISTNAME=	angband-4.2.3
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=angband/}
GITHUB_PROJECT=	angband
GITHUB_TAG=	${PKGVERSION_NOREV}

HOMEPAGE=	https://rephial.org/
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	autoconf automake aclocal autoheader
USE_TOOLS+=	gmake

GNU_CONFIGURE=	yes

DISTINFO_FILE=	${.CURDIR}/../../games/angband/distinfo
PATCHDIR=	${.CURDIR}/../../games/angband/patches

# Installs executables to /games by default.
CONFIGURE_ARGS+=	--bindir=${PREFIX}/bin

# Mostly game data...
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/share

CONFIGURE_ARGS+=	--without-x

SUBST_CLASSES+=		nc
SUBST_STAGE.nc=		pre-configure
SUBST_MESSAGE.nc=	Fixing the ncursesw version number.
SUBST_FILES.nc+=	acinclude.m4
SUBST_SED.nc+=		-e 's|ncursesw5|ncursesw6|g'

pre-configure:
	cd ${WRKSRC} && ./autogen.sh

.include "../../devel/ncursesw/buildlink3.mk"