aboutsummaryrefslogtreecommitdiff
path: root/games/kcheckers
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2005-05-08 14:09:58 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2005-05-08 14:09:58 +0000
commit9f76df73453a09f9de4edbad28600f40fd2dd07f (patch)
tree84a0a42357c90e4504186d800ee452f1cc64f557 /games/kcheckers
parent206c47477ad9768ea9f07f2f294ba78bb20bd1a4 (diff)
downloadports-9f76df73453a09f9de4edbad28600f40fd2dd07f.tar.gz
ports-9f76df73453a09f9de4edbad28600f40fd2dd07f.zip
Notes
Diffstat (limited to 'games/kcheckers')
-rw-r--r--games/kcheckers/Makefile21
-rw-r--r--games/kcheckers/files/patch-view.cc11
-rw-r--r--games/kcheckers/pkg-descr2
-rw-r--r--games/kcheckers/pkg-plist7
4 files changed, 30 insertions, 11 deletions
diff --git a/games/kcheckers/Makefile b/games/kcheckers/Makefile
index 64a0d1fd3bad..7624b5440bb8 100644
--- a/games/kcheckers/Makefile
+++ b/games/kcheckers/Makefile
@@ -6,8 +6,9 @@
PORTNAME= kcheckers
PORTVERSION= 0.6
+PORTREVISION= 1
CATEGORIES= games
-MASTER_SITES= http://kcheckers.osdn.org.ua/
+MASTER_SITES= http://kcheckers.org/
MAINTAINER= ports@FreeBSD.org
COMMENT= Qt version of the classic boardgame checkers
@@ -15,7 +16,19 @@ COMMENT= Qt version of the classic boardgame checkers
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_QT_VER= 3
-MAKE_ENV= QTDIR="${X11BASE}"
+USE_REINPLACE= yes
+MAKE_ENV= QTDIR="${QT_PREFIX}"
+
+PLIST_FILES= bin/kcheckers %%DATADIR%%/kcheckers.pdn
+PLIST_DIRS= %%DATADIR%%
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= AUTHORS ChangeLog README
+.endif
+
+post-patch:
+ cd ${WRKSRC} && ${REINPLACE_CMD} -e \
+ 's|/usr/local/share/kcheckers|${DATADIR}|g' kcheckers.pro
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
@@ -27,7 +40,9 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/kcheckers.pdn ${DATADIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}; ${INSTALL_DATA} README AUTHORS ChangeLog ${DOCSDIR}
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
.endif
.include <bsd.port.mk>
diff --git a/games/kcheckers/files/patch-view.cc b/games/kcheckers/files/patch-view.cc
new file mode 100644
index 000000000000..fcf7e46e7c8e
--- /dev/null
+++ b/games/kcheckers/files/patch-view.cc
@@ -0,0 +1,11 @@
+--- view.cc.orig Wed Apr 6 15:14:58 2005
++++ view.cc Sat May 7 22:35:53 2005
+@@ -632,7 +632,7 @@
+ m_game_over = true; //aw???
+ m_aborted = true;
+
+- QString text(tr("Game aborted.")+(!msg.isEmpty() ? "\n"+msg : ""));
++ QString text(tr("Game aborted.")+(!msg.isEmpty() ? QString("\n") +msg : QString("")));
+ m_status->setText(text);
+
+ emit working(false);
diff --git a/games/kcheckers/pkg-descr b/games/kcheckers/pkg-descr
index 8c7190b27313..e0957568de7a 100644
--- a/games/kcheckers/pkg-descr
+++ b/games/kcheckers/pkg-descr
@@ -1,5 +1,5 @@
Qt version of the classic boardgame "checkers". This game is also known
as "draughts".
-WWW: http://kcheckers.osdn.org.ua/
+WWW: http://kcheckers.org/
Author: Andi Peredri <andi@ukr.net>
diff --git a/games/kcheckers/pkg-plist b/games/kcheckers/pkg-plist
deleted file mode 100644
index e3898d8560cb..000000000000
--- a/games/kcheckers/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-bin/kcheckers
-share/kcheckers/kcheckers.pdn
-%%DOCSDIR%%/README
-%%DOCSDIR%%/AUTHORS
-%%DOCSDIR%%/ChangeLog
-@dirrm %%DOCSDIR%%
-@dirrm share/kcheckers