warzone2100: update to 3.2.3

ChangeLog:
A lot a things since 2.3.2!
See https://github.com/Warzone2100/warzone2100/blob/master/ChangeLog
This commit is contained in:
triaxx 2018-12-14 17:27:01 +00:00
parent 0e88fa5e7b
commit f9f96c917c
14 changed files with 172 additions and 316 deletions

View file

@ -1,14 +1,15 @@
# $NetBSD: Makefile,v 1.23 2018/03/12 11:16:36 wiz Exp $
# $NetBSD: Makefile,v 1.24 2018/12/14 17:27:01 triaxx Exp $
#
DISTNAME= warzone2100-2.2.2
PKGREVISION= 10
DISTNAME= warzone2100-3.2.3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=warzone2100/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wz2100.net/
COMMENT= Real-time strategy and real-time tactics hybrid computer game
LICENSE= gnu-gpl-v2
DEPENDS+= dejavu-ttf-[0-9]*:../../fonts/dejavu-ttf
@ -17,6 +18,8 @@ USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config bison msgfmt intltool gmake gawk flex unzip zip
FLEX_REQD= 2.5.35
.include "../../games/warzone2100/options.mk"
CONFIGURE_ARGS+= --with-distributor=pkgsrc
LDFLAGS.DragonFly= -lX11 -lintl
@ -26,17 +29,20 @@ post-build:
.include "../../audio/openal-soft/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../converters/fribidi/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/physfs/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../fonts/harfbuzz/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/glew/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/quesoglc/buildlink3.mk"
.include "../../multimedia/libtheora/buildlink3.mk"
.include "../../net/SDL_net/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtscript/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,30 +1,79 @@
@comment $NetBSD: PLIST,v 1.3 2009/08/16 21:21:51 wiz Exp $
@comment $NetBSD: PLIST,v 1.4 2018/12/14 17:27:01 triaxx Exp $
bin/warzone2100
man/man6/warzone2100.6
share/applications/warzone2100.desktop
share/doc/warzone2100/AUTHORS
share/doc/warzone2100/COPYING
share/doc/warzone2100/COPYING.NONGPL
share/doc/warzone2100/COPYING.README
share/doc/warzone2100/ChangeLog
share/doc/warzone2100/Readme.de
share/doc/warzone2100/Readme.de.xhtml
share/doc/warzone2100/Readme.en
share/doc/warzone2100/Readme.en.xhtml
share/doc/warzone2100/README.md
share/doc/warzone2100/ScriptingManual.htm
share/doc/warzone2100/styles/readme.print.css
share/doc/warzone2100/styles/readme.screen.css
share/doc/warzone2100/styles/scriptingmanual.css
share/doc/warzone2100/docbook-xsl.css
share/doc/warzone2100/images/artillery-far-away.jpg
share/doc/warzone2100/images/artillery-sensor.jpg
share/doc/warzone2100/images/attackrange.jpg
share/doc/warzone2100/images/awaymission.jpg
share/doc/warzone2100/images/building-select.jpg
share/doc/warzone2100/images/building.jpg
share/doc/warzone2100/images/cb-sensor-vtol.png
share/doc/warzone2100/images/cb-sensor.png
share/doc/warzone2100/images/cheapweapon.png
share/doc/warzone2100/images/commander-factory-assignment.jpg
share/doc/warzone2100/images/commander-panel.jpg
share/doc/warzone2100/images/commander.png
share/doc/warzone2100/images/commandpanel.png
share/doc/warzone2100/images/design-bars.jpg
share/doc/warzone2100/images/design-more.png
share/doc/warzone2100/images/design-screen.jpg
share/doc/warzone2100/images/design-unit.jpg
share/doc/warzone2100/images/design.jpg
share/doc/warzone2100/images/expensiveweapon.png
share/doc/warzone2100/images/firing.jpg
share/doc/warzone2100/images/hq.png
share/doc/warzone2100/images/indirect-fire-support.jpg
share/doc/warzone2100/images/intelligencedisplay.jpg
share/doc/warzone2100/images/interface.jpg
share/doc/warzone2100/images/logo.png
share/doc/warzone2100/images/manufacture-select.jpg
share/doc/warzone2100/images/manufacture.jpg
share/doc/warzone2100/images/minimap.jpg
share/doc/warzone2100/images/movement.jpg
share/doc/warzone2100/images/oilresource.jpg
share/doc/warzone2100/images/powerbar.jpg
share/doc/warzone2100/images/powerupgrade.png
share/doc/warzone2100/images/rallypoints.jpg
share/doc/warzone2100/images/recycling.jpg
share/doc/warzone2100/images/research-select.jpg
share/doc/warzone2100/images/research.jpg
share/doc/warzone2100/images/retreatthreshold.jpg
share/doc/warzone2100/images/return.jpg
share/doc/warzone2100/images/satellite-uplink.png
share/doc/warzone2100/images/sensor-tower.png
share/doc/warzone2100/images/sensor.png
share/doc/warzone2100/images/transport.jpg
share/doc/warzone2100/images/unitordersmenu.jpg
share/doc/warzone2100/images/wss.png
share/doc/warzone2100/images/www.png
share/doc/warzone2100/quickstartguide.html
share/icons/warzone2100.png
share/locale/ca_ES/LC_MESSAGES/warzone2100.mo
share/locale/cs/LC_MESSAGES/warzone2100.mo
share/locale/da/LC_MESSAGES/warzone2100.mo
share/locale/de/LC_MESSAGES/warzone2100.mo
share/locale/el/LC_MESSAGES/warzone2100.mo
share/locale/en_GB/LC_MESSAGES/warzone2100.mo
share/locale/eo/LC_MESSAGES/warzone2100.mo
share/locale/es/LC_MESSAGES/warzone2100.mo
share/locale/et_EE/LC_MESSAGES/warzone2100.mo
share/locale/fi/LC_MESSAGES/warzone2100.mo
share/locale/fr/LC_MESSAGES/warzone2100.mo
share/locale/fy/LC_MESSAGES/warzone2100.mo
share/locale/ga/LC_MESSAGES/warzone2100.mo
share/locale/hr/LC_MESSAGES/warzone2100.mo
share/locale/hu/LC_MESSAGES/warzone2100.mo
share/locale/it/LC_MESSAGES/warzone2100.mo
share/locale/ko/LC_MESSAGES/warzone2100.mo
share/locale/la/LC_MESSAGES/warzone2100.mo
share/locale/lt/LC_MESSAGES/warzone2100.mo
share/locale/nb/LC_MESSAGES/warzone2100.mo
@ -34,14 +83,17 @@ share/locale/pt/LC_MESSAGES/warzone2100.mo
share/locale/pt_BR/LC_MESSAGES/warzone2100.mo
share/locale/ro/LC_MESSAGES/warzone2100.mo
share/locale/ru/LC_MESSAGES/warzone2100.mo
share/locale/sk/LC_MESSAGES/warzone2100.mo
share/locale/sl/LC_MESSAGES/warzone2100.mo
share/locale/tr/LC_MESSAGES/warzone2100.mo
share/locale/uk_UA/LC_MESSAGES/warzone2100.mo
share/locale/zh_CN/LC_MESSAGES/warzone2100.mo
share/locale/zh_TW/LC_MESSAGES/warzone2100.mo
share/metainfo/warzone2100.appdata.xml
share/warzone2100/base.wz
share/warzone2100/mods/multiplay/aivolution.wz
share/warzone2100/mods/multiplay/ntw.wz
share/warzone2100/mp.wz
share/warzone2100/music/menu.ogg
share/warzone2100/music/music.wpl
share/warzone2100/music/track1.ogg
share/warzone2100/music/track2.ogg
share/warzone2100/music/track3.ogg

View file

@ -1,15 +1,8 @@
$NetBSD: distinfo,v 1.7 2015/11/03 20:57:06 agc Exp $
$NetBSD: distinfo,v 1.8 2018/12/14 17:27:01 triaxx Exp $
SHA1 (warzone2100-2.2.2.tar.gz) = d61bd1a87f0a6c1184c640987f759b1ac702b9e1
RMD160 (warzone2100-2.2.2.tar.gz) = d7af614267acdb548fcbe5f78ed46e8c4d6f33de
SHA512 (warzone2100-2.2.2.tar.gz) = 763eb464687323aadaab3d679629e36902fbd3e2bdd88b3cf426b0b282eb55c184cf9f56bae24245ae2ee7edaf208352a813cdf1f065cd792fc2c38bf1f47d08
Size (warzone2100-2.2.2.tar.gz) = 50163580 bytes
SHA1 (patch-aa) = 95c066ff4340ba6e4c021846541b53eb4cad0704
SHA1 (patch-ab) = e82a085ddf27a5443e011ada57e78cca1ab66c79
SHA1 (patch-ac) = c09fcad63f725f414667980efce48157a04169a9
SHA1 (patch-ad) = af29beef3b2014bf1b3d1068b2b3caa7d948de80
SHA1 (patch-ae) = 9a5f2fccd93100e87968d2dc9d783acc595ad5d3
SHA1 (patch-af) = 46ea523fb72ed0f081d85dfea0813fde79087c82
SHA1 (patch-ag) = 2604a894e8579377f4b3ac8eae7250ed2c73a21c
SHA1 (patch-build__tools_autorevision_autorevision.cpp) = b68854d02ee6d0fe1b4293c6b1b5c0e1e36fb3a6
SHA1 (patch-lib_ivis__common_png__util.c) = 6a0ac9f5a29d431041af01c1d5acbb6fdbb919fe
SHA1 (warzone2100-3.2.3.tar.xz) = 33bf08ac130d54d36550ada4e3db99c3545ef153
RMD160 (warzone2100-3.2.3.tar.xz) = 12b5615b6cea9ea13848dc1a130ca535c7539ad5
SHA512 (warzone2100-3.2.3.tar.xz) = 4b1bc0a0bb50a8b4726a2762a922ee233b92f9835e38bbab80c159a9cb301df7434a73ba5acfb17404031467c02a9b3480d6a0d44906d70896311b3468141746
Size (warzone2100-3.2.3.tar.xz) = 81314060 bytes
SHA1 (patch-lib_exceptionhandler_exceptionhandler.cpp) = 04345173f2fc98da9f26c30963507972786571c0
SHA1 (patch-lib_qtgame_wzapp__qt.cpp) = 45564765d911a52534a14966c1f9418fd417956f

View file

@ -1,52 +0,0 @@
$NetBSD: patch-aa,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
--- configure.orig 2009-01-11 16:51:50.000000000 -0500
+++ configure
@@ -4415,13 +4415,6 @@ fi
done
test -n "$YACC" || YACC="yacc"
-if test "x$YACC" != "xbison -y" ; then
- { { echo "$as_me:$LINENO: error: Bison is not installed" >&5
-echo "$as_me: error: Bison is not installed" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-
for ac_prog in bison; do
ac_prog_version_check=`$ac_prog --version | head -n 1 | sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'`
ac_prog_major_check=`echo $ac_prog_version_check | cut -d. -f1`
@@ -4670,12 +4663,6 @@ fi
rm -f conftest.l $LEX_OUTPUT_ROOT.c
fi
-if test "x$LEX" != "xflex" ; then
- { { echo "$as_me:$LINENO: error: Flex is not installed" >&5
-echo "$as_me: error: Flex is not installed" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
for ac_prog in flex; do
ac_prog_version_check=`$ac_prog --version | head -n 1 | sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'`
@@ -6970,15 +6957,15 @@ _ACEOF
[ -z "$ac_prog_minor_check" ] && ac_prog_minor_check=0
[ -z "$ac_prog_micro_check" ] && ac_prog_micro_check=0
- ac_prog_min_major_check=`echo 0.15 | cut -d. -f1`
- ac_prog_min_minor_check=`echo 0.15 | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
- ac_prog_min_micro_check=`echo 0.15 | sed s/[-,a-z,A-Z].*// | cut -d. -f3`
+ ac_prog_min_major_check=`echo 0.14 | cut -d. -f1`
+ ac_prog_min_minor_check=`echo 0.14 | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
+ ac_prog_min_micro_check=`echo 0.14 | sed s/[-,a-z,A-Z].*// | cut -d. -f3`
[ -z "$ac_prog_min_minor_check" ] && ac_prog_min_minor_check=0
[ -z "$ac_prog_min_micro_check" ] && ac_prog_min_micro_check=0
- { echo "$as_me:$LINENO: checking for $ac_prog >= 0.15" >&5
-echo $ECHO_N "checking for $ac_prog >= 0.15... $ECHO_C" >&6; }
+ { echo "$as_me:$LINENO: checking for $ac_prog >= 0.14" >&5
+echo $ECHO_N "checking for $ac_prog >= 0.14... $ECHO_C" >&6; }
if [ "$ac_prog_major_check" -lt "$ac_prog_min_major_check" ]; then

View file

@ -1,17 +0,0 @@
$NetBSD: patch-ab,v 1.1.1.1 2009/02/15 16:05:43 jmcneill Exp $
--- lib/framework/wzglobal.h.orig 2008-12-21 13:41:15.000000000 -0500
+++ lib/framework/wzglobal.h
@@ -522,7 +522,11 @@
#elif defined(WZ_OS_UNIX)
# include <unistd.h>
-# include <alloca.h>
+# if defined(__linux__)
+# include <alloca.h>
+# else
+# include <stdlib.h>
+# endif
#endif /* WZ_OS_* */

View file

@ -1,109 +0,0 @@
$NetBSD: patch-ac,v 1.2 2009/08/26 17:36:45 hasso Exp $
--- lib/exceptionhandler/exceptionhandler.c.orig 2009-08-23 07:05:11 +0300
+++ lib/exceptionhandler/exceptionhandler.c 2009-08-26 19:09:43 +0300
@@ -170,18 +170,21 @@ static const char * wz_strsignal(int sig
case SIGBUS:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case BUS_ADRALN:
return "SIGBUS: Access to an undefined portion of a memory object: Invalid address alignment";
case BUS_ADRERR:
return "SIGBUS: Access to an undefined portion of a memory object: Nonexistent physical address";
case BUS_OBJERR:
return "SIGBUS: Access to an undefined portion of a memory object: Object-specific hardware error";
+#endif
default:
return "SIGBUS: Access to an undefined portion of a memory object";
}
case SIGCHLD:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case CLD_EXITED:
return "SIGCHLD: Child process terminated, stopped, or continued: Child has exited";
case CLD_KILLED:
@@ -194,12 +197,16 @@ static const char * wz_strsignal(int sig
return "SIGCHLD: Child process terminated, stopped, or continued: Child has stopped";
case CLD_CONTINUED:
return "SIGCHLD: Child process terminated, stopped, or continued: Stopped child has continued";
+#endif
+ default:
+ return "SIGCHLD: Child process terminated, stopped, or continued";
}
case SIGCONT:
return "SIGCONT: Continue executing, if stopped";
case SIGFPE:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case FPE_INTDIV:
return "SIGFPE: Erroneous arithmetic operation: Integer divide by zero";
case FPE_INTOVF:
@@ -216,6 +223,7 @@ static const char * wz_strsignal(int sig
return "SIGFPE: Erroneous arithmetic operation: Invalid floating-point operation";
case FPE_FLTSUB:
return "SIGFPE: Erroneous arithmetic operation: Subscript out of range";
+#endif
default:
return "SIGFPE: Erroneous arithmetic operation";
};
@@ -224,6 +232,7 @@ static const char * wz_strsignal(int sig
case SIGILL:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case ILL_ILLOPC:
return "SIGILL: Illegal instruction: Illegal opcode";
case ILL_ILLOPN:
@@ -240,6 +249,7 @@ static const char * wz_strsignal(int sig
return "SIGILL: Illegal instruction: Coprocessor error";
case ILL_BADSTK:
return "SIGILL: Illegal instruction: Internal stack error";
+#endif
default:
return "SIGILL: Illegal instruction";
}
@@ -254,10 +264,12 @@ static const char * wz_strsignal(int sig
case SIGSEGV:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case SEGV_MAPERR:
return "SIGSEGV: Invalid memory reference: Address not mapped to object";
case SEGV_ACCERR:
return "SIGSEGV: Invalid memory reference: Invalid permissions for mapped object";
+#endif
default:
return "SIGSEGV: Invalid memory reference";
}
@@ -276,6 +288,7 @@ static const char * wz_strsignal(int sig
case SIGUSR2:
return "SIGUSR2: User-defined signal 2";
#if _XOPEN_UNIX
+#if !defined(__DragonFly__)
case SIGPOLL:
switch (sigcode)
{
@@ -307,6 +320,7 @@ static const char * wz_strsignal(int sig
default:
return "SIGPOLL: Pollable event";
}
+#endif
case SIGPROF:
return "SIGPROF: Profiling timer expired";
case SIGSYS:
@@ -314,10 +328,12 @@ static const char * wz_strsignal(int sig
case SIGTRAP:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case TRAP_BRKPT:
return "SIGTRAP: Trace/breakpoint trap: Process breakpoint";
case TRAP_TRACE:
return "SIGTRAP: Trace/breakpoint trap: Process trace trap";
+#endif
default:
return "SIGTRAP: Trace/breakpoint trap";
}

View file

@ -1,12 +0,0 @@
$NetBSD: patch-ad,v 1.2 2009/08/16 21:21:51 wiz Exp $
--- lib/ivis_opengl/GLee.h.orig 2009-06-21 15:15:42.000000000 +0000
+++ lib/ivis_opengl/GLee.h
@@ -814,7 +814,6 @@ GLEE_EXTERN GLboolean _GLEE_SGIX_texture
/* GLX */
- typedef void (*__GLXextFuncPtr)(void);
#ifndef GLX_ARB_get_proc_address
#define GLX_ARB_get_proc_address 1

View file

@ -1,23 +0,0 @@
$NetBSD: patch-ae,v 1.1 2009/03/27 06:54:54 wiz Exp $
--- po/Makefile.in.in.orig 2008-12-21 18:41:15.000000000 +0000
+++ po/Makefile.in.in
@@ -122,7 +122,7 @@ check-macro-version:
# if updating the $(CATALOGS) would always touch them; however, the rule for
# $(POFILES) has been designed to not touch files that don't need to be
# changed.
-stamp-po: $(srcdir)/$(DOMAIN).pot
+stamp-po: #$(srcdir)/$(DOMAIN).pot
test ! -f $(srcdir)/$(DOMAIN).pot || \
test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
@test ! -f $(srcdir)/$(DOMAIN).pot || { \
@@ -189,7 +189,8 @@ $(srcdir)/$(DOMAIN).pot:
# This target rebuilds a PO file if $(DOMAIN).pot has changed.
# Note that a PO file is not touched if it doesn't need to be changed.
-$(POFILES): $(srcdir)/$(DOMAIN).pot
+#$(POFILES): $(srcdir)/$(DOMAIN).pot
+bogus1:
@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
if test -f "$(srcdir)/$${lang}.po"; then \
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \

View file

@ -1,18 +0,0 @@
$NetBSD: patch-af,v 1.1 2009/08/16 21:21:51 wiz Exp $
--- src/move.c.orig 2009-06-21 15:15:40.000000000 +0000
+++ src/move.c
@@ -63,6 +63,13 @@
#include "drive.h"
+#ifndef fminf
+#define fminf(a,b) (((a) < (b)) ? (a) : (b))
+#endif
+#ifndef fmaxf
+#define fmaxf(a,b) (((a) < (b)) ? (b) : (a))
+#endif
+
/* max and min vtol heights above terrain */
#define VTOL_HEIGHT_MIN 250
#define VTOL_HEIGHT_LEVEL 300

View file

@ -1,15 +0,0 @@
$NetBSD: patch-ag,v 1.1 2009/08/16 21:21:51 wiz Exp $
--- lib/sequence/sequence.c.orig 2009-06-21 15:15:41.000000000 +0000
+++ lib/sequence/sequence.c
@@ -77,6 +77,10 @@
# include <AL/al.h>
# endif
+#ifndef nearbyint
+#define nearbyint rint
+#endif
+
// stick this in sequence.h perhaps?
typedef struct
{

View file

@ -1,12 +0,0 @@
$NetBSD: patch-build__tools_autorevision_autorevision.cpp,v 1.1 2013/04/29 21:31:11 joerg Exp $
--- build_tools/autorevision/autorevision.cpp.orig 2013-04-29 19:35:21.000000000 +0000
+++ build_tools/autorevision/autorevision.cpp
@@ -25,6 +25,7 @@
#include <cstring>
#include <cstdlib>
+#include <unistd.h>
using namespace std;

View file

@ -0,0 +1,78 @@
$NetBSD: patch-lib_exceptionhandler_exceptionhandler.cpp,v 1.1 2018/12/14 17:27:01 triaxx Exp $
Disable unsupported sigcodes for DragonFlyBSD.
--- lib/exceptionhandler/exceptionhandler.cpp.orig 2017-04-23 13:12:16.000000000 +0000
+++ lib/exceptionhandler/exceptionhandler.cpp
@@ -192,18 +192,21 @@ static const char *wz_strsignal(int sign
case SIGBUS:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case BUS_ADRALN:
return "SIGBUS: Access to an undefined portion of a memory object: Invalid address alignment";
case BUS_ADRERR:
return "SIGBUS: Access to an undefined portion of a memory object: Nonexistent physical address";
case BUS_OBJERR:
return "SIGBUS: Access to an undefined portion of a memory object: Object-specific hardware error";
+#endif
default:
return "SIGBUS: Access to an undefined portion of a memory object";
}
case SIGFPE:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case FPE_INTDIV:
return "SIGFPE: Erroneous arithmetic operation: Integer divide by zero";
case FPE_INTOVF:
@@ -220,6 +223,7 @@ static const char *wz_strsignal(int sign
return "SIGFPE: Erroneous arithmetic operation: Invalid floating-point operation";
case FPE_FLTSUB:
return "SIGFPE: Erroneous arithmetic operation: Subscript out of range";
+#endif
default:
return "SIGFPE: Erroneous arithmetic operation";
};
@@ -228,6 +232,7 @@ static const char *wz_strsignal(int sign
case SIGILL:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case ILL_ILLOPC:
return "SIGILL: Illegal instruction: Illegal opcode";
case ILL_ILLOPN:
@@ -244,6 +249,7 @@ static const char *wz_strsignal(int sign
return "SIGILL: Illegal instruction: Coprocessor error";
case ILL_BADSTK:
return "SIGILL: Illegal instruction: Internal stack error";
+#endif
default:
return "SIGILL: Illegal instruction";
}
@@ -258,10 +264,12 @@ static const char *wz_strsignal(int sign
case SIGSEGV:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case SEGV_MAPERR:
return "SIGSEGV: Invalid memory reference: Address not mapped to object";
case SEGV_ACCERR:
return "SIGSEGV: Invalid memory reference: Invalid permissions for mapped object";
+#endif
default:
return "SIGSEGV: Invalid memory reference";
}
@@ -279,10 +287,12 @@ static const char *wz_strsignal(int sign
case SIGTRAP:
switch (sigcode)
{
+#if !defined(__DragonFly__)
case TRAP_BRKPT:
return "SIGTRAP: Trace/breakpoint trap: Process breakpoint";
case TRAP_TRACE:
return "SIGTRAP: Trace/breakpoint trap: Process trace trap";
+#endif
default:
return "SIGTRAP: Trace/breakpoint trap";
}

View file

@ -1,29 +0,0 @@
$NetBSD: patch-lib_ivis__common_png__util.c,v 1.1 2011/04/03 11:27:25 wiz Exp $
Fix build with png-1.5.
--- lib/ivis_common/png_util.c.orig 2009-08-23 04:05:11.000000000 +0000
+++ lib/ivis_common/png_util.c
@@ -153,16 +153,16 @@ BOOL iV_loadImage_PNG(const char *fileNa
png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, NULL);
- image->width = info_ptr->width;
- image->height = info_ptr->height;
- image->depth = info_ptr->channels;
- image->bmp = malloc(info_ptr->height * info_ptr->rowbytes);
+ image->width = png_get_image_width(png_ptr, info_ptr);
+ image->height = png_get_image_height(png_ptr, info_ptr);
+ image->depth = png_get_channels(png_ptr, info_ptr);
+ image->bmp = malloc(image->height * png_get_rowbytes(png_ptr, info_ptr));
{
unsigned int i = 0;
png_bytepp row_pointers = png_get_rows(png_ptr, info_ptr);
- for ( i = 0; i < info_ptr->height; i++ )
- memcpy( image->bmp + (info_ptr->rowbytes * i), row_pointers[i], info_ptr->rowbytes );
+ for ( i = 0; i < image->height; i++ )
+ memcpy( image->bmp + (png_get_rowbytes(png_ptr, info_ptr) * i), row_pointers[i], png_get_rowbytes(png_ptr, info_ptr) );
}
PNGReadCleanup(&info_ptr, &png_ptr, fileHandle);

View file

@ -0,0 +1,14 @@
$NetBSD: patch-lib_qtgame_wzapp__qt.cpp,v 1.1 2018/12/14 17:27:01 triaxx Exp $
The clip() function was not declared in the scope.
--- lib/qtgame/wzapp_qt.cpp.orig 2017-04-23 13:12:16.000000000 +0000
+++ lib/qtgame/wzapp_qt.cpp
@@ -42,6 +42,7 @@
#include "lib/exceptionhandler/dumpinfo.h"
#include "lib/framework/file.h"
+#include "lib/framework/math_ext.h"
#include "lib/ivis_opengl/piestate.h"
#include "lib/ivis_opengl/pieclip.h"
#include "lib/ivis_opengl/screen.h"