Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2013 16:16:18 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315544 - in head/games: . chessx chessx/files
Message-ID:  <201303291616.r2TGGIZk048574@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Fri Mar 29 16:16:18 2013
New Revision: 315544
URL: http://svnweb.freebsd.org/changeset/ports/315544

Log:
  add new port: games/chessx
  
  ChessX is an open source chess database based on Qt4. With ChessX you
  can operate on your collection of chess games in many ways: browse,
  edit, add, organize, analyze, etc. Additionally ChessX can interface
  with chess engines via UCI and Winboard protocol.
  
  WWW: http://chessx.sourceforge.net/
  
  PR:		177338
  Submitted by:	yamagi@yamagi.org

Added:
  head/games/chessx/
  head/games/chessx/Makefile   (contents, props changed)
  head/games/chessx/distinfo   (contents, props changed)
  head/games/chessx/files/
  head/games/chessx/files/patch-src_database_enginelist.cpp   (contents, props changed)
  head/games/chessx/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Fri Mar 29 16:09:23 2013	(r315543)
+++ head/games/Makefile	Fri Mar 29 16:16:18 2013	(r315544)
@@ -129,6 +129,7 @@
     SUBDIR += cgoban
     SUBDIR += chanta
     SUBDIR += chapping
+    SUBDIR += chessx
     SUBDIR += chocolate-doom
     SUBDIR += cheech
     SUBDIR += childsplay

Added: head/games/chessx/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/chessx/Makefile	Fri Mar 29 16:16:18 2013	(r315544)
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+PORTNAME=	chessx
+PORTVERSION=	0.9.6
+CATEGORIES=	games
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
+DISTNAME=	${PORTNAME}-${PORTVERSION:S/./-/g}
+
+MAINTAINER=	yamagi@yamagi.org
+COMMENT=	Qt4 chess database application
+
+LICENSE=	GPLv2 # (or later)
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+USE_QT4=	corelib gui svg xml network moc_build qmake_build rcc_build uic_build
+MAKE_JOBS_SAVE=	yes
+
+OPTIONS_DEFINE=	STOCKFISH CRAFTY
+STOCKFISH_DESC=	Build with Stockfish Chess Engine
+CRAFTY_DESC=	Build with Crafty Chess Application
+OPTIONS_DEFAULT=STOCKFISH CRAFTY
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSTOCKFISH}
+RUN_DEPENDS+=	stockfish:${PORTSDIR}/games/stockfish
+.endif
+
+.if ${PORT_OPTIONS:MCRAFTY}
+RUN_DEPENDS+=	crafty:${PORTSDIR}/games/crafty
+.endif
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
+
+DESKTOP_ENTRIES="ChessX" "" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+				"${PORTNAME}" "Game;BoardGame;" true
+
+do-configure:
+	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${PREFIX}/bin)
+	(cd ${WRKSRC}/data/images && ${INSTALL_DATA} chessx.png \
+		${PREFIX}/share/pixmaps/${PORTNAME}.png)
+
+.include <bsd.port.mk>

Added: head/games/chessx/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/chessx/distinfo	Fri Mar 29 16:16:18 2013	(r315544)
@@ -0,0 +1,2 @@
+SHA256 (chessx-0-9-6.tar.gz) = 37ec638736b0e20fbdfb5db374bf971d76d81fe267ace3bde8b4e5c2d2e9c601
+SIZE (chessx-0-9-6.tar.gz) = 3213601

Added: head/games/chessx/files/patch-src_database_enginelist.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/chessx/files/patch-src_database_enginelist.cpp	Fri Mar 29 16:16:18 2013	(r315544)
@@ -0,0 +1,16 @@
+--- src/database/enginelist.cpp_orig	2013-03-24 11:48:27.000000000 +0100
++++ src/database/enginelist.cpp	2013-03-24 11:48:59.000000000 +0100
+@@ -50,7 +50,12 @@
+     QString path1 = path + "/engines-linux/uci";
+     QString path2 = path + "/engines-linux/winboard";
+ #endif
+-
++ 
++#ifdef Q_OS_FREEBSD
++    QString path1 = path + "/engines-freebsd/uci";
++    QString path2 = path + "/engines-freebsd/winboard";
++#endif
++ 
+     restoreEmptyFromPath(path1, EngineData::UCI);
+     restoreEmptyFromPath(path2, EngineData::WinBoard);
+ }

Added: head/games/chessx/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/chessx/pkg-descr	Fri Mar 29 16:16:18 2013	(r315544)
@@ -0,0 +1,6 @@
+ChessX is an open source chess database based on Qt4. With ChessX you
+can operate on your collection of chess games in many ways: browse,
+edit, add, organize, analyze, etc. Additionally ChessX can interface
+with chess engines via UCI and Winboard protocol.
+
+WWW: http://chessx.sourceforge.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303291616.r2TGGIZk048574>