mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- Update to v.20100328
PR: ports/145258 Submitted by: Ganael Laplanche <ganael.laplanche@martymac.org> (maintainer)
This commit is contained in:
parent
e483a318c9
commit
50f7ee79fa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252664
@ -6,28 +6,33 @@
|
||||
#
|
||||
|
||||
PORTNAME= openjazz
|
||||
PORTVERSION= 20070212
|
||||
PORTVERSION= 20100328
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://contribs.martymac.com/FreeBSD-ports/distfiles/
|
||||
MASTER_SITES= http://alister.eu/jazz/oj/
|
||||
DISTNAME= OpenJazz-src-280310
|
||||
|
||||
MAINTAINER= ganael.laplanche@martymac.com
|
||||
COMMENT= Free re-implementation of the Jazz Jackrabbit(tm) game engine
|
||||
|
||||
WRKSRC= ${WRKDIR}
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_GMAKE= yes
|
||||
ALL_TARGET= OpenJazz
|
||||
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
|
||||
CPPFLAGS= "-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
|
||||
-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR"
|
||||
LDFLAGS= "-L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`"
|
||||
MAKE_ENV= CPPFLAGS=${CPPFLAGS} LDFLAGS=${LDFLAGS}
|
||||
|
||||
post-extract:
|
||||
@${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
post-install:
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/openjazz ${PREFIX}/bin
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/OpenJazz ${PREFIX}/bin/openjazz
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (openjazz-20070212.tar.gz) = e57ff08452183e84259e57859023809f
|
||||
SHA256 (openjazz-20070212.tar.gz) = 78c91487c5ac54eba9a2a72ce09388e468d594219948eb1f099233a582e0328b
|
||||
SIZE (openjazz-20070212.tar.gz) = 35748
|
||||
MD5 (OpenJazz-src-280310.zip) = f49d0b8ed955877dcce4190a3454ae73
|
||||
SHA256 (OpenJazz-src-280310.zip) = 266daf9c0c03ed26a6e7b13f298cefc3a8f645cdf2f3582d8f47f938f17c2f91
|
||||
SIZE (OpenJazz-src-280310.zip) = 141547
|
||||
|
@ -1,34 +0,0 @@
|
||||
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
|
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd %%DATADIR%% && exec openjazz-bin
|
15
games/openjazz/files/patch-Makefile
Normal file
15
games/openjazz/files/patch-Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.orig 2010-03-30 16:59:54.981199076 +0000
|
||||
+++ Makefile 2010-03-30 17:04:10.070142573 +0000
|
||||
@@ -21,10 +21,10 @@
|
||||
|
||||
|
||||
OpenJazz: $(objects)
|
||||
- cc -Wall -o OpenJazz -lSDL -lstdc++ $(objects)
|
||||
+ ${CC} ${LDFLAGS} -Wall -o OpenJazz -lstdc++ $(objects)
|
||||
|
||||
%.o: %.cpp
|
||||
- cc -Wall -DUSE_SOCKETS -DSCALE -Isrc -O2 -c $< -o $@
|
||||
+ ${CC} ${CPPFLAGS} ${CFLAGS} -Wall -DUSE_SOCKETS -DSCALE -Isrc -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f OpenJazz $(objects)
|
10
games/openjazz/files/patch-src-io-network.cpp
Normal file
10
games/openjazz/files/patch-src-io-network.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/io/network.cpp.orig 2010-03-30 17:07:37.715288674 +0000
|
||||
+++ src/io/network.cpp 2010-03-30 17:13:25.119068484 +0000
|
||||
@@ -41,6 +41,7 @@
|
||||
#define MSG_NOSIGNAL 0
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
+ #include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/ioctl.h>
|
@ -1,4 +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
|
||||
WWW: http://alister.eu/jazz/oj
|
||||
|
@ -1,4 +1,3 @@
|
||||
bin/openjazz
|
||||
bin/openjazz-bin
|
||||
%%DATADIR%%/openjazz.000
|
||||
@dirrm %%DATADIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user