# Created by: Jan Stocker # $FreeBSD$ PORTNAME= thudboard PORTVERSION= 1.8 PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://www.million.nl/file/ MAINTAINER= lme@FreeBSD.org COMMENT= The Discworld Boardgame Board RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter NO_WRKSUBDIR= yes USE_PYTHON= yes do-configure: @${SED} -e "s#%%PREFIX%%#${PREFIX}# ; s#%%PYTHON_CMD%%#${PYTHON_CMD}#" \ ${FILESDIR}/thudboard > ${WRKDIR}/thudboard.tmp do-build: @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} 2>/dev/null do-install: ${INSTALL_SCRIPT} ${WRKDIR}/thudboard.tmp ${PREFIX}/bin/thudboard @${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/*.pyc ${DATADIR} @${TAR} -C ${WRKSRC} -cf - docs koomvalley img | \ ${TAR} -C ${DATADIR} --unlink -xf - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR} @${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} @${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx .include