mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
c6bb580daf
Which Way Is Up is a traditional and challenging 2D platformer game with a slight rotational twist. Help a mysterious big-eared salaryman named Guy find his keys in a labyrinth of dangers and bad dialogue. WWW: http://hectigo.net/puskutraktori/whichwayisup/ Author: Olli "Hectigo" Etuaho <admin[at]hectigo.net>
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# New ports collection makefile for: whichwayisup
|
|
# Date created: 14 August 2007
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= whichwayisup
|
|
PORTVERSION= 0.7.0
|
|
DISTVERSION= ${PORTVERSION:S/.//g}
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://hectigo.net/puskutraktori/whichwayisup/ CENKES
|
|
DISTNAME= ${PORTNAME}_b${DISTVERSION}
|
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
|
COMMENT= Platformer game with rotational twist
|
|
|
|
RUN_DEPENDS= py*-game>=1.7.1:${PORTSDIR}/devel/py-game
|
|
|
|
USE_PYTHON= yes
|
|
USE_ZIP= yes
|
|
PORTDOCS= README.txt changelog.txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/libdir =/s|=.*|= "${PYTHON_SITELIBDIR}/${PORTNAME}"|'\
|
|
${WRKSRC}/run_game.py
|
|
@${REINPLACE_CMD} -e '/data_dir =/s|data_py.*data.|"${DATADIR}"|'\
|
|
${WRKSRC}/lib/data.py
|
|
|
|
do-build:
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib/
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/lib/
|
|
@${TOUCH} ${WRKSRC}/data/music/.keep_me
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/data/&&${COPYTREE_SHARE} . ${DATADIR}/
|
|
@cd ${WRKSRC}/lib/&&${COPYTREE_SHARE} . ${PYTHON_SITELIBDIR}/${PORTNAME}/
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run_game.py ${PREFIX}/bin/${PORTNAME}
|
|
.ifndef NOPORTDOCS
|
|
@${INSTALL} -d ${DOCSDIR}/
|
|
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|