View | Details | Raw Unified | Return to bug 145258
Collapse All | Expand All

(-)openjazz/Makefile (-10 / +15 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	openjazz
8
PORTNAME=	openjazz
9
PORTVERSION=	20070212
9
PORTVERSION=	20100328
10
CATEGORIES=	games
10
CATEGORIES=	games
11
MASTER_SITES=	http://contribs.martymac.com/FreeBSD-ports/distfiles/
11
MASTER_SITES=	http://alister.eu/jazz/oj/
12
DISTNAME=	OpenJazz-src-280310
12
13
13
MAINTAINER=	ganael.laplanche@martymac.com
14
MAINTAINER=	ganael.laplanche@martymac.com
14
COMMENT=	Free re-implementation of the Jazz Jackrabbit(tm) game engine
15
COMMENT=	Free re-implementation of the Jazz Jackrabbit(tm) game engine
15
16
17
WRKSRC=	${WRKDIR}
18
19
USE_ZIP=	yes
20
USE_GMAKE=	yes
21
ALL_TARGET=	OpenJazz
16
USE_XORG=	x11 xext xrandr xrender xau xdmcp
22
USE_XORG=	x11 xext xrandr xrender xau xdmcp
17
USE_SDL=	sdl
23
USE_SDL=	sdl
18
MAKE_ENV=	CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags`" \
19
		LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`" \
20
		INSTALL="${INSTALL}" INSTALL_PROGRAM="${INSTALL_PROGRAM}"
21
24
22
SUB_FILES=	openjazz pkg-message
25
CPPFLAGS=	"-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
26
		-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR"
27
LDFLAGS=	"-L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`"
28
MAKE_ENV=	CPPFLAGS=${CPPFLAGS} LDFLAGS=${LDFLAGS}
23
29
24
post-extract:
30
SUB_FILES=	pkg-message
25
	@${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
26
31
27
post-install:
32
do-install:
28
	@${MKDIR} ${DATADIR}
33
	@${MKDIR} ${DATADIR}
29
	@${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/
34
	@${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/
30
	@${INSTALL_SCRIPT} ${WRKDIR}/openjazz ${PREFIX}/bin
35
	@${INSTALL_SCRIPT} ${WRKDIR}/OpenJazz ${PREFIX}/bin/openjazz
31
	@${CAT} ${PKGMESSAGE}
36
	@${CAT} ${PKGMESSAGE}
32
37
33
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)openjazz/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (openjazz-20070212.tar.gz) = e57ff08452183e84259e57859023809f
1
MD5 (OpenJazz-src-280310.zip) = f49d0b8ed955877dcce4190a3454ae73
2
SHA256 (openjazz-20070212.tar.gz) = 78c91487c5ac54eba9a2a72ce09388e468d594219948eb1f099233a582e0328b
2
SHA256 (OpenJazz-src-280310.zip) = 266daf9c0c03ed26a6e7b13f298cefc3a8f645cdf2f3582d8f47f938f17c2f91
3
SIZE (openjazz-20070212.tar.gz) = 35748
3
SIZE (OpenJazz-src-280310.zip) = 141547
(-)openjazz/files/Makefile.in (-34 lines)
Lines 1-34 Link Here
1
CFLAGS?= -O -pipe
2
CPPFLAGS+= -I/usr/local/include `sdl-config --cflags`
3
LDFLAGS+= -L/usr/local/lib -pthread `sdl-config --libs`
4
PREFIX?= /usr/local
5
INSTALL?=	install
6
INSTALL_PROGRAM?= install -s -o root -g wheel -m 555
7
8
all:	bonus.o events.o font.o level.o main.o planet.o scene.o menu.o sound.o
9
	gcc ${LDFLAGS} bonus.o events.o font.o level.o main.o planet.o scene.o menu.o sound.o -o openjazz-bin
10
bonus.o:	bonus.c
11
	gcc ${CFLAGS} ${CPPFLAGS} -c bonus.c
12
events.o:	events.c
13
	gcc ${CFLAGS} ${CPPFLAGS} -c events.c
14
font.o:	font.c
15
	gcc ${CFLAGS} ${CPPFLAGS} -c font.c
16
level.o: level.c
17
	gcc ${CFLAGS} ${CPPFLAGS} -c level.c
18
main.o:	main.c
19
	gcc ${CFLAGS} ${CPPFLAGS} -c main.c
20
planet.o:	planet.c
21
	gcc ${CFLAGS} ${CPPFLAGS} -c planet.c
22
scene.o:	scene.c
23
	gcc ${CFLAGS} ${CPPFLAGS} -c scene.c
24
menu.o:	menu.c
25
	gcc ${CFLAGS} ${CPPFLAGS} -c menu.c
26
sound.o:	sound.c
27
	gcc ${CFLAGS} ${CPPFLAGS} -c sound.c
28
install:	all
29
	${INSTALL} -d ${PREFIX}/bin
30
	${INSTALL_PROGRAM} openjazz-bin ${PREFIX}/bin
31
uninstall:
32
	rm -f ${PREFIX}/bin/openjazz-bin
33
clean:
34
	rm -f *.o openjazz-bin
(-)openjazz/files/openjazz.in (-2 lines)
Lines 1-2 Link Here
1
#!/bin/sh
2
cd %%DATADIR%% && exec openjazz-bin
(-)openjazz/files/patch-Makefile (+15 lines)
Line 0 Link Here
1
--- Makefile.orig	2010-03-30 16:59:54.981199076 +0000
2
+++ Makefile	2010-03-30 17:04:10.070142573 +0000
3
@@ -21,10 +21,10 @@
4
 
5
 
6
 OpenJazz: $(objects)
7
-	cc -Wall -o OpenJazz -lSDL -lstdc++ $(objects)
8
+	${CC} ${LDFLAGS} -Wall -o OpenJazz -lstdc++ $(objects)
9
 
10
 %.o: %.cpp
11
-	cc -Wall -DUSE_SOCKETS -DSCALE -Isrc -O2 -c $< -o $@
12
+	${CC} ${CPPFLAGS} ${CFLAGS} -Wall -DUSE_SOCKETS -DSCALE -Isrc -c $< -o $@
13
 
14
 clean:
15
 	rm -f OpenJazz $(objects)
(-)openjazz/files/patch-src-io-network.cpp (+10 lines)
Line 0 Link Here
1
--- src/io/network.cpp.orig	2010-03-30 17:07:37.715288674 +0000
2
+++ src/io/network.cpp	2010-03-30 17:13:25.119068484 +0000
3
@@ -41,6 +41,7 @@
4
 		#define MSG_NOSIGNAL 0
5
 	#else
6
 		#include <sys/types.h>
7
+        #include <netinet/in.h>
8
 		#include <sys/socket.h>
9
 		#include <arpa/inet.h>
10
 		#include <sys/ioctl.h>
(-)openjazz/pkg-descr (-1 / +1 lines)
Lines 1-4 Link Here
1
OpenJazz, is a free, open-source re-implementation of
1
OpenJazz, is a free, open-source re-implementation of
2
the classic Jazz Jackrabbit(tm) game engine. 
2
the classic Jazz Jackrabbit(tm) game engine. 
3
3
4
WWW: http://treacle.hewwo.com/jazz/oj/index.html
4
WWW: http://alister.eu/jazz/oj
(-)openjazz/pkg-plist (-1 lines)
Lines 1-4 Link Here
1
bin/openjazz
1
bin/openjazz
2
bin/openjazz-bin
3
%%DATADIR%%/openjazz.000
2
%%DATADIR%%/openjazz.000
4
@dirrm %%DATADIR%%
3
@dirrm %%DATADIR%%

Return to bug 145258