summaryrefslogtreecommitdiff
path: root/games/dungeon/Makefile
blob: ea07b61833a1a7a1ad1fbe0aaa783f549dd8feac (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
# $NetBSD: Makefile,v 1.6 2015/08/18 07:31:08 wiz Exp $
#

DISTNAME=	dungeon-3.2b
PKGREVISION=	2
DISTFILES=	dungeon-gdt-glk.tar.gz \
		glkterm-080.tar.gz
CATEGORIES=	games
MASTER_SITES=	http://eblong.com/zarf/glk/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://eblong.com/zarf/glk/
COMMENT=	Classic game of Dungeon

# There really isn't any license in any of the source code or in the
# accompanying documentation, but the sources of many versions have
# been freely made available for many years with the assumption that
# the "No commercial use" comment following the copyright statement
# implies a license to use in non-commercial applications.  We'll adopt
# that implication here.

LICENSE=		dungeon-license
RESTRICTED=		No license to redistribute
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_SRC_ON_FTP=		${RESTRICTED}

WRKSRC=		${WRKDIR}
DATADIR=	${PREFIX}/share/dungeon

MAKE_FLAGS+=	DATADIR=${DATADIR}

PKG_OPTIONS_VAR=	PKG_OPTIONS.dungeon
PKG_SUPPORTED_OPTIONS=	dungeon-gdt

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

.if !empty(PKG_OPTIONS:Mdungeon-gdt)
MAKE_ENV+=	GDT_FLAG=-DHAVE_GDT
.endif

# Before we build the game itself, we need to build the glkterm library
BUILD_DIRS=	glkterm dungeon-gdt

INSTALLATION_DIRS+=	bin ${DATADIR}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/dungeon-gdt/dungeon ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/dungeon-gdt/dundat ${DESTDIR}${DATADIR}/

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"