aboutsummaryrefslogtreecommitdiff
path: root/games/openjazz
diff options
context:
space:
mode:
authorFelippe de Meirelles Motta <lippe@FreeBSD.org>2008-06-03 02:35:07 +0000
committerFelippe de Meirelles Motta <lippe@FreeBSD.org>2008-06-03 02:35:07 +0000
commit4fe538d768afe5f8a193f39711107d8f4923bd9d (patch)
treed7e2a9546339cbad1bd825332b25db326ae5900c /games/openjazz
parent686bc0486252cc52f7f99081552d6a0913e02c7f (diff)
downloadports-4fe538d768afe5f8a193f39711107d8f4923bd9d.tar.gz
ports-4fe538d768afe5f8a193f39711107d8f4923bd9d.zip
OpenJazz, is a free, open-source re-implementation of the classic Jazz Jackrabbit(tm) game engine.
WWW: http://treacle.hewwo.com/jazz/oj/index.html PR: ports/122375 Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com> Approved by: araujo (mentor)
Notes
Notes: svn path=/head/; revision=214204
Diffstat (limited to 'games/openjazz')
-rw-r--r--games/openjazz/Makefile33
-rw-r--r--games/openjazz/distinfo3
-rw-r--r--games/openjazz/files/Makefile.in34
-rw-r--r--games/openjazz/files/openjazz.in2
-rw-r--r--games/openjazz/files/pkg-message.in16
-rw-r--r--games/openjazz/pkg-descr4
-rw-r--r--games/openjazz/pkg-plist4
7 files changed, 96 insertions, 0 deletions
diff --git a/games/openjazz/Makefile b/games/openjazz/Makefile
new file mode 100644
index 000000000000..bd1a1adfc536
--- /dev/null
+++ b/games/openjazz/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: openjazz
+# Date created: 01 Apr 2008
+# Whom: Ganael Laplanche <ganael.laplanche@martymac.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= openjazz
+PORTVERSION= 20070212
+CATEGORIES= games
+MASTER_SITES= http://contribs.martymac.com/FreeBSD-ports/distfiles/
+
+MAINTAINER= ganael.laplanche@martymac.com
+COMMENT= Free re-implementation of the Jazz Jackrabbit(tm) game engine
+
+USE_XORG= x11 xext xrandr xrender xau xdmcp
+USE_SDL= sdl
+MAKE_ENV= CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags`" \
+ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`" \
+ INSTALL="${INSTALL}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+
+SUB_FILES= openjazz pkg-message
+
+post-extract:
+ @${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
+
+post-install:
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/
+ @${INSTALL_SCRIPT} ${WRKDIR}/openjazz ${PREFIX}/bin
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/games/openjazz/distinfo b/games/openjazz/distinfo
new file mode 100644
index 000000000000..f639889b2ede
--- /dev/null
+++ b/games/openjazz/distinfo
@@ -0,0 +1,3 @@
+MD5 (openjazz-20070212.tar.gz) = e57ff08452183e84259e57859023809f
+SHA256 (openjazz-20070212.tar.gz) = 78c91487c5ac54eba9a2a72ce09388e468d594219948eb1f099233a582e0328b
+SIZE (openjazz-20070212.tar.gz) = 35748
diff --git a/games/openjazz/files/Makefile.in b/games/openjazz/files/Makefile.in
new file mode 100644
index 000000000000..9bf41cb00b64
--- /dev/null
+++ b/games/openjazz/files/Makefile.in
@@ -0,0 +1,34 @@
+CFLAGS?= -O -pipe
+CPPFLAGS+= -I/usr/local/include `sdl-config --cflags`
+LDFLAGS+= -L/usr/local/lib -pthread `sdl-config --libs`
+PREFIX?= /usr/local
+INSTALL?= install
+INSTALL_PROGRAM?= install -s -o root -g wheel -m 555
+
+all: bonus.o events.o font.o level.o main.o planet.o scene.o menu.o sound.o
+ gcc ${LDFLAGS} bonus.o events.o font.o level.o main.o planet.o scene.o menu.o sound.o -o openjazz-bin
+bonus.o: bonus.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c bonus.c
+events.o: events.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c events.c
+font.o: font.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c font.c
+level.o: level.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c level.c
+main.o: main.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c main.c
+planet.o: planet.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c planet.c
+scene.o: scene.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c scene.c
+menu.o: menu.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c menu.c
+sound.o: sound.c
+ gcc ${CFLAGS} ${CPPFLAGS} -c sound.c
+install: all
+ ${INSTALL} -d ${PREFIX}/bin
+ ${INSTALL_PROGRAM} openjazz-bin ${PREFIX}/bin
+uninstall:
+ rm -f ${PREFIX}/bin/openjazz-bin
+clean:
+ rm -f *.o openjazz-bin
diff --git a/games/openjazz/files/openjazz.in b/games/openjazz/files/openjazz.in
new file mode 100644
index 000000000000..c21b8a6b11c6
--- /dev/null
+++ b/games/openjazz/files/openjazz.in
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd %%DATADIR%% && exec openjazz-bin
diff --git a/games/openjazz/files/pkg-message.in b/games/openjazz/files/pkg-message.in
new file mode 100644
index 000000000000..232bce0ecd84
--- /dev/null
+++ b/games/openjazz/files/pkg-message.in
@@ -0,0 +1,16 @@
+
+=========================================================
+
+OpenJazz is now installed. In order to work, the game
+needs additional files. Please buy the full version or
+download the shareware version (e.g.) here :
+
+http://www.dosgamesarchive.com/download/game/111
+
+and copy every file of the game *lowercase* to
+%%DATADIR%%
+
+Once this is done, run 'openjazz'. Enjoy !
+
+=========================================================
+
diff --git a/games/openjazz/pkg-descr b/games/openjazz/pkg-descr
new file mode 100644
index 000000000000..3002013fea96
--- /dev/null
+++ b/games/openjazz/pkg-descr
@@ -0,0 +1,4 @@
+OpenJazz, is a free, open-source re-implementation of
+the classic Jazz Jackrabbit(tm) game engine.
+
+WWW: http://treacle.hewwo.com/jazz/oj/index.html
diff --git a/games/openjazz/pkg-plist b/games/openjazz/pkg-plist
new file mode 100644
index 000000000000..c5b1bf17eb0b
--- /dev/null
+++ b/games/openjazz/pkg-plist
@@ -0,0 +1,4 @@
+bin/openjazz
+bin/openjazz-bin
+%%DATADIR%%/openjazz.000
+@dirrm %%DATADIR%%