freebsd-ports/games/goonies/Makefile

40 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= goonies
2016-10-10 00:53:51 +02:00
PORTVERSION= 1.4.1528
CATEGORIES= games
2016-10-10 00:53:51 +02:00
MASTER_SITES= http://braingames.jorito.net/goonies/downloads/ \
http://mirror.amdmi3.ru/distfiles/
2016-10-10 00:53:51 +02:00
DISTNAME= ${PORTNAME}.src_${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Remake of the 8 bit classic game 'The Goonies'
2016-10-10 00:53:51 +02:00
LICENSE= NONE
USES= gmake tar:tgz
USE_SDL= sdl mixer image
2016-10-10 00:53:51 +02:00
USE_GL= gl glu
2016-10-10 00:53:51 +02:00
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDATA= *
post-patch:
@${REINPLACE_CMD} -e 's|sound/|${DATADIR}/sound/|g' \
2016-10-10 00:53:51 +02:00
${WRKSRC}/src/SoundManager.cpp
@${REINPLACE_CMD} -e 's|graphics/|${DATADIR}/graphics/|g; \
s|"graphics"|"${DATADIR}/graphics"|' \
${WRKSRC}/src/GLTManager.cpp ${WRKSRC}/src/TheGooniesApp.cpp
@${REINPLACE_CMD} -e 's|maps/|${DATADIR}/maps/|g' \
${WRKSRC}/src/TheGoonies.cpp
do-install:
2016-10-10 00:53:51 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@cd ${WRKSRC} && ${COPYTREE_SHARE} 'graphics maps sound' ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/build/linux/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/build/linux/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.mk>