diff options
-rw-r--r-- | misc/pypanda/Makefile | 16 | ||||
-rw-r--r-- | misc/pypanda/pkg-plist | 18 |
2 files changed, 16 insertions, 18 deletions
diff --git a/misc/pypanda/Makefile b/misc/pypanda/Makefile index 9aa7206d7bf7..36eb0e242683 100644 --- a/misc/pypanda/Makefile +++ b/misc/pypanda/Makefile @@ -10,24 +10,22 @@ MASTER_SITES= # none MAINTAINER= ports@FreeBSD.org COMMENT= Viewer for San Diego Zoo Pandacam written in Python -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game +RUN_DEPENDS= ${PYGAME} USE_PYTHON= yes -NO_STAGE= yes do-build: ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} do-install: - @${MKDIR} ${DATADIR} -.for ext in py pyc pyo jpg png - ${INSTALL_DATA} ${WRKSRC}/*.${ext} ${DATADIR} -.endfor - @${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} *.py *.pyc *.pyo *.jpg *.png \ + ${STAGEDIR}${DATADIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} @printf "#!/bin/sh\ncd ${DATADIR} && \ exec ${PYTHON_CMD} ${DATADIR}/pypanda.py\n" > ${WRKDIR}/pypanda.sh - @${INSTALL_SCRIPT} ${WRKDIR}/pypanda.sh ${PREFIX}/bin/pypanda + ${INSTALL_SCRIPT} ${WRKDIR}/pypanda.sh ${STAGEDIR}${PREFIX}/bin/pypanda .include <bsd.port.mk> diff --git a/misc/pypanda/pkg-plist b/misc/pypanda/pkg-plist index 4e247203da3a..56df0e8c0ceb 100644 --- a/misc/pypanda/pkg-plist +++ b/misc/pypanda/pkg-plist @@ -1,10 +1,10 @@ bin/pypanda -share/doc/pypanda/README -share/pypanda/camdown.jpg -share/pypanda/camrefresh.jpg -share/pypanda/pypanda.png -share/pypanda/pypanda.py -share/pypanda/pypanda.pyc -share/pypanda/pypanda.pyo -@dirrm share/pypanda -@dirrm share/doc/pypanda +%%DOCSDIR%%/README +%%DATADIR%%/camdown.jpg +%%DATADIR%%/camrefresh.jpg +%%DATADIR%%/pypanda.png +%%DATADIR%%/pypanda.py +%%DATADIR%%/pypanda.pyc +%%DATADIR%%/pypanda.pyo +@dirrm %%DATADIR%% +@dirrm %%DOCSDIR%% |