[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / xscrabble

File: [cvs.NetBSD.org] / pkgsrc / games / xscrabble / Makefile (download)

Revision 1.25, Sun Jan 20 08:15:00 2019 UTC (4 years ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, HEAD
Changes since 1.24: +2 -2 lines

SETGIDGAME -> USE_GAMESGROUP

# $NetBSD: Makefile,v 1.25 2019/01/20 08:15:00 dholland Exp $
#

DISTNAME=	xscrabble-1.0
PKGREVISION=	7
CATEGORIES=	games x11
MASTER_SITES=	${MASTER_SITE_LOCAL}

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	X version of the popular board game, for 1 to 4 players

WRKSRC=		${WRKDIR}/xscrabble
USE_IMAKE=	YES

INSTALLATION_DIRS=	bin lib/X11/app-defaults

SUBST_CLASSES+=		xscrabble
SUBST_FILES.xscrabble=	XScrabble.ad
SUBST_STAGE.xscrabble=	pre-configure
SUBST_SED.xscrabble=	-e 's,/usr/local/lib/xscrabble\.scores,${VARBASE}/games/xscrabble.scores,g'
SUBST_SED.xscrabble+=	-e 's,/usr/local/lib,${PREFIX}/share/games/xscrabble,g'

MAKE_DIRS=		${VARBASE}/games
EGDIR=			${PREFIX}/share/games/xscrabble

USE_GAMESGROUP=		yes
CONF_FILES_PERMS=	${EGDIR}/xscrabble.scores.dist \
			${VARBASE}/games/xscrabble.scores \
			${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
SPECIAL_PERMS=		bin/xscrab ${SETGID_GAMES_PERMS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/xscrab ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games/xscrabble
	${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${DESTDIR}${EGDIR}/
	${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${DESTDIR}${EGDIR}/
	${INSTALL_DATA} ${WRKSRC}/xscrabble.scores \
		${DESTDIR}${EGDIR}/xscrabble.scores.dist
	${INSTALL_DATA} ${WRKSRC}/XScrabble.ad \
		${DESTDIR}${PREFIX}/lib/X11/app-defaults/XScrabble

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