blob: 5bbbba19136f22152bcfb77219113c451816edb4 (
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
|
# $NetBSD: Makefile,v 1.14 2005/08/23 02:34:26 dmcmahill Exp $
#
DISTNAME= xscrabble-1.0
PKGREVISION= 2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= X version of the popular board game, for 1 to 4 players
WRKSRC= ${WRKDIR}/xscrabble
USE_IMAKE= YES
USE_PKGINSTALL= YES
INSTALLATION_DIRS= bin lib/X11/app-defaults
XSCRABBLE_GROUP?= games
PKG_GROUPS= ${XSCRABBLE_GROUP}
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
${CHOWN} ${BINOWN}:${XSCRABBLE_GROUP} ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
${CHMOD} 0664 ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
${INSTALL_DATA} ${WRKSRC}/XScrabble ${PREFIX}/lib/X11/app-defaults
@if [ ! -d /var/games ]; then \
${MKDIR} -p /var/games ; \
${CHMOD} 0775 /var/games ; \
fi
@if [ ! -f /var/games/xscrabble.scores ]; then \
${CP} -p ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist \
/var/games/xscrabble.scores ; \
fi
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|