c26c8c8bd9
ThudBoard - The Discworld Boardgame Board ThudBoard is a computer application that can be used to play Thud battles without using the actual board. If you don't have a clue what this Thud thing is, take a look at the official Thud site at http://www.thudgame.com. Multiple battles can be stored, so you can play many games simultaneously without the onerous task of remembering where each individual piece was in this battle you have been playing with your cousin in XXXX over the last few years. WWW: http://www.million.nl/thudboard/ PR: 61387 Submitted by: Jan Stocker <Jan.Stocker@t-online.de> Approved by: erwin (mentor) (implicitly)
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# New ports collection makefile for: ThudBoard
|
|
# Date created: 04 Januar 2004
|
|
# Whom: Jan Stocker <Jan.Stocker@t-online.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= thudboard
|
|
PORTVERSION= 0.9.6
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.million.nl/file/
|
|
|
|
MAINTAINER= Jan.Stocker@t-online.de
|
|
COMMENT= The Discworld Boardgame Board
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
USE_PYTHON= yes
|
|
|
|
WRKSRC= ${WRKDIR}/thud
|
|
|
|
do-configure:
|
|
@${SED} -e "s#%%PREFIX%%#${PREFIX}# ; s#%%PYTHON_CMD%%#${PYTHON_CMD}#" \
|
|
${FILESDIR}/thudboard > ${WRKDIR}/thudboard.tmp
|
|
|
|
do-build:
|
|
@${FIND} ${WRKSRC} -name "*.pyc" | ${XARGS} ${RM}
|
|
@${FIND} ${WRKSRC} \( -type f -or -type l \) | ${XARGS} ${CHMOD} 644
|
|
@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} 2>/dev/null
|
|
|
|
do-install:
|
|
@${RM} -f ${WRKSRC}/battle.py.orig
|
|
@${MKDIR} ${DATADIR}
|
|
@${TAR} -C ${WRKSRC} --exclude="docs*" -cf - . | ${TAR} -C ${DATADIR} --unlink -xf -
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/thudboard.tmp ${PREFIX}/bin/thudboard
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${TAR} -C ${WRKSRC}/docs/ -cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
.endif
|
|
.include <bsd.port.mk>
|