aboutsummaryrefslogtreecommitdiff
path: root/games/motogt
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
commit2b74a89bc8342f0b9b737c37d87737caf7b0ea1e (patch)
treec04604583d8be53b3ed7f10975be828c731f87cb /games/motogt
parent24315159daa0089f08acea4ba1b130fb6721ad5c (diff)
downloadports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.tar.gz
ports-2b74a89bc8342f0b9b737c37d87737caf7b0ea1e.zip
Notes
Diffstat (limited to 'games/motogt')
-rw-r--r--games/motogt/Makefile5
-rw-r--r--games/motogt/files/patch-src-MakeData.cpp10
2 files changed, 9 insertions, 6 deletions
diff --git a/games/motogt/Makefile b/games/motogt/Makefile
index 0d501e423ddd..a3182d3bac94 100644
--- a/games/motogt/Makefile
+++ b/games/motogt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= motogt
PORTVERSION= 20110505
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SF/motogt/
DISTNAME= MotoGT-${PORTVERSION}
@@ -16,7 +16,7 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 2D top-viewed motorcycle racing game
LIB_DEPENDS= sfml-system.1:${PORTSDIR}/devel/sfml \
- png.6:${PORTSDIR}/graphics/png
+ png15:${PORTSDIR}/graphics/png
LICENSE= GPLv2 CCbySA
LICENSE_COMB= multi
@@ -29,6 +29,7 @@ USE_ZIP= yes
BUILD_WRKSRC= ${WRKSRC}/src
MAKEFILE= Makefile.lnx
MAKE_JOBS_UNSAFE= yes
+CFLAGS+= -I${LOCALBASE}/include/libpng15
MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
SUB_FILES= motogt
diff --git a/games/motogt/files/patch-src-MakeData.cpp b/games/motogt/files/patch-src-MakeData.cpp
index d9ef4fa1299d..6f5cafff82cd 100644
--- a/games/motogt/files/patch-src-MakeData.cpp
+++ b/games/motogt/files/patch-src-MakeData.cpp
@@ -1,14 +1,16 @@
---- src/MakeData.cpp.orig 2011-01-10 20:40:30.000000000 +0300
-+++ src/MakeData.cpp 2011-09-26 23:15:04.000000000 +0400
-@@ -5,6 +5,7 @@
+--- src/MakeData.cpp.orig 2011-01-10 18:40:30.000000000 +0100
++++ src/MakeData.cpp 2012-05-03 20:21:33.000000000 +0200
+@@ -4,7 +4,9 @@
+ #include <cstdio>
#define PNG_DEBUG 3
#include <png.h>
++#include <pngpriv.h>
#include <fstream>
+#include <sys/stat.h>
#include "global.h"
#include "Config.h"
#include "Confirm.h"
-@@ -376,7 +377,12 @@
+@@ -376,7 +378,12 @@
}
fname[2]='0'+i;
fname[1]='0'+j;