freebsd-ports/games/magicor/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

69 lines
2 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= magicor
PORTVERSION= 1.1
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-source-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-data-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Old-school, puzzle game similar to Solomon's Key
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYGAME}
USES= python:2.7 shebangfix
SHEBANG_FILES= *.py
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= *
PORTDATA= *
DESKTOP_ENTRIES="Magicor" \
"Old-school, puzzle game similar to Solomon's Key" \
"" \
"${PORTNAME}" \
"Game;LogicGame;" \
false
OPTIONS_DEFINE= EDITOR DOCS
OPTIONS_DEFAULT=EDITOR
OPTIONS_SUB= yes
EDITOR_DESC= Enable editor
EDITOR_USE= gnome=pygtk2
post-patch:
@${REINPLACE_CMD} -e 's|###CONFIG_PATH###|${PREFIX}/etc/magicor/magicor.conf|' \
${WRKSRC}/Magicor.py
@${REINPLACE_CMD} -e 's|###CONFIG_PATH###|${PREFIX}/etc/magicor/magicor-editor.conf|' \
${WRKSRC}/Magicor-LevelEditor.py
@${REINPLACE_CMD} -e '1,1 s|/usr/bin/python|/usr/bin/env python|' \
${WRKSRC}/Magicor.py ${WRKSRC}/Magicor-LevelEditor.py
@${REINPLACE_CMD} -e 's|###SHARE_PATH###|${DATADIR}|' ${WRKSRC}/etc/*.conf
@${FIND} ${WRKSRC}/magicor -name "*.pyc" -delete
do-install:
@cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
@cd ${WRKSRC}/magicor && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/magicor/
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/magicor
${INSTALL_SCRIPT} ${WRKSRC}/Magicor.py ${STAGEDIR}${PREFIX}/bin/magicor
${INSTALL_DATA} ${WRKSRC}/etc/magicor.conf \
${STAGEDIR}${PREFIX}/etc/magicor/magicor.conf.sample
do-install-EDITOR-on:
${INSTALL_SCRIPT} ${WRKSRC}/Magicor-LevelEditor.py ${STAGEDIR}${PREFIX}/bin/magicor-editor
${INSTALL_DATA} ${WRKSRC}/etc/magicor-editor.conf \
${STAGEDIR}${PREFIX}/etc/magicor/magicor-editor.conf.sample
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>