diff options
author | miwi <miwi@FreeBSD.org> | 2007-10-30 21:43:25 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-10-30 21:43:25 +0800 |
commit | c6031f0e329cd2bcafebac07efc9b107fb1e7c54 (patch) | |
tree | 1f43f6399e5f2a84a12c9e932e7830e30722cc58 /games/flobopuyo | |
parent | a8bd74175f7327b73a178aef083053f12a0838de (diff) | |
download | freebsd-ports-gnome-c6031f0e329cd2bcafebac07efc9b107fb1e7c54.tar.gz freebsd-ports-gnome-c6031f0e329cd2bcafebac07efc9b107fb1e7c54.tar.zst freebsd-ports-gnome-c6031f0e329cd2bcafebac07efc9b107fb1e7c54.zip |
- Fix build on amd64/gcc42
PR: 117649
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
Approved by: portmgr (pav)
Diffstat (limited to 'games/flobopuyo')
-rw-r--r-- | games/flobopuyo/Makefile | 8 | ||||
-rw-r--r-- | games/flobopuyo/files/patch-IosVector.cpp | 10 | ||||
-rw-r--r-- | games/flobopuyo/files/patch-PuyoGame.cpp | 11 |
3 files changed, 22 insertions, 7 deletions
diff --git a/games/flobopuyo/Makefile b/games/flobopuyo/Makefile index 36ac936ce642..6c292bbb6dc6 100644 --- a/games/flobopuyo/Makefile +++ b/games/flobopuyo/Makefile @@ -20,12 +20,6 @@ USE_BISON= build USE_GMAKE= yes USE_SDL= sdl mixer image -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" && ${OSVERSION} >= 700000 -BROKEN= Doesn't build -.endif - post-patch: @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/Makefile @@ -34,4 +28,4 @@ post-patch: @${REINPLACE_CMD} -e 's|^INSTALL_DATADIR=.*$$|INSTALL_DATADIR=${DATADIR}|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|^INSTALL_BINDIR=.*$$|INSTALL_BINDIR=${PREFIX}/bin|' ${WRKSRC}/Makefile -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/flobopuyo/files/patch-IosVector.cpp b/games/flobopuyo/files/patch-IosVector.cpp new file mode 100644 index 000000000000..fe406550f522 --- /dev/null +++ b/games/flobopuyo/files/patch-IosVector.cpp @@ -0,0 +1,10 @@ +--- IosVector.cpp.orig 2007-10-30 13:24:55.000000000 +0100 ++++ IosVector.cpp 2007-10-30 13:25:29.000000000 +0100 +@@ -102,6 +102,6 @@ + void IosVector::dumpVector() const {
+ fprintf(stderr, "Size: %d\n", getSize());
+ for (int i = 0, j = getSize() ; i < j ; i++)
+- fprintf(stderr, "elt[%d]=%d ", i, (int)getElementAt(i));
++ fprintf(stderr, "elt[%d]=%p ", i, getElementAt(i));
+ fprintf(stderr, "\n");
+ }
diff --git a/games/flobopuyo/files/patch-PuyoGame.cpp b/games/flobopuyo/files/patch-PuyoGame.cpp new file mode 100644 index 000000000000..244798c65fb4 --- /dev/null +++ b/games/flobopuyo/files/patch-PuyoGame.cpp @@ -0,0 +1,11 @@ +--- PuyoGame.cpp.orig 2007-10-30 13:27:05.000000000 +0100 ++++ PuyoGame.cpp 2007-10-30 13:28:39.000000000 +0100 +@@ -45,7 +45,7 @@ + return (PuyoState)newItem;
+ }
+ else
+- return (PuyoState)(int)(sequenceItems.getElementAt(sequence));
++ return (PuyoState)(long)(sequenceItems.getElementAt(sequence));
+ }
+
+ PuyoPuyo::PuyoPuyo(PuyoState state)
|