Update to 20171024 and switch to GH

This commit is contained in:
Ganael LAPLANCHE 2018-01-16 11:10:14 +00:00
parent 46bb0a9743
commit 4a2ce21614
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459163
3 changed files with 9 additions and 29 deletions

View File

@ -2,36 +2,30 @@
# $FreeBSD$
PORTNAME= openjazz
PORTVERSION= 20120819
PORTREVISION= 4
PORTVERSION= 20171024
CATEGORIES= games
MASTER_SITES= http://alister.eu/jazz/oj/ \
LOCAL/martymac
DISTNAME= OpenJazz-src-190812
MAINTAINER= martymac@FreeBSD.org
COMMENT= Free re-implementation of the Jazz Jackrabbit(tm) game engine
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
USES= dos2unix gmake
USE_GITHUB= yes
GH_ACCOUNT= AlisterT
USES= dos2unix gmake zip
DOS2UNIX_REGEX= .*\.(h|cpp)
ALL_TARGET= OpenJazz
USE_XORG= x11 xext xrandr xrender xau xdmcp
USE_SDL= sdl
CPPFLAGS+= -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
CXXFLAGS+= -I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR
LDFLAGS+= -lpthread -L${LOCALBASE}/lib `${SDL_CONFIG} --libs`
SUB_FILES= pkg-message
pre-extract:
@${MKDIR} ${WRKSRC}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${STAGEDIR}${DATADIR}

View File

@ -1,2 +1,3 @@
SHA256 (OpenJazz-src-190812.zip) = b8e628c663085ea8eb4ea86b12606ada1f0c005a3bba03aedca41570ec9a9b2a
SIZE (OpenJazz-src-190812.zip) = 224532
TIMESTAMP = 1515619966
SHA256 (AlisterT-openjazz-20171024_GH0.tar.gz) = 1722df8a528b0735e84f82bab1adb6beb7b8a99977b831060e483f6ee55311c0
SIZE (AlisterT-openjazz-20171024_GH0.tar.gz) = 209725

View File

@ -1,15 +0,0 @@
--- 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++ -lz $(objects)
+ ${CXX} ${LDFLAGS} -Wall -o OpenJazz $(objects) -lz -lm
%.o: %.cpp
- cc -Wall -DUSE_SOCKETS -DSCALE -Isrc -O2 -c $< -o $@
+ ${CXX} ${CPPFLAGS} ${CFLAGS} -Wall -DUSE_SOCKETS -DSCALE -Isrc -c $< -o $@
clean:
rm -f OpenJazz $(objects)