aboutsummaryrefslogtreecommitdiff
path: root/games/passage
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2011-08-04 04:32:40 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2011-08-04 04:32:40 +0000
commit05ff564b196d9df75653db7f4de318a070f11158 (patch)
treef46af6cf1dd17868957815b84ddaf72bba1b6fda /games/passage
parent5e3c1308c606876befb85731e1b7dbe71f12462f (diff)
downloadports-05ff564b196d9df75653db7f4de318a070f11158.tar.gz
ports-05ff564b196d9df75653db7f4de318a070f11158.zip
Notes
Diffstat (limited to 'games/passage')
-rw-r--r--games/passage/Makefile12
-rw-r--r--games/passage/distinfo4
-rw-r--r--games/passage/files/patch-Makefile.all10
3 files changed, 13 insertions, 13 deletions
diff --git a/games/passage/Makefile b/games/passage/Makefile
index db01dfd285ad..68d78440138e 100644
--- a/games/passage/Makefile
+++ b/games/passage/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= passage
-PORTVERSION= 3
+PORTVERSION= 4
CATEGORIES= games
MASTER_SITES= SF/hcsoftware/Passage/v${PORTVERSION}
DISTNAME= Passage_v${PORTVERSION}_UnixSource
@@ -15,11 +15,13 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An experimental video game by Jason Rohrer
USE_SDL= sdl
+MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/gamma256/gameSource
post-patch:
- @${REINPLACE_CMD} -e 's|-lSDL||' ${WRKSRC}/Makefile.GnuLinux
+ @${REINPLACE_CMD} -e 's|^\(PLATFORM_LINK_FLAGS =\).*|\1 ${PTHREAD_LIBS}|' \
+ ${WRKSRC}/Makefile.GnuLinux
@${REINPLACE_CMD} -e 's|"graphics"|"${DATADIR}/graphics"|' \
${WRKSRC}/common.cpp
@${REINPLACE_CMD} -e 's|"music"|"${DATADIR}/music"|' \
@@ -31,10 +33,8 @@ do-configure:
cd ${WRKSRC} && ${CAT} Makefile.GnuLinux Makefile.all > Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/Passage ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/Passage ${PREFIX}/bin/
${MKDIR} ${DATADIR}
-.for d in graphics music settings
- cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}
-.endfor
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music settings" ${DATADIR}/
.include <bsd.port.mk>
diff --git a/games/passage/distinfo b/games/passage/distinfo
index b23acd9608f4..0428ca9b6a0c 100644
--- a/games/passage/distinfo
+++ b/games/passage/distinfo
@@ -1,2 +1,2 @@
-SHA256 (Passage_v3_UnixSource.tar.gz) = 67bf36415a8cde717184abb075112d3ad4495dcd9b032653bc3c7272b9f4a182
-SIZE (Passage_v3_UnixSource.tar.gz) = 424772
+SHA256 (Passage_v4_UnixSource.tar.gz) = c32fb893a5b91e7090237859367559e67c2fb394690c54723879cbd689227e0a
+SIZE (Passage_v4_UnixSource.tar.gz) = 557720
diff --git a/games/passage/files/patch-Makefile.all b/games/passage/files/patch-Makefile.all
index 109f9c150d5c..3463a7caf7cb 100644
--- a/games/passage/files/patch-Makefile.all
+++ b/games/passage/files/patch-Makefile.all
@@ -1,13 +1,13 @@
---- Makefile.all.orig 2007-12-11 21:44:49.000000000 +0300
-+++ Makefile.all 2008-04-23 20:47:45.000000000 +0400
+--- Makefile.all.orig 2010-05-24 01:03:11.000000000 +0400
++++ Makefile.all 2011-08-04 02:06:46.000000000 +0400
@@ -1,8 +1,8 @@
ROOT_PATH = ../..
--COMPILE = g++ ${PLATFORM_COMPILE_FLAGS} -Wall -g -I${ROOT_PATH} -c
+-COMPILE = g++ ${PLATFORM_COMPILE_FLAGS} -Wall -Wwrite-strings -Wchar-subscripts -Wparentheses -g -I${ROOT_PATH} -c
-LINK = g++ -I${ROOT_PATH}
-+COMPILE = ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --cflags` -Wall -I${ROOT_PATH} -c
-+LINK = ${CXX} `${SDL_CONFIG} --libs`
++COMPILE = ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --cflags` -Wall -Wwrite-strings -Wchar-subscripts -Wparentheses -I${ROOT_PATH} -c
++LINK = ${CXX} ${LDFLAGS} `${SDL_CONFIG} --libs`