summaryrefslogtreecommitdiff
path: root/games/xconq/Makefile
blob: 1da44f6c773efec73d487c5244fb53ed0bca9ef0 (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
# $NetBSD: Makefile,v 1.36 2010/02/14 08:17:11 dholland Exp $

DISTNAME=		xconq-7.4.1
PKGREVISION=		7
CATEGORIES=		games x11
MASTER_SITES=		ftp://sources.redhat.com/pub/xconq/

MAINTAINER=		kleink@NetBSD.org
HOMEPAGE=		http://sources.redhat.com/xconq/
COMMENT=		Xconq is a general strategy game system

PKG_DESTDIR_SUPPORT=	user-destdir

USE_X11BASE=		YES
USE_TOOLS+=		gmake makeinfo
GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--enable-alternate-scoresdir=${SCOREDIR}
CONFIGURE_ARGS+=	--with-tclconfig="${BUILDLINK_PREFIX.tcl}/lib"
CONFIGURE_ARGS+=	--with-tkconfig="${BUILDLINK_PREFIX.tk}/lib"

MAKE_ENV+=		LOCALBASE=${LOCALBASE:Q}
MAKE_FLAGS+=		mandir=${PREFIX:Q}/${PKGMANDIR:Q}		\
			infodir=${PREFIX:Q}/${PKGINFODIR:Q}
INFO_FILES=	# PLIST

# XXX SETGIDGAME should go away and the rest of these should come from
# the infrastructure.
SETGIDGAME=		yes
GAMEDIRMODE?=		775
GAMEDIR_PERMS?=		${ROOT_USER} ${GAMES_GROUP} ${GAMEDIRMODE}

SPECIAL_PERMS+=		bin/xconq ${SETGID_GAMES_PERMS}
SCOREDIR=		${VARBASE}/games/xconq/scores
REQD_DIRS_PERMS+=	${SCOREDIR} ${GAMEDIR_PERMS}

BUILD_DEFS+=	VARBASE SCOREDIR

post-build:
	cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV}			\
		${MAKE_PROGRAM} ${MAKE_FLAGS} info

post-install:
	cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} DESTDIR=${DESTDIR}	\
		${MAKE_PROGRAM} ${MAKE_FLAGS} install-info

.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"