aboutsummaryrefslogtreecommitdiffstats
path: root/games/motogt
diff options
context:
space:
mode:
Diffstat (limited to 'games/motogt')
-rw-r--r--games/motogt/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/games/motogt/Makefile b/games/motogt/Makefile
index 9ba7ec54817d..2397475b01ef 100644
--- a/games/motogt/Makefile
+++ b/games/motogt/Makefile
@@ -3,7 +3,7 @@
PORTNAME= motogt
PORTVERSION= 20110505
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/motogt/
DISTNAME= MotoGT-${PORTVERSION}
@@ -11,7 +11,7 @@ DISTNAME= MotoGT-${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 2D top-viewed motorcycle racing game
-LIB_DEPENDS= libsfml-system.so:${PORTSDIR}/devel/sfml \
+LIB_DEPENDS= libsfml1-system.so:${PORTSDIR}/devel/sfml1 \
libpng.so:${PORTSDIR}/graphics/png
LICENSE= GPLv2 CCbySA
@@ -35,6 +35,10 @@ 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/