summaryrefslogtreecommitdiff
path: root/games/xsokoban/Makefile
blob: 825a2b8d978397fe635af3053820f6037fc52ebe (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.1.1.1 2009/04/08 16:31:56 drochner Exp $
#

DISTNAME=	xsokoban-3.3c
CATEGORIES=	games
MASTER_SITES=	http://www.cs.cornell.edu/andru/release/

MAINTAINER=	cheusov@tut.by
HOMEPAGE=	http://www.cs.cornell.edu/andru/release/
COMMENT=	Classic logical game

WRKSRC=		${WRKDIR}/xsokoban

GNU_CONFIGURE=	yes
USE_TOOLS+=	autoconf

PKG_DESTDIR_SUPPORT=	user-destdir

SAVEPATH=		${VARBASE}/games/xsokoban
SCOREFILE=		${SAVEPATH}/scores

CONFIGURE_ARGS+=	--datadir=${PREFIX}/share/xsokoban
CONFIGURE_ENV+=		X11BASE=${X11BASE}

# For removing setting SETGIDGAME from here pkgsrc should be fixed
SETGIDGAME=		yes

SPECIAL_PERMS=		bin/xsokoban ${SETGID_GAMES_PERMS}
OWN_DIRS_PERMS+=	${SAVEPATH} ${GAMEOWN} ${GAMEGRP} ${GAMEDIRMODE}

MAKE_FLAGS+=		INSTALL_PROGRAM=${INSTALL_PROGRAM:Q}
MAKE_FLAGS+=		INSTALL_DATA=${INSTALL_DATA:Q}
MAKE_FLAGS+=		INSTALL=${INSTALL:Q}
MAKE_FLAGS+=		INSTALL_MAN=${INSTALL_MAN:Q}

BUILD_TARGET=		xsokoban

CPPFLAGS+=		-DROOTDIR="\"${PREFIX}/share/xsokoban\""
CPPFLAGS+=		-DSAVEPATH="\"${SAVEPATH}\""
CPPFLAGS+=		-DSCOREPATH="\"${SCOREFILE}\""

AUTO_MKDIRS=		yes

AUTOCONF_REQD=		2.59

pre-configure:
	cd ${WRKSRC} && autoconf

.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"