1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/misc/pypanda/Makefile
Pawel Pekala 2d515b2848 - Add staging support
- Use PYGAME macro
- Port is DATADIR, DOCSDIR safe - reflect this in pkg-plist
2014-06-13 10:27:53 +00:00

32 lines
841 B
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= pypanda
PORTVERSION= 0.6
PORTREVISION= 8
CATEGORIES= misc
MASTER_SITES= # none
MAINTAINER= ports@FreeBSD.org
COMMENT= Viewer for San Diego Zoo Pandacam written in Python
RUN_DEPENDS= ${PYGAME}
USE_PYTHON= yes
do-build:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${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 ${STAGEDIR}${PREFIX}/bin/pypanda
.include <bsd.port.mk>