1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/games/ptkei/Makefile
Maxim Sobolev 42bcbe7e1f - Update to 1.12 (maintainer);
- use USE_PYTHON (maintainer, sobomax);
- precompile all .py files being installed;
- make it working with python versions other that 1.52 by using Pmw python
  module from ports instead of port's own pre-compiled for python1.52 version;
- install files into ${PREFIX}/share/ptkei, not into ${PREFIX}/ptkei.

Submitted by:	maintainer
Improved by:	sobomax
2000-10-09 08:04:17 +00:00

34 lines
1.0 KiB
Makefile

# New ports collection makefile for: ptkei
# Date created: 26 October 1999
# Whom: Daniel O'Connor <darius@dons.net.au>
#
# $FreeBSD$
#
PORTNAME= ptkei
PORTVERSION= 1.12
CATEGORIES= games
MASTER_SITES= ftp://www.empire.cx/pub/empire/clients/
MAINTAINER= darius@dons.net.au
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/pmw
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}/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>