2005-08-23 04:34:26 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2005/08/23 02:34:26 dmcmahill Exp $
|
1999-08-26 02:22:53 +02:00
|
|
|
#
|
|
|
|
|
2004-10-02 08:09:08 +02:00
|
|
|
DISTNAME= xscrabble-1.0
|
2005-08-23 04:34:26 +02:00
|
|
|
PKGREVISION= 2
|
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
|
|
|
|
2004-10-02 08:09:08 +02:00
|
|
|
MAINTAINER= tech-pkg@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
|
2005-08-23 04:34:26 +02:00
|
|
|
USE_PKGINSTALL= 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-08-23 04:34:26 +02:00
|
|
|
XSCRABBLE_GROUP?= games
|
|
|
|
PKG_GROUPS= ${XSCRABBLE_GROUP}
|
|
|
|
|
1999-08-26 02:22:53 +02:00
|
|
|
post-patch:
|
|
|
|
${SED} 's!/usr/local/lib!${PREFIX}/share/games/xscrabble!g' \
|
|
|
|
${WRKSRC}/XScrabble.ad > ${WRKSRC}/XScrabble
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/xscrab ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/games
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/games/xscrabble
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${PREFIX}/share/games/xscrabble
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${PREFIX}/share/games/xscrabble
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/xscrabble.scores ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
|
2005-08-23 04:34:26 +02:00
|
|
|
${CHOWN} ${BINOWN}:${XSCRABBLE_GROUP} ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
|
2000-01-02 04:14:03 +01:00
|
|
|
${CHMOD} 0664 ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
|
1999-08-26 02:22:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/XScrabble ${PREFIX}/lib/X11/app-defaults
|
2005-08-23 04:34:26 +02:00
|
|
|
@if [ ! -d /var/games ]; then \
|
|
|
|
${MKDIR} -p /var/games ; \
|
|
|
|
${CHMOD} 0775 /var/games ; \
|
|
|
|
fi
|
1999-08-26 02:22:53 +02:00
|
|
|
@if [ ! -f /var/games/xscrabble.scores ]; then \
|
|
|
|
${CP} -p ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist \
|
|
|
|
/var/games/xscrabble.scores ; \
|
|
|
|
fi
|
|
|
|
|
2004-03-08 00:33:04 +01:00
|
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
1999-08-26 02:22:53 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|