Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
Enigma is a re-implementation of one of the most original and intriguing
computer games of the 1990's: Oxyd.
Your objective is easily explained: find and uncover all pairs of identical
Oxyd stones in each landscape. It would be simple, if it weren't for hidden
traps, vast mazes, insurmountable obstacles and innumerable puzzles blocking
your direct way to the Oxyd stones.
+43
View File
@@ -0,0 +1,43 @@
# $NetBSD: Makefile,v 1.32 2013/06/04 22:16:04 tron Exp $
DISTNAME= enigma-1.01-r1914
PKGNAME= ${DISTNAME:S/-r/./}
PKGREVISION= 6
CATEGORIES= games
MASTER_SITES= http://download.berlios.de/enigma-game/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nongnu.org/enigma/
COMMENT= Puzzle game similar to Oxyd/Rock'n'Roll/Marble Madness
LICENSE= gnu-gpl-v2
PKG_INSTALLATION_TYPES= overwrite pkgviews
DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools
WRKSRC= ${WRKDIR}/${DISTNAME:S/-r1914//}
GCC_REQD+= 3.3
USE_LANGUAGES= c c++
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
BUILDLINK_API_DEPENDS.SDL_mixer+= SDL_mixer>=1.2.6
BUILDLINK_API_DEPENDS.SDL+= SDL>=1.2.9
BUILDLINK_API_DEPENDS.SDL_ttf+= SDL_ttf>=2.0.7
BUILDLINK_API_DEPENDS.SDL_image+= SDL_image>=1.2.4
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.3
BUILDLINK_API_DEPENDS.png+= png>=1.2.7
BUILDLINK_API_DEPENDS.xerces-c+= xerces-c>=2.7.0
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/xerces-c/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+2460
View File
File diff suppressed because it is too large Load Diff
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.11 2013/04/30 22:20:22 joerg Exp $
SHA1 (enigma-1.01-r1914.tar.gz) = f0c4b3e8fbbcc246044fbdf0ff474a005e9905a1
RMD160 (enigma-1.01-r1914.tar.gz) = 205e11ecc87b3a46911782366043ce80079b9918
Size (enigma-1.01-r1914.tar.gz) = 10902129 bytes
SHA1 (patch-aa) = c0a337a1d1098815812e117f5ca49d9ed248a446
SHA1 (patch-aq) = a58f97c78c4ee2a98c29b53265dbc5d2993cd8df
SHA1 (patch-lib-src_enigma-core_IMG__SavePNG.c) = 7377498a9be1425cb7c683147b37ceb894a305c8
SHA1 (patch-lib-src_enigma-core_ecl_alist.hh) = 15c0d90cecb60010f85074d28c907f4ba416a972
SHA1 (patch-lib-src_enigma-core_ecl_dict.hh) = 64dfc60a4a805a4b1f3af8ca3726efd14d1d7cfd
SHA1 (patch-lib-src_enigma-core_ecl_font.cc) = 132504419ed9b045f021dc3b2023116d57ab51e9
SHA1 (patch-src_lua.cc) = fecb5ec31029b4850aee656df399650a0c124c6a
SHA1 (patch-src_oxyd.cc) = e70a5b6049db22be42be438c08ccfed677907a20
+30
View File
@@ -0,0 +1,30 @@
$NetBSD: patch-aa,v 1.3 2009/06/05 07:04:11 hasso Exp $
--- lib-src/enet/unix.c.orig 2009-06-05 02:24:08 +0300
+++ lib-src/enet/unix.c 2009-06-05 02:26:23 +0300
@@ -8,6 +8,7 @@
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
+#include <sys/param.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
@@ -80,7 +81,7 @@ enet_address_set_host (ENetAddress * add
char buffer [2048];
int errnum;
-#if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
+#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202)
gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
#else
hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum);
@@ -118,7 +119,7 @@ enet_address_get_host (const ENetAddress
in.s_addr = address -> host;
-#if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
+#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202)
gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
#else
hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum);
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-aq,v 1.2 2011/02/23 10:20:26 adam Exp $
--- lib-src/enet/Makefile.in.orig 2006-12-13 22:51:46.000000000 +0100
+++ lib-src/enet/Makefile.in
@@ -557,7 +557,8 @@ installdirs-am:
for dir in "$(DESTDIR)$(libdir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
-install: install-recursive
+# pkgsrc: do not install any part of enet
+install:
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
@@ -0,0 +1,15 @@
$NetBSD: patch-lib-src_enigma-core_IMG__SavePNG.c,v 1.1 2011/02/01 00:08:48 wiz Exp $
Fix build with png-1.5.
--- lib-src/enigma-core/IMG_SavePNG.c.orig 2005-11-24 23:17:06.000000000 +0000
+++ lib-src/enigma-core/IMG_SavePNG.c
@@ -84,7 +84,7 @@ int IMG_SavePNG_RW(SDL_Surface *face, SD
png_bytep *row_pointers = 0;
/* Set error handling. */
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
IMG_SetError("Error writing the PNG file");
}
else {
@@ -0,0 +1,15 @@
$NetBSD: patch-lib-src_enigma-core_ecl_alist.hh,v 1.1 2011/02/23 10:20:26 adam Exp $
Fix C++ error.
--- lib-src/enigma-core/ecl_alist.hh.orig 2011-02-22 13:22:18.000000000 +0000
+++ lib-src/enigma-core/ecl_alist.hh
@@ -61,7 +61,7 @@ namespace ecl
VAL &operator[] (const key_type &key) {
iterator i=find(key);
if (i==this->end())
- i=insert(this->end(), make_pair(key, VAL()));
+ i=this->insert(this->end(), make_pair(key, VAL()));
return i->second;
}
};
@@ -0,0 +1,14 @@
$NetBSD: patch-lib-src_enigma-core_ecl_dict.hh,v 1.1 2011/02/23 10:20:26 adam Exp $
Fix C++ error.
--- lib-src/enigma-core/ecl_dict.hh.orig 2011-02-22 13:20:39.000000000 +0000
+++ lib-src/enigma-core/ecl_dict.hh
@@ -27,6 +27,7 @@ namespace ecl
extern unsigned hash(const std::string &key);
class XInvalidKey : XGeneric {
+ public:
XInvalidKey () : XGeneric("invalid dictionary key")
{}
};
@@ -0,0 +1,15 @@
$NetBSD: patch-lib-src_enigma-core_ecl_font.cc,v 1.1 2011/02/23 10:20:26 adam Exp $
Fix comparison.
--- lib-src/enigma-core/ecl_font.cc.orig 2011-02-22 13:18:46.000000000 +0000
+++ lib-src/enigma-core/ecl_font.cc
@@ -114,7 +114,7 @@ BitmapFont::BitmapFont(Surface *s, const
char_rects[c].y = 0;
char_rects[c].h = s->height();
advance[c] = adv;
- if (adv = 0)
+ if (adv == 0)
std::cout << "BitFont 0\n";
}
}
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-src_lua.cc,v 1.1 2013/04/30 22:20:22 joerg Exp $
--- src/lua.cc.orig 2013-04-30 19:57:33.000000000 +0000
+++ src/lua.cc
@@ -171,7 +171,7 @@ to_object(lua_State *L, int idx)
if (lua_isnil(L,idx))
return 0;
- if (!is_object(L,idx)) {
+ if (!::is_object(L,idx)) {
throwLuaError(L, "Cannot convert type to an Object");
return 0;
}
@@ -294,7 +294,7 @@ en_set_floor(lua_State *L)
if (lua_isnil(L, 3))
fl = 0;
- else if (is_object(L,3)) {
+ else if (::is_object(L,3)) {
fl = static_cast<Floor*>(*(static_cast<void**> (lua_touserdata(L,3))));
if( ! fl)
throwLuaError(L, "object is no valid floor");
+26
View File
@@ -0,0 +1,26 @@
$NetBSD: patch-src_oxyd.cc,v 1.1 2011/02/23 10:20:26 adam Exp $
Fix name conflict.
--- src/oxyd.cc.orig 2011-02-22 13:24:27.000000000 +0000
+++ src/oxyd.cc
@@ -130,7 +130,7 @@ namespace
}
}
- GridLoc to_gridloc (const SignalLocation &a)
+ GridLoc to_gridloc2 (const SignalLocation &a)
{
assert (a.getGridType() >= GridType_First &&
a.getGridType() <= GridType_Last);
@@ -644,8 +644,8 @@ void OxydLoader::connect_signals ()
int nrec = level.getNumRecipients(sender);
for (int irec=0; irec<nrec; ++irec) {
SignalLocation recipient = level.getRecipient(sender, irec);
- GridLoc src = to_gridloc(sender);
- GridLoc dst = to_gridloc(recipient);
+ GridLoc src = to_gridloc2(sender);
+ GridLoc dst = to_gridloc2(recipient);
world::AddSignal (src, dst, "signal");
}
}