Sun Jul 27 20:14:14 2008 UTC ()
Fix broken build with gcc4 (and maybe not just with gcc4...)
Add missing dependence on freetype2.
PKGREVISION++
(dholland)
diff -r1.9 -r1.10 pkgsrc/games/exult/Makefile
diff -r1.2 -r1.3 pkgsrc/games/exult/distinfo
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-ac
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-ad
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-ae
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-af
diff -r0 -r1.1 pkgsrc/games/exult/patches/patch-ag
--- pkgsrc/games/exult/Makefile 2006/06/12 16:28:08 1.9
+++ pkgsrc/games/exult/Makefile 2008/07/27 20:14:14 1.10
| @@ -1,21 +1,22 @@ | | | @@ -1,21 +1,22 @@ |
1 | # $NetBSD: Makefile,v 1.9 2006/06/12 16:28:08 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2008/07/27 20:14:14 dholland Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= exult-1.2 | | 4 | DISTNAME= exult-1.2 |
5 | PKGREVISION= 5 | | 5 | PKGREVISION= 6 |
6 | CATEGORIES= games | | 6 | CATEGORIES= games |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=exult/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=exult/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://exult.sourceforge.net/ | | 10 | HOMEPAGE= http://exult.sourceforge.net/ |
11 | COMMENT= Open-source Ultima 7 engine | | 11 | COMMENT= Open-source Ultima 7 engine |
12 | | | 12 | |
13 | USE_DIRS+= xdg-1.2 | | 13 | USE_DIRS+= xdg-1.2 |
14 | USE_PKGLOCALEDIR= yes | | 14 | USE_PKGLOCALEDIR= yes |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | | | 18 | |
19 | .include "../../devel/SDL/buildlink3.mk" | | 19 | .include "../../devel/SDL/buildlink3.mk" |
20 | .include "../../audio/SDL_mixer/buildlink3.mk" | | 20 | .include "../../audio/SDL_mixer/buildlink3.mk" |
| | | 21 | .include "../../graphics/freetype2/buildlink3.mk" |
21 | .include "../../mk/bsd.pkg.mk" | | 22 | .include "../../mk/bsd.pkg.mk" |
--- pkgsrc/games/exult/distinfo 2005/02/23 23:11:56 1.2
+++ pkgsrc/games/exult/distinfo 2008/07/27 20:14:14 1.3
| @@ -1,7 +1,12 @@ | | | @@ -1,7 +1,12 @@ |
1 | $NetBSD: distinfo,v 1.2 2005/02/23 23:11:56 agc Exp $ | | 1 | $NetBSD: distinfo,v 1.3 2008/07/27 20:14:14 dholland Exp $ |
2 | | | 2 | |
3 | SHA1 (exult-1.2.tar.gz) = 81f9d3d428c80990b8e970a4dee5c85a7236dace | | 3 | SHA1 (exult-1.2.tar.gz) = 81f9d3d428c80990b8e970a4dee5c85a7236dace |
4 | RMD160 (exult-1.2.tar.gz) = 339231edf84507f05115ab3189875cb15be9c04f | | 4 | RMD160 (exult-1.2.tar.gz) = 339231edf84507f05115ab3189875cb15be9c04f |
5 | Size (exult-1.2.tar.gz) = 1722259 bytes | | 5 | Size (exult-1.2.tar.gz) = 1722259 bytes |
6 | SHA1 (patch-aa) = 2acecb0c4e2da2769559d9603a08930c30b38c72 | | 6 | SHA1 (patch-aa) = 2acecb0c4e2da2769559d9603a08930c30b38c72 |
7 | SHA1 (patch-ab) = 039fd49b570ad5796a43d86fb679b517c4149f13 | | 7 | SHA1 (patch-ab) = 039fd49b570ad5796a43d86fb679b517c4149f13 |
| | | 8 | SHA1 (patch-ac) = f6a1c4961e62cd99f9f355d14631457d5d2b5458 |
| | | 9 | SHA1 (patch-ad) = 6836603f98ec3d8893de27259a82ed2da7d7e9fb |
| | | 10 | SHA1 (patch-ae) = 3b863379cef2948ff92e9971ffbc37d6b1b0276f |
| | | 11 | SHA1 (patch-af) = 43b2369d9dff1fc1aa387c174b3fe7c3e467c2e8 |
| | | 12 | SHA1 (patch-ag) = 2c8b385bb2346f0e7d11bd8e721a901ec361bb61 |
$NetBSD: patch-ac,v 1.1 2008/07/27 20:14:14 dholland Exp $
--- hash_utils.h~ 2003-08-31 13:32:24.000000000 -0400
+++ hash_utils.h 2008-07-27 13:37:43.000000000 -0400
@@ -26,7 +26,7 @@
#else
#if HAVE_EXT_HASH_MAP
# include <ext/hash_map>
-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
+# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3)
using __gnu_cxx::hash_map;
# else
using std::hash_map;
@@ -44,7 +44,7 @@
#else
#if HAVE_EXT_HASH_SET
# include <ext/hash_set>
-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
+# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0)) || __GNUC__ > 3)
using __gnu_cxx::hash_set;
# else
using std::hash_set;
$NetBSD: patch-ad,v 1.1 2008/07/27 20:14:14 dholland Exp $
--- mouse.h.orig 2003-08-31 13:32:24.000000000 -0400
+++ mouse.h 2008-07-27 13:58:11.000000000 -0400
@@ -33,7 +33,11 @@
class Mouse
{
protected:
- Shape_file pointers; // Pointers from 'pointers.shp'.
+ Shape_file pointers;
+#if __GNUC__ == 4 && __GNUC_MINOR__ == 1
+ /* I have no idea why this is needed. */
+ class
+#endif
Game_window *gwin; // Where to draw.
Image_window8 *iwin; // From gwin.
Image_buffer *backup; // Stores image below mouse shape.
$NetBSD: patch-ae,v 1.1 2008/07/27 20:14:14 dholland Exp $
--- audio/midi_drivers/fmopldrv.h~ 2002-08-06 14:10:31.000000000 -0400
+++ audio/midi_drivers/fmopldrv.h 2008-07-27 14:03:16.000000000 -0400
@@ -76,7 +76,7 @@
/* output a packed midi command to the midi stream
* valid only if mode is MO_SIMPLE
*/
- void OplDriver::send(uint32 b);
+ void send(uint32 b);
/* retrieve a string representation of an error code */
static const char *get_error_name(int error_code);
$NetBSD: patch-af,v 1.1 2008/07/27 20:14:14 dholland Exp $
--- usecode/ucxt/include/ucfunc.h~ 2003-08-31 13:32:28.000000000 -0400
+++ usecode/ucxt/include/ucfunc.h 2008-07-27 14:07:35.000000000 -0400
@@ -206,7 +206,7 @@
bool output_list(std::ostream &o, unsigned int funcno, const UCOptions &options);
bool output_ucs(std::ostream &o, const FuncMap &funcmap, const std::map<unsigned int, std::string> &intrinsics, const UCOptions &options);
- std::ostream &UCFunc::output_ucs_funcname(std::ostream &o, const FuncMap &funcmap);
+ std::ostream &output_ucs_funcname(std::ostream &o, const FuncMap &funcmap);
std::ostream &output_ucs_funcname(std::ostream &o, const FuncMap &funcmap,
unsigned int funcid,
unsigned int numargs, bool return_var);
$NetBSD: patch-ag,v 1.1 2008/07/27 20:14:14 dholland Exp $
--- usecode/useval.cc~ 2004-05-23 01:07:11.000000000 -0400
+++ usecode/useval.cc 2008-07-27 14:20:59.000000000 -0400
@@ -464,7 +464,8 @@
if (buflen < 5)
return -1;
*ptr++ = type;
- Write4(ptr, (int)value.ptr);
+ /* this may truncate the pointer! */
+ Write4(ptr, (int32_t)(intptr_t)value.ptr);
break;
case string_type:
{