# Created by: Dmitry Marakasov # $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_GPLv20= ${WRKSRC}/doc/gpl.txt LICENSE_FILE_CC-BY-SA-3.0= ${WRKSRC}/doc/cc-by-sa.txt USES= 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