KsirK computerized version of a well known strategy game. In the current

version, KsirK is a multi-player network-enabled game with an AI.

The goal of the game is simply to conquer the World. It is done by
attacking your neighbors with your armies.
This commit is contained in:
zhuk 2013-04-24 12:30:36 +00:00
parent fc861d8453
commit 8a0a463b9d
7 changed files with 242 additions and 0 deletions

23
x11/kde4/ksirk/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 12:30:36 zhuk Exp $
COMMENT = strategy game for KDE
DISTNAME = ksirk-${MODKDE4_VERSION}
SHARED_LIBS = iris_ksirk 0.0 # 4.10
WANTLIB = c m pthread stdc++ z
WANTLIB += lib/qt4/Qt3Support lib/qt4/QtDBus lib/qt4/QtGui
WANTLIB += lib/qt4/QtNetwork lib/qt4/QtSvg lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/kdegamesprivate ${KDE4LIB}/kdeui ${KDE4LIB}/kio
WANTLIB += ${KDE4LIB}/knewstuff3
WANTLIB += qca2
MODULES = multimedia/phonon
MODKDE4_USE = games
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+2,-guic
LIB_DEPENDS = security/qca2
.include <bsd.port.mk>

2
x11/kde4/ksirk/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kde/ksirk-4.10.2.tar.xz) = RTLYG6eQA1OMkBvmyHoKNwuoTZGFtaOammt+GhsAF8M=
SIZE (kde/ksirk-4.10.2.tar.xz) = 6013220

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ksirk_iris_src_jdns_jdns_p_h,v 1.1.1.1 2013/04/24 12:30:36 zhuk Exp $
--- ksirk/iris/src/jdns/jdns_p.h.orig Mon Feb 11 23:18:27 2013
+++ ksirk/iris/src/jdns/jdns_p.h Mon Feb 11 23:19:15 2013
@@ -40,6 +40,8 @@
# define JDNS_OS_FREEBSD
#elif defined(__NetBSD__)
# define JDNS_OS_NETBSD
+#elif defined(__OpenBSD__)
+# define JDNS_OS_OPENBSD
#elif defined(sun) || defined(__sun)
# define JDNS_OS_SOLARIS
#elif defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__))

View File

@ -0,0 +1,51 @@
$OpenBSD: patch-ksirk_iris_src_jdns_jdns_sys_c,v 1.1.1.1 2013/04/24 12:30:36 zhuk Exp $
--- ksirk/iris/src/jdns/jdns_sys.c.orig Fri Mar 1 11:16:50 2013
+++ ksirk/iris/src/jdns/jdns_sys.c Tue Mar 26 15:07:44 2013
@@ -702,7 +702,7 @@ static int my_res_init()
#endif
#if defined(JDNS_OS_MAC) || defined(JDNS_OS_FREEBSD) || \
-defined(JDNS_OS_NETBSD) || defined (JDNS_OS_SOLARIS)
+defined(JDNS_OS_NETBSD) || defined(JDNS_OS_OPENBSD) || defined (JDNS_OS_SOLARIS)
# define USE_EXTEXT
#endif
@@ -721,6 +721,12 @@ static jdns_dnsparams_t *dnsparams_get_unixsys()
#define RESVAR _res
#endif
+#ifdef JDNS_OS_OPENBSD
+#define RESVAREXT _res_ext
+#else
+#define RESVAREXT RESVAR._u._ext
+#endif
+
params = jdns_dnsparams_new();
/* error initializing? */
@@ -728,15 +734,21 @@ static jdns_dnsparams_t *dnsparams_get_unixsys()
return params;
/* nameservers - ipv6 */
- for(n = 0; n < MAXNS && n < RESVAR._u._ext.nscount; ++n)
+#ifdef JDNS_OS_OPENBSD
+ for(n = 0; n < MAXNS; ++n)
+#else
+ for(n = 0; n < MAXNS && n < RESVAREXT.nscount; ++n)
+#endif
{
jdns_address_t *addr;
struct sockaddr_in6 *sa6;
-#ifdef USE_EXTEXT
- sa6 = ((struct sockaddr_in6 *)RESVAR._u._ext.ext) + n;
+#if defined(USE_EXTEXT) && !defined(JDNS_OS_OPENBSD)
+ sa6 = ((struct sockaddr_in6 *)RESVAREXT.ext) + n;
+#elif defined(JDNS_OS_OPENBSD)
+ sa6 = &RESVAREXT.nsaddr_list[n];
#else
- sa6 = RESVAR._u._ext.nsaddrs[n];
+ sa6 = RESVAREXT.nsaddrs[n];
#endif
if(sa6 == NULL)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ksirk_iris_src_xmpp_zlib_zlibcompressor_cpp,v 1.1.1.1 2013/04/24 12:30:36 zhuk Exp $
--- ksirk/iris/src/xmpp/zlib/zlibcompressor.cpp.orig Tue Mar 26 15:08:57 2013
+++ ksirk/iris/src/xmpp/zlib/zlibcompressor.cpp Tue Mar 26 15:10:38 2013
@@ -33,7 +33,7 @@ void ZLibCompressor::flush()
write(QByteArray(),true);
int result = deflateEnd(zlib_stream_);
if (result != Z_OK)
- qWarning("compressor.c: deflateEnd failed (%s)", result);
+ qWarning("compressor.c: deflateEnd failed (%d)", result);
flushed_ = true;
}

5
x11/kde4/ksirk/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
KsirK computerized version of a well known strategy game. In the current
version, KsirK is a multi-player network-enabled game with an AI.
The goal of the game is simply to conquer the World. It is done by
attacking your neighbors with your armies.

137
x11/kde4/ksirk/pkg/PLIST Normal file
View File

@ -0,0 +1,137 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 12:30:36 zhuk Exp $
@bin bin/ksirk
@bin bin/ksirkskineditor
@lib ${KDE4LIB}/libiris_ksirk.so.${LIBiris_ksirk_VERSION}
@lib lib/libiris_ksirk.so.${LIBiris_ksirk_VERSION}
share/applications/kde4/ksirk.desktop
share/applications/kde4/ksirkskineditor.desktop
share/apps/ksirk/
share/apps/ksirk/jabber.png
share/apps/ksirk/ksirkui.rc
share/apps/ksirk/skins/
share/apps/ksirk/skins/default/
share/apps/ksirk/skins/default/Data/
share/apps/ksirk/skins/default/Data/world.desktop
share/apps/ksirk/skins/default/Images/
share/apps/ksirk/skins/default/Images/2DownArrow.png
share/apps/ksirk/skins/default/Images/2UpArrow.png
share/apps/ksirk/skins/default/Images/arena.svg
share/apps/ksirk/skins/default/Images/attackAuto.png
share/apps/ksirk/skins/default/Images/attackOne.png
share/apps/ksirk/skins/default/Images/attackThree.png
share/apps/ksirk/skins/default/Images/attackTwo.png
share/apps/ksirk/skins/default/Images/cancel.png
share/apps/ksirk/skins/default/Images/defendOne.png
share/apps/ksirk/skins/default/Images/defendTwo.png
share/apps/ksirk/skins/default/Images/downArrow.png
share/apps/ksirk/skins/default/Images/loader.gif
share/apps/ksirk/skins/default/Images/logoLeft.png
share/apps/ksirk/skins/default/Images/logoRight.png
share/apps/ksirk/skins/default/Images/map-mask.png
share/apps/ksirk/skins/default/Images/moveArmies.png
share/apps/ksirk/skins/default/Images/moveBackFive.png
share/apps/ksirk/skins/default/Images/moveBackOne.png
share/apps/ksirk/skins/default/Images/moveBackTen.png
share/apps/ksirk/skins/default/Images/moveFinish.png
share/apps/ksirk/skins/default/Images/moveFive.png
share/apps/ksirk/skins/default/Images/moveOne.png
share/apps/ksirk/skins/default/Images/moveTen.png
share/apps/ksirk/skins/default/Images/newNetGame.png
share/apps/ksirk/skins/default/Images/nextPlayer.png
share/apps/ksirk/skins/default/Images/pool.svg
share/apps/ksirk/skins/default/Images/recycling.png
share/apps/ksirk/skins/default/Images/recyclingFinished.png
share/apps/ksirk/skins/default/Images/snapshot.jpg
share/apps/ksirk/skins/default/Images/soldierKneeling.png
share/apps/ksirk/skins/default/Images/stopAttackAuto.png
share/apps/ksirk/skins/default/Images/upArrow.png
share/apps/ksirk/skins/default/Sounds/
share/apps/ksirk/skins/default/Sounds/cannon.wav
share/apps/ksirk/skins/default/Sounds/crash.wav
share/apps/ksirk/skins/default/Sounds/roll.wav
share/apps/ksirk/skins/skinsdir
share/apps/ksirkskineditor/
share/apps/ksirkskineditor/cross.png
share/apps/ksirkskineditor/ksirkskineditorui.rc
share/apps/ksirkskineditor/target.png
share/config.kcfg/ksirksettings.kcfg
share/config.kcfg/ksirkskineditorsettings.kcfg
share/config/ksirk.knsrc
share/doc/HTML/en/ksirk/
share/doc/HTML/en/ksirk/attackOne.png
share/doc/HTML/en/ksirk/attackThree.png
share/doc/HTML/en/ksirk/attackTwo.png
share/doc/HTML/en/ksirk/attackmenu.png
share/doc/HTML/en/ksirk/autoattack.png
share/doc/HTML/en/ksirk/common
share/doc/HTML/en/ksirk/defensedialog.png
share/doc/HTML/en/ksirk/displaygoalmessage.png
share/doc/HTML/en/ksirk/displaygoalwarningmessage.png
share/doc/HTML/en/ksirk/firing-screenshot.png
share/doc/HTML/en/ksirk/index.cache.bz2
share/doc/HTML/en/ksirk/index.docbook
share/doc/HTML/en/ksirk/introscreen.png
share/doc/HTML/en/ksirk/invasionslider.png
share/doc/HTML/en/ksirk/joinnetgame.png
share/doc/HTML/en/ksirk/joueurSuivant.png
share/doc/HTML/en/ksirk/justjoined.png
share/doc/HTML/en/ksirk/messagesent.png
share/doc/HTML/en/ksirk/moveArmies.png
share/doc/HTML/en/ksirk/newGame.png
share/doc/HTML/en/ksirk/newgamedialog.png
share/doc/HTML/en/ksirk/numnetplayersdialog.png
share/doc/HTML/en/ksirk/placingarmies.png
share/doc/HTML/en/ksirk/playersetupdialog.png
share/doc/HTML/en/ksirk/preferences.png
share/doc/HTML/en/ksirk/quit.png
share/doc/HTML/en/ksirk/recycling.png
share/doc/HTML/en/ksirk/recyclingFinished.png
share/doc/HTML/en/ksirk/shownumberofarmies.png
share/doc/HTML/en/ksirkskineditor/
share/doc/HTML/en/ksirkskineditor/alaska.png
share/doc/HTML/en/ksirkskineditor/attackOne.png
share/doc/HTML/en/ksirkskineditor/attackThree.png
share/doc/HTML/en/ksirkskineditor/attackTwo.png
share/doc/HTML/en/ksirkskineditor/bluedices.png
share/doc/HTML/en/ksirkskineditor/cannon.png
share/doc/HTML/en/ksirkskineditor/cavalry.png
share/doc/HTML/en/ksirkskineditor/common
share/doc/HTML/en/ksirkskineditor/defendOne.png
share/doc/HTML/en/ksirkskineditor/defendTwo.png
share/doc/HTML/en/ksirkskineditor/exploding.png
share/doc/HTML/en/ksirkskineditor/firing.png
share/doc/HTML/en/ksirkskineditor/index.cache.bz2
share/doc/HTML/en/ksirkskineditor/index.docbook
share/doc/HTML/en/ksirkskineditor/infantry.png
share/doc/HTML/en/ksirkskineditor/italy.png
share/doc/HTML/en/ksirkskineditor/load.png
share/doc/HTML/en/ksirkskineditor/main-snapshot.png
share/doc/HTML/en/ksirkskineditor/map-mask.png
share/doc/HTML/en/ksirkskineditor/map.png
share/doc/HTML/en/ksirkskineditor/mark1.png
share/doc/HTML/en/ksirkskineditor/moveArmies.png
share/doc/HTML/en/ksirkskineditor/newNetGame.png
share/doc/HTML/en/ksirkskineditor/nextPlayer.png
share/doc/HTML/en/ksirkskineditor/recycling.png
share/doc/HTML/en/ksirkskineditor/recyclingFinished.png
share/doc/HTML/en/ksirkskineditor/reddices.png
share/doc/HTML/en/ksirkskineditor/save.png
share/icons/hicolor/128x128/apps/ksirk.png
share/icons/hicolor/16x16/apps/ksirk.png
share/icons/hicolor/22x22/apps/ksirk.png
share/icons/hicolor/32x32/apps/ksirk.png
share/icons/hicolor/48x48/apps/ksirk.png
share/icons/hicolor/64x64/apps/ksirk.png
share/icons/locolor/
share/icons/locolor/16x16/
share/icons/locolor/16x16/apps/
share/icons/locolor/16x16/apps/ksirk.png
share/icons/locolor/32x32/
share/icons/locolor/32x32/apps/
share/icons/locolor/32x32/apps/ksirk.png
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/locolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/locolor