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

19
games/ivan/DEINSTALL Normal file
View File

@@ -0,0 +1,19 @@
# $NetBSD: DEINSTALL,v 1.2 2006/07/05 06:53:12 jlam Exp $
case "${STAGE}" in
DEINSTALL)
DATADIR="${PKG_PREFIX}/share/ivan"
${RMDIR} -p ${DATADIR} 2>/dev/null || ${TRUE}
if ${TEST} -d ${DATADIR}; then
${CAT} << EOF
======================================================================
The records, log and bones were not wiped out by this deletion process.
If you don't want them around, then please remove the following
directory:
${DATADIR}
======================================================================
EOF
fi
;;
esac

4
games/ivan/DESCR Normal file
View File

@@ -0,0 +1,4 @@
Iter Vehemens ad Necem (IVAN) is a graphical roguelike game, which
currently runs in Windows, DOS and Linux. It features advanced bodypart
and material handling, multi-colored lighting and, above all, deep
gameplay.

30
games/ivan/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.17 2012/10/06 11:54:43 asau Exp $
#
DISTNAME= ivan-0.50
PKGREVISION= 9
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ivan/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ivan.sourceforge.net/
COMMENT= Graphical roguelike featuring deep gameplay
LICENSE= gnu-gpl-v2 # or later
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= gmake
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --localstatedir=${PREFIX}/share
USE_LANGUAGES= c c++
REQD_DIRS+= share/ivan
OWN_DIRS_PERMS+= share/ivan/Bones ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
CONF_FILES_PERMS+= /dev/null ${PREFIX}/share/ivan/ivan-highscore.scores \
${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
SPECIAL_PERMS+= bin/ivan ${SETGID_GAMES_PERMS}
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

22
games/ivan/PLIST Normal file
View File

@@ -0,0 +1,22 @@
@comment $NetBSD: PLIST,v 1.6 2009/06/14 17:56:48 joerg Exp $
bin/ivan
share/ivan/Graphics/Char.pcx
share/ivan/Graphics/Cursor.pcx
share/ivan/Graphics/Effect.pcx
share/ivan/Graphics/FOW.pcx
share/ivan/Graphics/Font.pcx
share/ivan/Graphics/GLTerra.pcx
share/ivan/Graphics/Humanoid.pcx
share/ivan/Graphics/Icon.bmp
share/ivan/Graphics/Item.pcx
share/ivan/Graphics/Menu.pcx
share/ivan/Graphics/OLTerra.pcx
share/ivan/Graphics/Symbol.pcx
share/ivan/Graphics/WTerra.pcx
share/ivan/Script/char.dat
share/ivan/Script/define.dat
share/ivan/Script/dungeon.dat
share/ivan/Script/glterra.dat
share/ivan/Script/item.dat
share/ivan/Script/material.dat
share/ivan/Script/olterra.dat

22
games/ivan/distinfo Normal file
View File

@@ -0,0 +1,22 @@
$NetBSD: distinfo,v 1.8 2012/10/11 11:36:20 marino Exp $
SHA1 (ivan-0.50.tar.gz) = e4c5ae2b9bdfd59a0ed3c87a504043df12b0f1a4
RMD160 (ivan-0.50.tar.gz) = 7e84340cd8fdfbdaaf7fde730fc0a76b137e2e91
Size (ivan-0.50.tar.gz) = 803651 bytes
SHA1 (patch-FeLib_Source_bitmap.cc) = 88a4c73046069aed5e3a3c67ed22a1f22230254a
SHA1 (patch-FeLib_Source_festring.cpp) = f45e5a3228f168888ecb5f645f463a2b8a3d903a
SHA1 (patch-FeLib_Source_fetime.cpp) = f941686fedd9603f1d89c0edb205caceef4b27ba
SHA1 (patch-aa) = a52f3945a79e12cc72d30d9609c4bf390809a5bd
SHA1 (patch-ab) = 63f215564ee0922d1daa5240b5a3b3b4afc5db24
SHA1 (patch-ac) = 42150fb33cbc0136bd702ab5cb26dcbc9d7c717c
SHA1 (patch-ad) = 0cf6d0d9dff4482f091bff502b0ebd180734c631
SHA1 (patch-ae) = 2b55ebd81f5136f5be8081f5dadf953a6370d199
SHA1 (patch-af) = af3d8e16b1ee3e3e0d5efe2f301b7a5380880b14
SHA1 (patch-ag) = 58c92ccf5cad81c8030bb0e7f885e95b1ca4d555
SHA1 (patch-ah) = 56fa7992634cd699eeccbb6702f2ec499d149a21
SHA1 (patch-ai) = 0bd4ee24abae746489452a5a3fba11f5cb1965e4
SHA1 (patch-aj) = 61d62867bb5fee01f8c243bc255de30a85781a76
SHA1 (patch-ak) = 3ca89be9258c4ecc4a2ba16df9faa574983affa1
SHA1 (patch-al) = 32e9e591e5967ec24525c5a6d5ddbb6294287b3b
SHA1 (patch-am) = a631ea77b56262915181f8b0a6ed700596c820e1
SHA1 (patch-an) = 48e334a68d12bfc23ea642956e0119ee0c6189c0

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-FeLib_Source_bitmap.cc,v 1.1 2012/10/11 11:36:20 marino Exp $
Fix "error: reclaration of `int c`" on gcc 4.7.
--- FeLib/Source/bitmap.cpp.orig 2004-10-26 19:35:47.000000000 +0000
+++ FeLib/Source/bitmap.cpp
@@ -881,7 +881,7 @@ void bitmap::DrawLine(int OrigFromX, int
const int Y2 = OrigToY + PointY[c];
const int DeltaX = abs(X2 - X1);
const int DeltaY = abs(Y2 - Y1);
- int x, c;
+ int x;
int XChange, PtrXChange, PtrYChange;
int DoubleDeltaX, DoubleDeltaY, End;

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-FeLib_Source_festring.cpp,v 1.1 2011/11/25 21:54:14 joerg Exp $
--- FeLib/Source/festring.cpp.orig 2011-11-25 18:33:17.000000000 +0000
+++ FeLib/Source/festring.cpp
@@ -11,6 +11,7 @@
*/
#include <cctype>
+#include <cstdlib>
#include "festring.h"
#include "allocate.h"

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-FeLib_Source_fetime.cpp,v 1.1 2011/11/25 21:54:14 joerg Exp $
--- FeLib/Source/fetime.cpp.orig 2011-11-25 18:32:55.000000000 +0000
+++ FeLib/Source/fetime.cpp
@@ -14,6 +14,7 @@
But it also should be rather easy to fix. */
#include <ctime>
+#include <cstdlib>
#include "fetime.h"
#include "festring.h"

View File

@@ -0,0 +1,34 @@
$NetBSD: patch-aa,v 1.2 2005/02/28 04:53:32 ben Exp $
--- Main/Source/game.cpp.orig 2004-12-10 13:10:03.000000000 -0800
+++ Main/Source/game.cpp
@@ -116,7 +116,7 @@ time_t game::TimePlayedBeforeLastLoad;
time_t game::LastLoad;
time_t game::GameBegan;
-festring game::AutoSaveFileName = game::GetSaveDir() + "AutoSave";
+festring game::AutoSaveFileName = game::GetSaveDir() + "/AutoSave";
const char* const game::Alignment[] = { "L++", "L+", "L", "L-", "N+", "N=", "N-", "C+", "C", "C-", "C--" };
god** game::God;
@@ -902,9 +902,9 @@ festring game::SaveName(const festring&
festring SaveName = GetSaveDir();
if(!Base.GetSize())
- SaveName << PlayerName;
+ SaveName << "/" << PlayerName;
else
- SaveName << Base;
+ SaveName << "/" << Base;
for(festring::sizetype c = 0; c < SaveName.GetSize(); ++c)
if(SaveName[c] == ' ')
@@ -2222,7 +2222,7 @@ festring game::GetSaveDir()
{
#ifdef LINUX
festring Dir;
- Dir << getenv("HOME") << "/IvanSave/";
+ Dir << getenv("HOME") << "/IvanSave";
return Dir;
#endif

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ab,v 1.2 2005/02/28 04:53:32 ben Exp $
--- FeLib/Source/feio.cpp.orig 2004-10-26 12:35:47.000000000 -0700
+++ FeLib/Source/feio.cpp
@@ -631,7 +631,7 @@ festring iosystem::ContinueMenu(col16 To
int Check = 0;
festring Buffer;
felist List(CONST_S("Choose a file and be sorry:"), TopicColor);
- hFile = _findfirst(festring(DirectoryName + "*.sav").CStr(), &Found);
+ hFile = _findfirst(festring(DirectoryName + "/*.sav").CStr(), &Found);
/* No file found */
if(hFile == -1L)
@@ -709,7 +709,7 @@ festring iosystem::ContinueMenu(col16 To
/* get all filenames ending with .sav. Accepts all files even if they
FA_HIDDEN or FA_ARCH flags are set (ie. they are hidden or archives */
- Check = findfirst(festring(DirectoryName + "*.sav").CStr(),
+ Check = findfirst(festring(DirectoryName + "/*.sav").CStr(),
&Found, FA_HIDDEN | FA_ARCH);
if(Check)

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ac,v 1.2 2011/03/16 11:40:28 obache Exp $
--- Makefile.in.orig 2004-12-10 21:34:29.000000000 +0000
+++ Makefile.in
@@ -336,19 +336,6 @@ install uninstall-am uninstall all-redir
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-
-install-data-local:
- -./mkinstalldirs -p $(localstatedir) $(bindir) $(datadir)/ivan/Script/ $(datadir)/ivan/Graphics/ $(localstatedir)/ivan/Bones/
- -touch $(localstatedir)/ivan/ivan-highscore.scores
- -chown games.games $(localstatedir)/ivan/ivan-highscore.scores
- -chmod 664 $(localstatedir)/ivan/ivan-highscore.scores
- -chown -R games.games $(localstatedir)/ivan/Bones/
- -chmod -R u=rwx $(localstatedir)/ivan/Bones/
- -chmod -R g=rwx $(localstatedir)/ivan/Bones/
- -chmod -R o=r $(localstatedir)/ivan/Bones/
- -chgrp games $(bindir)/ivan
- -chmod 2111 $(bindir)/ivan
-
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ad,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- FeLib/Include/fearray.h~ 2004-10-26 15:35:44.000000000 -0400
+++ FeLib/Include/fearray.h 2008-07-27 16:22:34.000000000 -0400
@@ -34,7 +34,7 @@
};
template <class type>
-inline fearray<type>::fearray<type>(const fearray<type>& A)
+inline fearray<type>::fearray(const fearray<type>& A)
: Data(A.Data), Size(A.Size)
{
if(Data)
@@ -42,7 +42,7 @@
}
template <class type>
-inline fearray<type>::fearray<type>(const type* Array, sizetype Size)
+inline fearray<type>::fearray(const type* Array, sizetype Size)
: Size(Size)
{
char* Ptr = new char[Size * sizeof(type) + sizeof(ulong)];

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ae,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- FeLib/Include/save.h~ 2004-10-26 15:35:45.000000000 -0400
+++ FeLib/Include/save.h 2008-07-27 16:24:25.000000000 -0400
@@ -36,7 +36,7 @@
void Put(char What) { fputc(What, Buffer); }
void Write(const char* Offset, long Size)
{ fwrite(Offset, 1, Size, Buffer); }
- truth IsOpen() { return truth(Buffer); }
+ truth IsOpen() { return truth(Buffer != NULL); }
void Close() { fclose(Buffer); }
void Flush() { fflush(Buffer); }
void ReOpen();
@@ -58,7 +58,7 @@
rect ReadRect();
int Get() { return fgetc(Buffer); }
void Read(char* Offset, long Size) { fread(Offset, 1, Size, Buffer); }
- truth IsOpen() { return truth(Buffer); }
+ truth IsOpen() { return truth(Buffer != NULL); }
truth Eof() { return feof(Buffer); }
void ClearFlags() { clearerr(Buffer); }
void SeekPosBegin(long Offset) { fseek(Buffer, Offset, SEEK_SET); }

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-af,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Include/lsquare.h~ 2004-12-10 10:51:41.000000000 -0500
+++ Main/Include/lsquare.h 2008-07-27 16:26:49.000000000 -0400
@@ -202,7 +202,7 @@
void PostProcessForBone(double&, int&);
void DisplayEngravedInfo(festring&) const;
truth EngravingsCanBeReadByPlayer();
- truth HasEngravings() const { return truth(Engraved); }
+ truth HasEngravings() const { return truth(Engraved != NULL); }
void FinalProcessForBone();
truth IsFreezed() const { return Flags & FREEZED; }
truth IsDangerousToBreathe(const character*) const;
@@ -237,7 +237,7 @@
void SendSunLightSignals();
const sunemittervector& GetSunEmitter() const { return SunEmitter; }
void ZeroReSunEmitatedFlags();
- virtual truth HasBeenSeen() const { return truth(Memorized); }
+ virtual truth HasBeenSeen() const { return truth(Memorized != NULL); }
truth CalculateIsTransparent();
void CalculateSunLightLuminance(ulong);
void CreateMemorized();

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ag,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Include/char.h~ 2004-12-10 10:51:40.000000000 -0500
+++ Main/Include/char.h 2008-07-27 16:27:46.000000000 -0400
@@ -991,7 +991,7 @@
truth IsUsingWeaponOfCategory(int) const;
virtual truth IsKamikazeDwarf() const { return false; }
void AddRandomScienceName(festring&) const;
- truth IsStuck() const { return truth(TrapData); }
+ truth IsStuck() const { return truth(TrapData != NULL); }
festring GetTrapDescription() const;
truth TryToUnStickTraps(v2);
void RemoveTrap(ulong);

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ah,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Include/stack.h~ 2004-10-26 15:36:44.000000000 -0400
+++ Main/Include/stack.h 2008-07-27 16:28:11.000000000 -0400
@@ -56,7 +56,7 @@
stackiterator(stackslot* Slot) : Slot(Slot) { }
stackiterator& operator++() { Slot = Slot->Next; return *this; }
stackiterator& operator--() { Slot = Slot->Last; return *this; }
- truth HasItem() const { return truth(Slot); }
+ truth HasItem() const { return truth(Slot != NULL); }
item* operator->() const { return Slot->Item; }
item* operator*() const { return Slot->Item; }
const stackslot& GetSlot() const { return *Slot; }

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ai,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Include/human.h~ 2004-12-10 10:51:41.000000000 -0500
+++ Main/Include/human.h 2008-07-27 16:29:28.000000000 -0400
@@ -130,7 +130,7 @@
virtual truth CheckIfEquipmentIsNotUsable(int) const;
virtual void AddSpecialStethoscopeInfo(felist&) const;
virtual item* GetPairEquipment(int) const;
- virtual truth HasHead() const { return truth(GetHead()); }
+ virtual truth HasHead() const { return truth(GetHead() != NULL); }
virtual const festring& GetStandVerb() const;
virtual head* Behead();
virtual void AddAttributeInfo(festring&) const;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aj,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Source/command.cpp~ 2004-12-10 10:51:44.000000000 -0500
+++ Main/Source/command.cpp 2008-07-27 16:31:07.000000000 -0400
@@ -1043,7 +1043,7 @@
Char->SetAction(Go);
Char->EditAP(Char->GetStateAPGain(100)); // gum solution
Char->GoOn(Go, true);
- return truth(Char->GetAction());
+ return truth(Char->GetAction() != NULL);
}
truth commandsystem::ShowConfigScreen(character*)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ak,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Source/lsquare.cpp~ 2004-12-10 10:51:47.000000000 -0500
+++ Main/Source/lsquare.cpp 2008-07-27 16:34:33.000000000 -0400
@@ -1585,7 +1585,7 @@
character* Character = GetCharacter();
if(Character)
- DuplicatedSomething = truth(Character->DuplicateToNearestSquare(Beam.Owner, Beam.SpecialParameters));
+ DuplicatedSomething = truth(Character->DuplicateToNearestSquare(Beam.Owner, Beam.SpecialParameters) != NULL);
if(GetStack()->Duplicate(DuplicatedSomething ? 4 : 5, Beam.SpecialParameters))
DuplicatedSomething = true;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-al,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Source/lterras.cpp~ 2004-12-10 10:51:47.000000000 -0500
+++ Main/Source/lterras.cpp 2008-07-27 16:35:06.000000000 -0400
@@ -1193,7 +1193,7 @@
truth fountain::IsFountainWithWater() const
{
- return truth(GetSecondaryMaterial());
+ return truth(GetSecondaryMaterial() != NULL);
}
void liquidterrain::SurviveEffect(character* Survivor)

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-am,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Source/fluid.cpp~ 2004-12-10 10:51:45.000000000 -0500
+++ Main/Source/fluid.cpp 2008-07-27 16:38:19.000000000 -0400
@@ -598,7 +598,7 @@
if(!UseImage())
return;
- truth InitRandMap = truth(MotherItem);
+ truth InitRandMap = truth(MotherItem != NULL);
Image.Clear(InitRandMap);
if(GearImage)

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-an,v 1.1 2008/07/27 21:44:47 dholland Exp $
--- Main/Source/script.cpp.orig 2004-10-26 15:37:05.000000000 -0400
+++ Main/Source/script.cpp 2008-07-27 16:45:49.000000000 -0400
@@ -471,7 +471,7 @@
INIT_ENTRY(Flags);
}
-contentscript<character>::contentscript<character>()
+contentscript<character>::contentscript()
: INIT(Team, DEFAULT_TEAM),
INIT(Flags, 0)
{ }
@@ -498,7 +498,7 @@
return Instance;
}
-contentscript<item>::contentscript<item>()
+contentscript<item>::contentscript()
: INIT(Category, ANY_CATEGORY),
INIT(MinPrice, 0),
INIT(MaxPrice, MAX_PRICE),
@@ -592,7 +592,7 @@
INIT_ENTRY(IsInside);
}
-contentscript<olterrain>::contentscript<olterrain>()
+contentscript<olterrain>::contentscript()
: INIT(VisualEffects, 0),
INIT(AttachedArea, DEFAULT_ATTACHED_AREA),
INIT(AttachedEntry, DEFAULT_ATTACHED_ENTRY)
@@ -679,7 +679,7 @@
}
}
-template <class type, class contenttype> contentmap<type, contenttype>::contentmap<type, contenttype>() : ContentMap(0) { }
+template <class type, class contenttype> contentmap<type, contenttype>::contentmap() : ContentMap(0) { }
template <class type, class contenttype> contentmap<type, contenttype>::~contentmap<type, contenttype>()
{