- Update netpaanzer to 0.8.7

- Fix build with clang 6
- Convert to PLIST_FILES
- Regenerate patches
This commit is contained in:
Guido Falsi 2018-01-19 12:25:34 +00:00
parent 2546323aac
commit 00372c127c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459405
8 changed files with 49 additions and 46 deletions

View File

@ -1,10 +1,10 @@
# $FreeBSD$
PORTNAME= netpanzer
PORTVERSION= 0.8.4
PORTREVISION= 4
PORTVERSION= 0.8.7
DISTVERSIONSUFFIX= -source
CATEGORIES= games
MASTER_SITES= LOCAL/madpilot/netpanzer
MASTER_SITES= http://www.netpanzer.info/Download/NetPanzer/Releases/${PORTVERSION}/
MAINTAINER= madpilot@FreeBSD.org
COMMENT= Real time, isometric view, tank multiplayer strategy game
@ -14,11 +14,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LDFLAGS+= -lpthreads
USES= scons tar:bzip2
USES= scons zip
USE_SDL= sdl mixer image
USE_GNOME= libxml2
SCONS_ARGS+= datadir="${DATADIR}"
SCONS_BUILDENV= ${SCONS_ENV}
MAKE_ARGS+= datadir="${DATADIR}"
NO_WRKSUBDIR= yes
PLIST_FILES= bin/netpanzer \
share/applications/netpanzer.desktop \
share/pixmaps/netpanzer.png \
share/pixmaps/netpanzer.xpm
PORTDOCS= *
PORTDATA= *
@ -29,13 +34,15 @@ post-configure:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/netpanzer ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "cache maps pics powerups scripts sound units wads" ${STAGEDIR}${DATADIR})
${INSTALL_MAN} ${WRKSRC}/docs/netpanzer.6 ${STAGEDIR}${MANPREFIX}/man/man6
${INSTALL_DATA} ${WRKSRC}/netpanzer.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/netpanzer.png ${WRKSRC}/netpanzer.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
(cd ${WRKSRC} && ${COPYTREE_SHARE} "cache maps pics powerups scripts sound units wads" \
${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/support/win32/netpanzer.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/netpanzer.png ${WRKSRC}/support/icon/netpanzer.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} COPYING ChangeLog README RELNOTES TODO ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/docs && ${INSTALL_DATA} Doxyfile code-notes.txt coding.txt serverhowto.html tipofday.txt ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} COPYING README ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/docs && ${INSTALL_DATA} code-notes.txt coding.txt old/serverhowto.html \
${STAGEDIR}${DOCSDIR})
do-fetch-svn:
svn export svn://svn.berlios.de/${PORTNAME}/tags/${PORTNAME}/${PORTVERSION} ${PORTNAME}-${PORTVERSION}

View File

@ -1,2 +1,3 @@
SHA256 (netpanzer-0.8.4.tar.bz2) = 96ee69fbe0f84cd46647e35f0983c9ef8869ad2f2b9e244a82d34d8ea6279712
SIZE (netpanzer-0.8.4.tar.bz2) = 11731818
TIMESTAMP = 1516265645
SHA256 (netpanzer-0.8.7-source.zip) = 90e2b78d43cc32fb3f6af027788162dc9d272941f9630b43fc34f203a55c86a7
SIZE (netpanzer-0.8.7-source.zip) = 13466285

View File

@ -1,19 +1,19 @@
--- SConstruct.orig 2011-12-22 19:32:06.000000000 +0100
+++ SConstruct 2012-04-24 23:49:38.000000000 +0200
@@ -69,7 +69,7 @@
('crossmingwsdlconfig','sets the sdl-config full path for mingw cross compiler', 'sdl-config')
--- SConstruct.orig 2016-04-09 13:14:00 UTC
+++ SConstruct
@@ -95,7 +95,7 @@ opts.AddVariables(
('compilerprefix', 'sets the prefix for the cross linux compiler, example: i686-pc-linux-gnu-', ''),
)
-env = Environment(ENV = os.environ, options = opts)
+env = Environment(ENV = os.environ, options = opts, CC = os.environ['CC'], CXX = os.environ['CXX'])
Help(opts.GenerateHelpText(env))
################################################################
@@ -240,6 +240,7 @@
SetupSpawn(env)
env.Append( CCFLAGS = [ '-DPACKAGE_VERSION=\\"' + NPVERSION + '\\"' ] )
@@ -202,6 +202,7 @@ elif thisplatform == 'win32':
else:
networkenv.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
env.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
+ env.Append( _LIBFLAGS = [ '-L%%LOCALBASE%%/lib' ] )
env.Append( NPLIBS = [ 'SDL_mixer' ] )
# for crossmingw platform
# note: for some magic reason, now doesn't need to put the full path for
# SDL_mixer when using mingw crosscompilation
env.Append( LIBS = ['SDL_mixer' ] )

View File

@ -1,11 +0,0 @@
--- src/Lib/ArrayUtil/QueueTemplate.hpp.orig 2012-04-24 23:51:05.000000000 +0200
+++ src/Lib/ArrayUtil/QueueTemplate.hpp 2012-04-24 23:51:15.000000000 +0200
@@ -42,7 +42,7 @@
bool enqueue(const TYPE& object )
{
- add( object, (rear + 1) % this->size );
+ this->add( object, (rear + 1) % this->size );
rear = (rear + 1) % this->size;
if ( front == rear )

View File

@ -1,6 +1,6 @@
--- src/Lib/Network/Address.hpp.orig 2010-01-19 17:08:17.000000000 +0100
+++ src/Lib/Network/Address.hpp 2012-04-20 17:34:26.306480287 +0200
@@ -47,7 +47,7 @@
--- src/Lib/Network/Address.hpp.orig 2016-04-09 13:14:00 UTC
+++ src/Lib/Network/Address.hpp
@@ -62,7 +62,7 @@ class Address (public)
struct sockaddr * getSockaddr() const { return (struct sockaddr *)&ss; };
socklen_t getSockaddrLen() const
{

View File

@ -0,0 +1,11 @@
--- src/Lib/Network/SocketBase.cpp.orig 2016-04-09 13:14:00 UTC
+++ src/Lib/Network/SocketBase.cpp
@@ -147,7 +147,7 @@ SocketBase::bindSocketTo(const Address& toaddr) throw(
{
if ( state == CONFIGURED )
{
- int res = bind(sockfd, toaddr.getSockaddr(), toaddr.getSockaddrLen());
+ int res = ::bind(sockfd, toaddr.getSockaddr(), toaddr.getSockaddrLen());
if(res == SOCKET_ERROR) {
lastError = GET_NET_ERROR();
doClose();

View File

@ -1,6 +1,6 @@
--- src/Lib/optionmm/command_line.hpp.orig 2013-09-27 10:31:25.000000000 +0200
+++ src/Lib/optionmm/command_line.hpp 2013-09-27 10:38:10.000000000 +0200
@@ -212,7 +212,13 @@
--- src/Lib/optionmm/command_line.hpp.orig 2007-04-16 13:36:42 UTC
+++ src/Lib/optionmm/command_line.hpp
@@ -212,7 +212,13 @@ struct toggle_value<bool>
{
x = !x;
}

View File

@ -1,5 +0,0 @@
bin/netpanzer
man/man6/netpanzer.6.gz
share/applications/netpanzer.desktop
share/pixmaps/netpanzer.png
share/pixmaps/netpanzer.xpm