aboutsummaryrefslogtreecommitdiff
path: root/games/ptkei/Makefile
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-10-09 08:04:17 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-10-09 08:04:17 +0000
commit42bcbe7e1f5616eadbac1e293ac399475139081d (patch)
treec5e3c66c4376d5312039869b74b1e5c2ca430ad2 /games/ptkei/Makefile
parent94655d598baeb555e120e44c4a234ac70416df20 (diff)
downloadports-42bcbe7e1f5616eadbac1e293ac399475139081d.tar.gz
ports-42bcbe7e1f5616eadbac1e293ac399475139081d.zip
Notes
Diffstat (limited to 'games/ptkei/Makefile')
-rw-r--r--games/ptkei/Makefile30
1 files changed, 16 insertions, 14 deletions
diff --git a/games/ptkei/Makefile b/games/ptkei/Makefile
index 444f23b00c3d..3aff218e4ef6 100644
--- a/games/ptkei/Makefile
+++ b/games/ptkei/Makefile
@@ -6,26 +6,28 @@
#
PORTNAME= ptkei
-PORTVERSION= 1.10
+PORTVERSION= 1.12
CATEGORIES= games
-MASTER_SITES= http://www.cse.buffalo.edu/~koconnor/ptkei/download/
+MASTER_SITES= ftp://www.empire.cx/pub/empire/clients/
MAINTAINER= darius@dons.net.au
-RUN_DEPENDS= python:${PORTSDIR}/lang/python
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
+ ${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/pmw
-NO_BUILD= yes
+USE_PYTHON= 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}/ptkei
- ${CP} -r ${WRKSRC}/* ${PREFIX}/ptkei
- ${SED} -e "s#%%PREFIX%%#${PREFIX}#" <${FILESDIR}/ptkei > ${PREFIX}/bin/ptkei
- ${CHMOD} -R 644 ${PREFIX}/ptkei
- ${CHMOD} 755 ${PREFIX}/ptkei
- ${CHMOD} 755 ${PREFIX}/ptkei/src
- ${CHMOD} 755 ${PREFIX}/ptkei/scripts
- ${CHMOD} 755 ${PREFIX}/ptkei/doc
- ${CHMOD} 755 ${PREFIX}/ptkei/doc/pics
- ${CHMOD} 755 ${PREFIX}/bin/ptkei
+ ${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>