summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-01-07 11:14:10 +0000
committerwiz <wiz@pkgsrc.org>2005-01-07 11:14:10 +0000
commit2147ef136cc23c8f8497dad76b477ee3eb237dc8 (patch)
tree6f77ff37683ebbce394527fde84dd29ac3ca2ab6 /games
parent59a02524254ce0f27784a429b94f040d4e14f1c1 (diff)
downloadpkgsrc-2147ef136cc23c8f8497dad76b477ee3eb237dc8.tar.gz
Initial import of qnetwalk from pkgsrc-wip, packaged by Ian Zagorskih.
QNetwalk is a Qt-version of the popular NetWalk game for system administrators :) Rules of play: * You are the system administrator and your goal is to connect each computer to the central server. * Click the right mouse's button for turning the cable in a clockwise direction, and left mouse's button for turning the cable in a counter-clockwise direction. * Start the LAN with as few turns as possible!
Diffstat (limited to 'games')
-rw-r--r--games/qnetwalk/DESCR10
-rw-r--r--games/qnetwalk/Makefile39
-rw-r--r--games/qnetwalk/PLIST12
-rw-r--r--games/qnetwalk/distinfo7
-rw-r--r--games/qnetwalk/patches/patch-aa27
-rw-r--r--games/qnetwalk/patches/patch-ab17
-rw-r--r--games/qnetwalk/patches/patch-ac16
7 files changed, 128 insertions, 0 deletions
diff --git a/games/qnetwalk/DESCR b/games/qnetwalk/DESCR
new file mode 100644
index 00000000000..1cbe5c129c7
--- /dev/null
+++ b/games/qnetwalk/DESCR
@@ -0,0 +1,10 @@
+QNetwalk is a Qt-version of the popular NetWalk game
+for system administrators :)
+
+Rules of play:
+* You are the system administrator and your goal is
+ to connect each computer to the central server.
+* Click the right mouse's button for turning the cable
+ in a clockwise direction, and left mouse's button for
+ turning the cable in a counter-clockwise direction.
+* Start the LAN with as few turns as possible!
diff --git a/games/qnetwalk/Makefile b/games/qnetwalk/Makefile
new file mode 100644
index 00000000000..d2b60e70cf4
--- /dev/null
+++ b/games/qnetwalk/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+#
+
+DISTNAME= qnetwalk-1.1
+CATEGORIES= x11 games
+MASTER_SITES= http://qt.osdn.org.ua/
+
+MAINTAINER= ianzag@mail.ru
+HOMEPAGE= http://qt.osdn.org.ua/qnetwalk.html
+COMMENT= QNetwalk is a Qt-version of the popular NetWalk game
+
+# We need qmake to build package's Makefile
+BUILD_DEPENDS+= qt3-tools>=3.3:../../x11/qt3-tools
+
+USE_BUILDLINK3= YES
+USE_GNU_TOOLS+= make
+USE_LANGUAGES= c c++
+USE_LIBTOOL= YES
+
+QNETWALK_BIN= ${PREFIX}/bin
+QNETWALK_MAN= ${PREFIX}/man/man6
+QNETWALK_DATA= ${PREFIX}/share/games/${PKGBASE}
+QNETWALK_TR= ${QNETWALK_DATA}
+
+do-configure:
+ (cd ${WRKSRC} && ${QTDIR}/bin/qmake -o Makefile qnetwalk.pro)
+
+# Fix hardcoded paths
+SUBST_CLASSES= path
+SUBST_MESSAGE.path= "Fixing hardcoded paths."
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= qnetwalk.pro main.cpp mainwindow.cpp
+SUBST_SED.path= -e 's:@QNETWALK_BIN@:${QNETWALK_BIN}:g'
+SUBST_SED.path+= -e 's:@QNETWALK_MAN@:${QNETWALK_MAN}:g'
+SUBST_SED.path+= -e 's:@QNETWALK_TR@:${QNETWALK_TR}:g'
+SUBST_SED.path+= -e 's:@QNETWALK_DATA@:${QNETWALK_DATA}:g'
+
+.include "../../x11/qt3-libs/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/qnetwalk/PLIST b/games/qnetwalk/PLIST
new file mode 100644
index 00000000000..056b63a540c
--- /dev/null
+++ b/games/qnetwalk/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+bin/qnetwalk
+man/man6/qnetwalk.6
+share/games/qnetwalk/click.wav
+share/games/qnetwalk/connect.wav
+share/games/qnetwalk/qnetwalk_fr.qm
+share/games/qnetwalk/qnetwalk_nl.qm
+share/games/qnetwalk/qnetwalk_ru.qm
+share/games/qnetwalk/start.wav
+share/games/qnetwalk/turn.wav
+share/games/qnetwalk/win.wav
+@dirrm share/games/qnetwalk
diff --git a/games/qnetwalk/distinfo b/games/qnetwalk/distinfo
new file mode 100644
index 00000000000..f18c1a5e154
--- /dev/null
+++ b/games/qnetwalk/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+
+SHA1 (qnetwalk-1.1.tar.gz) = 7a245fa4243de7425c47d32f7c9a9a8603aabb59
+Size (qnetwalk-1.1.tar.gz) = 129450 bytes
+SHA1 (patch-aa) = 7b2a3c5c1806405956454769f4beed26f25f2318
+SHA1 (patch-ab) = 4421ffa6d763ca1b26da671524445318de8ea6cd
+SHA1 (patch-ac) = 4f193fc7c7347dc2e470418468b6d5a5a16431fe
diff --git a/games/qnetwalk/patches/patch-aa b/games/qnetwalk/patches/patch-aa
new file mode 100644
index 00000000000..75a3e42ba60
--- /dev/null
+++ b/games/qnetwalk/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+
+--- qnetwalk.pro.orig 2004-12-14 23:32:57.000000000 +0600
++++ qnetwalk.pro
+@@ -47,18 +47,18 @@ TRANSLATIONS = translations/qnetwalk_fr.
+ translations/qnetwalk_ru.ts
+
+ TARGET = qnetwalk
+-target.path = /usr/local/bin
++target.path = @QNETWALK_BIN@
+ INSTALLS += target
+
+-man.path = /usr/local/man/man6
++man.path = @QNETWALK_MAN@
+ man.files = qnetwalk.6
+ INSTALLS += man
+
+-tr.path = /usr/local/share/qnetwalk/translations
++tr.path = @QNETWALK_TR@
+ tr.files = translations/*.qm
+ INSTALLS += tr
+
+-sounds.path = /usr/local/share/qnetwalk/sounds
++sounds.path = @QNETWALK_DATA@
+ sounds.files = sounds/*.wav
+ INSTALLS += sounds
+
diff --git a/games/qnetwalk/patches/patch-ab b/games/qnetwalk/patches/patch-ab
new file mode 100644
index 00000000000..1aff3ba6a9a
--- /dev/null
+++ b/games/qnetwalk/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+
+--- main.cpp.orig 2004-12-10 03:32:00.000000000 +0600
++++ main.cpp
+@@ -30,11 +30,9 @@ int main(int argc, char ** argv)
+ qInstallPathTranslations());
+ app.installTranslator(&qtranslator);
+
+- QString appdir = app.applicationDirPath();
+ QString filename = QString("qnetwalk_") + QTextCodec::locale();
+ QTranslator translator(&app);
+- if(!translator.load(filename, appdir + "/translations/"))
+- translator.load(filename, appdir + "/../share/qnetwalk/translations/");
++ translator.load(filename, "@QNETWALK_TR@");
+ app.installTranslator(&translator);
+
+ MainWindow window;
diff --git a/games/qnetwalk/patches/patch-ac b/games/qnetwalk/patches/patch-ac
new file mode 100644
index 00000000000..f3dcb3eb29f
--- /dev/null
+++ b/games/qnetwalk/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+
+--- mainwindow.cpp.orig 2004-12-15 00:28:42.000000000 +0600
++++ mainwindow.cpp
+@@ -36,10 +36,7 @@ MainWindow::MainWindow() : QMainWindow(0
+ contrdirs[Cell::D] = Cell::U;
+ contrdirs[Cell::L] = Cell::R;
+
+- QString appdir = qApp->applicationDirPath();
+- soundpath = appdir + "/sounds/";
+- if(!QFile::exists(soundpath))
+- soundpath = appdir + "/../share/qnetwalk/sounds/";
++ soundpath = "@QNETWALK_DATA@";
+
+ winsound = new QSound(soundpath + "win.wav");
+ turnsound = new QSound(soundpath + "turn.wav");