1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/farblazer/Makefile
Antoine Brodin 1d00aa2b00 - Those ports fail to build with python3
- Add some explicit FLAVOR to dependencies where needed
2017-12-11 16:54:20 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= farblazer
PORTVERSION= 0.7
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= http://www.pygame.org/gamelets/games/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Originally based of StarBlazer on the Apple ][
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.txt
RUN_DEPENDS= ${PYGAME}
USES= python:2.7 shebangfix
SHEBANG_FILES= farblazer.py
NO_ARCH= yes
PORTDOCS= README.txt THANKS.txt
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Farblazer" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
OPTIONS_DEFINE= DOCS
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "code data" ${STAGEDIR}${DATADIR})
.for f in *.py *.pyc *.pyo
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>