summaryrefslogtreecommitdiffstats
path: root/games/ptkei/Makefile
blob: 2b71be6ad4d397d537e4478aa925a27329e00644 (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
# Created by: Daniel O'Connor <darius@dons.net.au>
# $FreeBSD$

PORTNAME=	ptkei
PORTVERSION=	1.18.1
PORTREVISION=	4
CATEGORIES=	games
MASTER_SITES=	http://www.lfmm.org/ptkei/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Python/Tk graphical client for Wolfpack Empire servers

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter \
		${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/py-Pmw

USE_PYTHON=	yes

NO_STAGE=	yes
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:
	${MKDIR} ${PREFIX}/share/ptkei
	${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${PREFIX}/share/ptkei --unlink -xf -
	${SED} -e "s#%%PREFIX%%#${PREFIX}# ; s#%%PYTHON_CMD%%#${PYTHON_CMD}#" \
		${FILESDIR}/ptkei > ${WRKDIR}/ptkei.tmp
	${INSTALL_SCRIPT} ${WRKDIR}/ptkei.tmp ${PREFIX}/bin/ptkei

.include <bsd.port.mk>
OpenPOWER on IntegriCloud