aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-12-30 16:47:56 +0800
committerkrion <krion@FreeBSD.org>2004-12-30 16:47:56 +0800
commit1ac4e3cb337d7d4f1a24c5bbb61162d6451ee373 (patch)
treefdbe543491c81f46ce4888e7c34c1e41216b92bb
parent99062d63b780684ae6dcf30b0e202930e05dd193 (diff)
downloadfreebsd-ports-gnome-1ac4e3cb337d7d4f1a24c5bbb61162d6451ee373.tar.gz
freebsd-ports-gnome-1ac4e3cb337d7d4f1a24c5bbb61162d6451ee373.tar.zst
freebsd-ports-gnome-1ac4e3cb337d7d4f1a24c5bbb61162d6451ee373.zip
Update to version 1.1
PR: ports/75623 Submitted by: Ports Fury
-rw-r--r--games/qnetwalk/Makefile25
-rw-r--r--games/qnetwalk/distinfo4
-rw-r--r--games/qnetwalk/pkg-plist5
3 files changed, 21 insertions, 13 deletions
diff --git a/games/qnetwalk/Makefile b/games/qnetwalk/Makefile
index 248a15e491d1..2a8efa6aeb2a 100644
--- a/games/qnetwalk/Makefile
+++ b/games/qnetwalk/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= qnetwalk
-PORTVERSION= 1.0
+PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://qt.osdn.org.ua/
@@ -15,23 +15,28 @@ COMMENT= Qt-version of the NetWalk game
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_QT_VER= 3
-QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
-QMAKE?= qmake
USE_REINPLACE= yes
MAKE_ENV= QTDIR="${QT_PREFIX}"
+MAN6= qnetwalk.6
+
+QMAKE?= qmake
+QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ "s|/usr/local|${PREFIX}|g" ${WRKSRC}/${PORTNAME}.pro
+
do-configure:
- ${REINPLACE_CMD} -e "s,/usr/local/share/games/qnetwalk,${DATADIR}," ${WRKSRC}/qnetwalk.pro
- ${REINPLACE_CMD} -e "s,share/games/,share/," ${WRKSRC}/main.cpp ${WRKSRC}/mainwindow.cpp
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
-spec ${QMAKESPEC} ${PORTNAME}.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qnetwalk ${PREFIX}/bin
- ${MKDIR} ${DATADIR}/sounds
- cd ${WRKSRC}; ${INSTALL_DATA} qnetwalk_ru.qm ${DATADIR}
- cd ${WRKSRC}; ${INSTALL_DATA} sounds/click.wav \
- sounds/connect.wav sounds/start.wav sounds/turn.wav \
- sounds/win.wav ${DATADIR}/sounds
+ ${INSTALL_MAN} ${WRKSRC}/qnetwalk.6 ${MANPREFIX}/man/man6
+ @${MKDIR} ${DATADIR}/sounds
+ ${INSTALL_DATA} ${WRKSRC}/sounds/*.wav ${DATADIR}/sounds
+ @${MKDIR} ${DATADIR}/translations
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations
.include <bsd.port.mk>
diff --git a/games/qnetwalk/distinfo b/games/qnetwalk/distinfo
index d38a1d9fe719..2372e5834797 100644
--- a/games/qnetwalk/distinfo
+++ b/games/qnetwalk/distinfo
@@ -1,2 +1,2 @@
-MD5 (qnetwalk-1.0.tar.gz) = 49e7c5288cbec1eb01281159b4a6fe98
-SIZE (qnetwalk-1.0.tar.gz) = 124445
+MD5 (qnetwalk-1.1.tar.gz) = 707956bcf8fe75b750ef7f01a1e6a086
+SIZE (qnetwalk-1.1.tar.gz) = 129450
diff --git a/games/qnetwalk/pkg-plist b/games/qnetwalk/pkg-plist
index c37838005fdc..84187682e793 100644
--- a/games/qnetwalk/pkg-plist
+++ b/games/qnetwalk/pkg-plist
@@ -1,9 +1,12 @@
bin/qnetwalk
-%%DATADIR%%/qnetwalk_ru.qm
%%DATADIR%%/sounds/click.wav
%%DATADIR%%/sounds/connect.wav
%%DATADIR%%/sounds/start.wav
%%DATADIR%%/sounds/turn.wav
%%DATADIR%%/sounds/win.wav
+%%DATADIR%%/translations/qnetwalk_fr.qm
+%%DATADIR%%/translations/qnetwalk_nl.qm
+%%DATADIR%%/translations/qnetwalk_ru.qm
@dirrm %%DATADIR%%/sounds
+@dirrm %%DATADIR%%/translations
@dirrm %%DATADIR%%