freebsd-ports/games/farblazer/Makefile
Rusmir Dusko fd3a9ebe62 - Bump PORTREVISION
- Change master sites, add icon
- Remove leading article from COMMENT
- Transfer maintainership to games@ team
- Add license (LGPL21)
- Use PYGAME instead of PYTHON_SITELIBDIR
- Support STAGEDIR
- Add DOCS and Option
- Use files/farblazer.in instead of construct
- Add Desktop entry file
- Simplify installation handling
- Recreate patch with make makepatch
- Add WWW
- Recreate pkg-plist with make makeplist
2014-04-09 21:24:55 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= farblazer
PORTVERSION= 0.7
PORTREVISION= 9
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= games@FreeBSD.org
COMMENT= Originally based of StarBlazer on the Apple ][
LICENSE= LGPL21
RUN_DEPENDS= ${PYGAME}
USE_PYTHON= yes
PORTDOCS= README.txt THANKS.txt
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Farblazer" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
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/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>