aboutsummaryrefslogtreecommitdiffstats
path: root/games/motogt
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-08-18 21:38:18 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-08-18 21:38:18 +0800
commitcf27568696564d16ca421dba0c0355d707c3d387 (patch)
tree2326e1baac0b92579640c4aa457d9cf29e0c4320 /games/motogt
parent5e25bfc524a129ba32c45c2752f24c4836534f75 (diff)
downloadfreebsd-ports-gnome-cf27568696564d16ca421dba0c0355d707c3d387.tar.gz
freebsd-ports-gnome-cf27568696564d16ca421dba0c0355d707c3d387.tar.zst
freebsd-ports-gnome-cf27568696564d16ca421dba0c0355d707c3d387.zip
- Switch from devel/sfml to devel/sfml1 in preparation to sfml update
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/