blob: d7c194626edb27dd4877a9e174b21b798844e158 (
plain) (
blame)
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
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= tksol
PORTVERSION= 1.8.4
PORTREVISION= 2
CATEGORIES= games tk
MASTER_SITES= SUNSITE/games/solitaires
MAINTAINER= ports@FreeBSD.org
COMMENT= Version of the card game solitaire
LICENSE= GPLv2
RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
USES= shebangfix tar:tgz
SHEBANG_FILES= pictures/generate_mini_pictures
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
post-patch:
@${REINPLACE_CMD} -e \
's|^#/bin/sh|#!/bin/sh| ; \
s|/usr/local/lib/tksol|${DATADIR}| ; \
s|wish|wish8.4|' ${WRKSRC}/tksol
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tksol ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tksol.6 ${STAGEDIR}${MANPREFIX}/man/man6
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.xbm ${STAGEDIR}${DATADIR}
.for dir in cardbacks cards pictures
${TAR} -C ${WRKSRC} --exclude ".xvpics" -cf - ${dir} | \
${TAR} -C ${STAGEDIR}${DATADIR} --unlink -xf -
.endfor
.include <bsd.port.mk>
|