2012-10-06 13:54:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.24 2012/10/06 11:55:03 asau Exp $
|
1999-08-26 02:22:53 +02:00
|
|
|
#
|
|
|
|
|
2004-10-02 08:09:08 +02:00
|
|
|
DISTNAME= xscrabble-1.0
|
2012-05-03 11:55:29 +02:00
|
|
|
PKGREVISION= 7
|
1999-08-26 02:22:53 +02:00
|
|
|
CATEGORIES= games x11
|
2004-10-02 08:09:08 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
1999-08-26 02:22:53 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= X version of the popular board game, for 1 to 4 players
|
1999-08-26 02:22:53 +02:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/xscrabble
|
2000-08-24 01:14:21 +02:00
|
|
|
USE_IMAKE= YES
|
1999-08-26 02:22:53 +02:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin lib/X11/app-defaults
|
|
|
|
|
2005-10-07 12:20:49 +02:00
|
|
|
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'
|
2005-08-23 04:34:26 +02:00
|
|
|
|
2005-10-07 12:20:49 +02:00
|
|
|
MAKE_DIRS= ${VARBASE}/games
|
|
|
|
EGDIR= ${PREFIX}/share/games/xscrabble
|
2008-03-04 07:59:03 +01:00
|
|
|
|
2005-10-07 12:20:49 +02:00
|
|
|
SETGIDGAME= yes
|
2008-03-04 07:59:03 +01:00
|
|
|
CONF_FILES_PERMS= ${EGDIR}/xscrabble.scores.dist \
|
|
|
|
${VARBASE}/games/xscrabble.scores \
|
|
|
|
${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
|
|
|
|
SPECIAL_PERMS= bin/xscrab ${SETGID_GAMES_PERMS}
|
1999-08-26 02:22:53 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-04 07:59:03 +01:00
|
|
|
${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
|
1999-08-26 02:22:53 +02:00
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
1999-08-26 02:22:53 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|