freebsd-ports/games/whichwayisup/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

61 lines
1.7 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= whichwayisup
PORTVERSION= 0.7.9
PORTREVISION= 9
CATEGORIES= games python
MASTER_SITES= http://www.oletus.fi/static/whichwayisup/ \
SF/nemysisfreebsdp/games/${PORTNAME}/:icons
DISTFILES= ${PORTNAME}_b${DISTVERSION:S/.//g}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= python
EXTRACT_ONLY= ${PORTNAME}_b${DISTVERSION:S/.//g}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Platformer game with rotational twist
LICENSE= GPLv2
RUN_DEPENDS= ${PYGAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= dos2unix python zip
USE_PYTHON= py3kplist
DOS2UNIX_REGEX= .*.[^pt][^nt][^gf]
INSTALLS_ICONS= yes
PORTDOCS= README.txt changelog.txt
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Which Way Is Up" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${REINPLACE_CMD} \
-e 's|libdir =.*|libdir = "${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}"| ; \
s|/usr/bin/env python|${PYTHON_CMD}|' \
${WRKSRC}/run_game.py
@${REINPLACE_CMD} -e 's|(data_py.*|("${DATADIR}"))|' \
${WRKSRC}/lib/data.py
@${FIND} ${WRKSRC} -name "*.bak" -delete -or -name "*.orig" -delete
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
@${TOUCH} ${WRKSRC}/data/music/.keep_me
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/run_game.py \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
@(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME})
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>