freebsd-ports/games/motogt/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= motogt
PORTVERSION= 20110505
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/motogt/MotoGT1/
DISTNAME= MotoGT-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 2D top-viewed motorcycle racing game
LIB_DEPENDS= libsfml1-system.so:devel/sfml1 \
libpng.so:graphics/png
LICENSE= GPLv2 CC-BY-SA-3.0
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/doc/gpl.txt
LICENSE_FILE_CC-BY-SA-3.0= ${WRKSRC}/doc/cc-by-sa.txt
USES= gl localbase:ldflags zip
USE_GL= gl
BUILD_WRKSRC= ${WRKSRC}/src
MAKEFILE= Makefile.lnx
MAKE_JOBS_UNSAFE= yes
SUB_FILES= motogt
PLIST_FILES= bin/${PORTNAME} libexec/MotoGT.bin
PORTDATA= *
WRKSRC= ${WRKDIR}/MotoGT
post-patch:
@${REINPLACE_CMD} -e '/#include/ s|SFML|&1|' ${WRKSRC}/data/src/editor.cpp ${WRKSRC}/src/*.h
@${REINPLACE_CMD} -e 's|-lsfml|&1|g' ${WRKSRC}/src/Makefile.lnx
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/MotoGT.bin ${STAGEDIR}${PREFIX}/libexec/
${INSTALL_SCRIPT} ${WRKDIR}/motogt ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>