- Fix build on 4-stable

- Update MASTER_SITES and WWW: line
- Support PREFIX properly
- Support PLIST_FILES/PLIST_DIRS

PR:		80767
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Tilman Keskinoz 2005-05-08 14:09:58 +00:00
parent 206c47477a
commit 9f76df7345
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134860
4 changed files with 30 additions and 11 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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>

View File

@ -1,7 +0,0 @@
bin/kcheckers
share/kcheckers/kcheckers.pdn
%%DOCSDIR%%/README
%%DOCSDIR%%/AUTHORS
%%DOCSDIR%%/ChangeLog
@dirrm %%DOCSDIR%%
@dirrm share/kcheckers