aboutsummaryrefslogtreecommitdiffstats
path: root/games/openjazz
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2010-10-08 16:27:15 +0800
committermartymac <martymac@FreeBSD.org>2010-10-08 16:27:15 +0800
commitf87e45a6f5d386fa7a610bcd25da9634b7c51046 (patch)
treeae6206414b9346a08ad57e1af181b27804a0f3f1 /games/openjazz
parent1fc393d9db0e8586f3abe9ab3b71798b162718b8 (diff)
downloadfreebsd-ports-gnome-f87e45a6f5d386fa7a610bcd25da9634b7c51046.tar.gz
freebsd-ports-gnome-f87e45a6f5d386fa7a610bcd25da9634b7c51046.tar.zst
freebsd-ports-gnome-f87e45a6f5d386fa7a610bcd25da9634b7c51046.zip
- Update to 20100926
- Add a LOCAL mirror - Add LICENSE - Use dos2unix - Provide a patch to use expose() function again (and SDL_SetPalette()) Approved by: ehaupt (mentor)
Diffstat (limited to 'games/openjazz')
-rw-r--r--games/openjazz/Makefile12
-rw-r--r--games/openjazz/distinfo6
-rw-r--r--games/openjazz/files/patch-Makefile10
-rw-r--r--games/openjazz/files/patch-src-io-gfx-video.cpp11
4 files changed, 28 insertions, 11 deletions
diff --git a/games/openjazz/Makefile b/games/openjazz/Makefile
index 3ec5d3de0a7b..0f6dbdc824f4 100644
--- a/games/openjazz/Makefile
+++ b/games/openjazz/Makefile
@@ -6,14 +6,17 @@
#
PORTNAME= openjazz
-PORTVERSION= 20100427
+PORTVERSION= 20100926
CATEGORIES= games
-MASTER_SITES= http://alister.eu/jazz/oj/
-DISTNAME= OpenJazz-src-270410
+MASTER_SITES= http://alister.eu/jazz/oj/ \
+ LOCAL/martymac
+DISTNAME= OpenJazz-src-260910
MAINTAINER= martymac@FreeBSD.org
COMMENT= Free re-implementation of the Jazz Jackrabbit(tm) game engine
+LICENSE= GPLv2
+
WRKSRC= ${WRKDIR}
USE_ZIP= yes
@@ -22,6 +25,9 @@ ALL_TARGET= OpenJazz
USE_XORG= x11 xext xrandr xrender xau xdmcp
USE_SDL= sdl
+USE_DOS2UNIX= yes
+DOS2UNIX_REGEX= .*\.(h|cpp)
+
CPPFLAGS= "-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR"
LDFLAGS= "-L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`"
diff --git a/games/openjazz/distinfo b/games/openjazz/distinfo
index 632cca349db2..b03b40d88574 100644
--- a/games/openjazz/distinfo
+++ b/games/openjazz/distinfo
@@ -1,3 +1,3 @@
-MD5 (OpenJazz-src-270410.zip) = 6e8fc4c0bd96c3c289d5d587afa2a6b6
-SHA256 (OpenJazz-src-270410.zip) = 274637a2934b9af4a8219afc531ae6582a35b6e659bd747b89007bbe69eb7a30
-SIZE (OpenJazz-src-270410.zip) = 152631
+MD5 (OpenJazz-src-260910.zip) = 08f8e0d9e2915139bf645c7a0a03f3e0
+SHA256 (OpenJazz-src-260910.zip) = d4c18cab4717344b7adfe6b2840ae13b17590bc72ffc4b76e46bb627e6549129
+SIZE (OpenJazz-src-260910.zip) = 195047
diff --git a/games/openjazz/files/patch-Makefile b/games/openjazz/files/patch-Makefile
index cb4238013340..c5c8f6924511 100644
--- a/games/openjazz/files/patch-Makefile
+++ b/games/openjazz/files/patch-Makefile
@@ -1,11 +1,11 @@
---- Makefile.orig 2010-03-30 16:59:54.981199076 +0000
-+++ Makefile 2010-03-30 17:04:10.070142573 +0000
-@@ -21,10 +21,10 @@
+--- Makefile.orig 2010-10-05 16:47:06.968648948 +0000
++++ Makefile 2010-10-05 16:48:42.770653951 +0000
+@@ -27,10 +27,10 @@
OpenJazz: $(objects)
-- cc -Wall -o OpenJazz -lSDL -lstdc++ $(objects)
-+ ${CC} ${LDFLAGS} -Wall -o OpenJazz -lstdc++ $(objects)
+- cc -Wall -o OpenJazz -lSDL -lstdc++ -lz $(objects)
++ ${CC} ${LDFLAGS} -Wall -o OpenJazz -lstdc++ -lz $(objects)
%.o: %.cpp
- cc -Wall -DUSE_SOCKETS -DSCALE -Isrc -O2 -c $< -o $@
diff --git a/games/openjazz/files/patch-src-io-gfx-video.cpp b/games/openjazz/files/patch-src-io-gfx-video.cpp
new file mode 100644
index 000000000000..64828b2acee9
--- /dev/null
+++ b/games/openjazz/files/patch-src-io-gfx-video.cpp
@@ -0,0 +1,11 @@
+--- src/io/gfx/video.cpp.orig 2010-10-06 18:26:54.742621897 +0000
++++ src/io/gfx/video.cpp 2010-10-06 18:27:27.564666319 +0000
+@@ -139,7 +139,7 @@
+ }
+ #endif
+
+-#if !defined(WIZ) && (defined(CAANOO) || defined(GP2X))
++#if !defined(WIZ)
+ expose();
+ #endif
+