summaryrefslogtreecommitdiffstats
path: root/games/thudboard/Makefile
blob: 706eac47a016fa6e88af2f3d2b9e7dcc57368da7 (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
# New ports collection makefile for:    ThudBoard
# Date created:         		04 Januar 2004
# Whom:                 		Jan Stocker <Jan.Stocker@t-online.de>
#
# $FreeBSD$
#

PORTNAME=	thudboard
PORTVERSION=	1.8
CATEGORIES=	games
MASTER_SITES=	http://www.million.nl/file/

MAINTAINER=	lme@FreeBSD.org
COMMENT=	The Discworld Boardgame Board

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/_tkinter.so:${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 <bsd.port.mk>
OpenPOWER on IntegriCloud