summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-08-26 23:30:21 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2013-08-26 23:30:21 +0000
commitee30261012f72ea5cf64d44884fd8bdefd202167 (patch)
tree9a2814e58e0d52dae1c362d8359f11647a8ce448
parent1b0a0d8bf6f66851219ee625e05d832b55aeba54 (diff)
downloadFreeBSD-ports-ee30261012f72ea5cf64d44884fd8bdefd202167.zip
FreeBSD-ports-ee30261012f72ea5cf64d44884fd8bdefd202167.tar.gz
- Update to 1.4
PR: 181224 Submitted by: nemysis <nemysis@gmx.ch>
-rw-r--r--games/qnetwalk/Makefile33
-rw-r--r--games/qnetwalk/distinfo4
-rw-r--r--games/qnetwalk/files/patch-cell.cpp20
-rw-r--r--games/qnetwalk/files/patch-cell.h0
-rw-r--r--games/qnetwalk/pkg-plist41
5 files changed, 64 insertions, 34 deletions
diff --git a/games/qnetwalk/Makefile b/games/qnetwalk/Makefile
index af767b0..57bb5a3 100644
--- a/games/qnetwalk/Makefile
+++ b/games/qnetwalk/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= qnetwalk
-PORTVERSION= 1.3
-PORTREVISION= 6
+PORTVERSION= 1.4
CATEGORIES= games
MASTER_SITES= http://qt.osdn.org.ua/ \
http://mirror.amdmi3.ru/distfiles/
@@ -11,22 +10,34 @@ MASTER_SITES= http://qt.osdn.org.ua/ \
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Qt-version of the NetWalk game
+LICENSE= GPLv2
+
USE_QT4= corelib gui qmake_build moc_build rcc_build
+USE_SDL= mixer
MAN6= qnetwalk.6
+PORTDOCS= ChangeLog README
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-configure:
- @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS}
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
+ ${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/qnetwalk ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/qnetwalk.6 ${MAN6PREFIX}/man/man6
- ${MKDIR} ${DATADIR}/sounds
- ${INSTALL_DATA} ${WRKSRC}/sounds/*.wav ${DATADIR}/sounds
- ${MKDIR} ${DATADIR}/translations
- ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations
- ${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} "pics sounds translations" ${DATADIR})
+ @${LN} -sf ${DATADIR}/pics/computer2.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+ @${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/menu/qnetwalk.desktop ${PREFIX}/share/applications
- ${INSTALL_DATA} ${WRKSRC}/menu/qnetwalk.xpm ${PREFIX}/share/pixmaps
+
+ ${INSTALL_MAN} ${MAN6:S|^|${WRKSRC}/|} ${MAN6PREFIX}/man/man6
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/games/qnetwalk/distinfo b/games/qnetwalk/distinfo
index d77eb39..94dbbf7 100644
--- a/games/qnetwalk/distinfo
+++ b/games/qnetwalk/distinfo
@@ -1,2 +1,2 @@
-SHA256 (qnetwalk-1.3.tar.gz) = 583b11513cca87caf0c3615291f2df3e06e580aaa1ff09c88d19504da2274c66
-SIZE (qnetwalk-1.3.tar.gz) = 148686
+SHA256 (qnetwalk-1.4.tar.gz) = 35e23e18e2b2b565d07bdb93abf9100debfc8e4be5bb34d5992c4d3f14d3279c
+SIZE (qnetwalk-1.4.tar.gz) = 153863
diff --git a/games/qnetwalk/files/patch-cell.cpp b/games/qnetwalk/files/patch-cell.cpp
deleted file mode 100644
index 3ae69f7..0000000
--- a/games/qnetwalk/files/patch-cell.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
---- cell.cpp.orig 2008-03-30 13:29:12.000000000 +0400
-+++ cell.cpp 2013-08-07 21:24:52.637031376 +0400
-@@ -19,7 +19,7 @@
- Cell::PixmapMap Cell::shadowpixmap;
- Cell::PixmapMap Cell::connectedpixmap;
- Cell::PixmapMap Cell::disconnectedpixmap;
--Cell::Cell * Cell::focusedCell = 0;
-+Cell * Cell::focusedCell = 0;
-
-
- void Cell::setGameOver(bool b)
-@@ -28,7 +28,7 @@
- }
-
-
--Cell::Cell * Cell::focused()
-+Cell * Cell::focused()
- {
- return focusedCell;
- }
diff --git a/games/qnetwalk/files/patch-cell.h b/games/qnetwalk/files/patch-cell.h
deleted file mode 100644
index e69de29..0000000
--- a/games/qnetwalk/files/patch-cell.h
+++ /dev/null
diff --git a/games/qnetwalk/pkg-plist b/games/qnetwalk/pkg-plist
index 96eb4f3..5c7b387 100644
--- a/games/qnetwalk/pkg-plist
+++ b/games/qnetwalk/pkg-plist
@@ -1,22 +1,61 @@
bin/qnetwalk
share/applications/qnetwalk.desktop
-share/pixmaps/qnetwalk.xpm
+share/pixmaps/qnetwalk.png
+%%DATADIR%%/pics/background.png
+%%DATADIR%%/pics/cable0001.png
+%%DATADIR%%/pics/cable0010.png
+%%DATADIR%%/pics/cable0011.png
+%%DATADIR%%/pics/cable0100.png
+%%DATADIR%%/pics/cable0101.png
+%%DATADIR%%/pics/cable0110.png
+%%DATADIR%%/pics/cable0111.png
+%%DATADIR%%/pics/cable1000.png
+%%DATADIR%%/pics/cable1001.png
+%%DATADIR%%/pics/cable1010.png
+%%DATADIR%%/pics/cable1011.png
+%%DATADIR%%/pics/cable1100.png
+%%DATADIR%%/pics/cable1101.png
+%%DATADIR%%/pics/cable1110.png
+%%DATADIR%%/pics/computer1.png
+%%DATADIR%%/pics/computer2.png
+%%DATADIR%%/pics/focus.png
+%%DATADIR%%/pics/highscores.png
+%%DATADIR%%/pics/homepage.png
+%%DATADIR%%/pics/locked.png
+%%DATADIR%%/pics/newgame.png
+%%DATADIR%%/pics/qnetwalk.png
+%%DATADIR%%/pics/quit.png
+%%DATADIR%%/pics/server.png
+%%DATADIR%%/pics/shadow.png
%%DATADIR%%/sounds/click.wav
%%DATADIR%%/sounds/connect.wav
%%DATADIR%%/sounds/start.wav
%%DATADIR%%/sounds/turn.wav
%%DATADIR%%/sounds/win.wav
%%DATADIR%%/translations/qnetwalk_de.qm
+%%DATADIR%%/translations/qnetwalk_de.ts
%%DATADIR%%/translations/qnetwalk_es.qm
+%%DATADIR%%/translations/qnetwalk_es.ts
%%DATADIR%%/translations/qnetwalk_fr.qm
+%%DATADIR%%/translations/qnetwalk_fr.ts
%%DATADIR%%/translations/qnetwalk_it.qm
+%%DATADIR%%/translations/qnetwalk_it.ts
%%DATADIR%%/translations/qnetwalk_nl.qm
+%%DATADIR%%/translations/qnetwalk_nl.ts
%%DATADIR%%/translations/qnetwalk_pl.qm
+%%DATADIR%%/translations/qnetwalk_pl.ts
%%DATADIR%%/translations/qnetwalk_pt_BR.qm
+%%DATADIR%%/translations/qnetwalk_pt_BR.ts
%%DATADIR%%/translations/qnetwalk_ru.qm
+%%DATADIR%%/translations/qnetwalk_ru.ts
%%DATADIR%%/translations/qnetwalk_tr.qm
+%%DATADIR%%/translations/qnetwalk_tr.ts
%%DATADIR%%/translations/qnetwalk_ua.qm
+%%DATADIR%%/translations/qnetwalk_ua.ts
+%%DATADIR%%/translations/qnetwalk_zh_CN.qm
+%%DATADIR%%/translations/qnetwalk_zh_CN.ts
@dirrm %%DATADIR%%/translations
@dirrm %%DATADIR%%/sounds
+@dirrm %%DATADIR%%/pics
@dirrm %%DATADIR%%
@dirrmtry share/applications
OpenPOWER on IntegriCloud