# Created by: Thomas Gellekum # $FreeBSD$ PORTNAME= tksol PORTVERSION= 1.8.4 PORTREVISION= 1 CATEGORIES= games tk MASTER_SITES= SUNSITE/games/solitaires EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Version of the card game solitaire LICENSE= GPLv2 RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 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