1999-11-26 19:18:53 +00:00
|
|
|
# New ports collection makefile for: ptkei
|
|
|
|
# Date created: 26 October 1999
|
|
|
|
# Whom: Daniel O'Connor <darius@dons.net.au>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 12:28:40 +00:00
|
|
|
PORTNAME= ptkei
|
2000-10-09 08:04:17 +00:00
|
|
|
PORTVERSION= 1.12
|
1999-11-26 19:18:53 +00:00
|
|
|
CATEGORIES= games
|
2000-10-09 08:04:17 +00:00
|
|
|
MASTER_SITES= ftp://www.empire.cx/pub/empire/clients/
|
1999-11-26 19:18:53 +00:00
|
|
|
|
|
|
|
MAINTAINER= darius@dons.net.au
|
|
|
|
|
2000-10-09 08:04:17 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
|
|
${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/pmw
|
1999-11-26 19:18:53 +00:00
|
|
|
|
2000-10-09 08:04:17 +00:00
|
|
|
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
|
1999-11-26 19:18:53 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-10-09 08:04:17 +00:00
|
|
|
${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
|
1999-11-26 19:18:53 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|