freebsd-ports/games/py-pychess/Makefile
Nicola Vitale 9f80c4ac6c PyChess is a gnome-inspired chess client written in Python.
Features

    * CECP and UCI Engine support
    * Free on-line play on the FICS chess servers
    * Read and writes the PGN, EPD and FEN chess file formats
    * Built-in Python based engine
    * Undo and pause functions
    * Board and piece animation
    * Drag and drop
    * Tabbed interface
    * Hints and spy arrows
    * Opening book side panel using sqlite
    * Scoreplot side panel
    * "Enter game" in pgn dialog
    * Internationalised or figure pieces in notation
    * Optional sounds
    * Legal move highlighting
    * A nice and accessible look

WWW:	http://pychess.googlepages.com/
2008-01-25 17:37:57 +00:00

69 lines
1.6 KiB
Makefile

# New ports collection makefile for: pychess
# Date created: 2008-01-23
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pychess
DISTVERSION= 0.8beta4
#PORTREVISION= 0
#PORTEPOCH= 0
CATEGORIES= games
MASTER_SITES= http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A GTK chess client written in Python
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=3-2.5.1_1:${PORTSDIR}/databases/py-sqlite3
INSTALLS_ICONS= yes
OPTIONS= PYGSTREAMER "Install gst-python for audio support" off \
CRAFTY "Install crafty (chess engine)" off \
GNUCHESS "Install gnuchess (chess engine)" off \
PHALANX "Install phalanx (chess engine)" off \
SJENG "Install sjeng (chess engine)" off
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
PYDISTUTILS_PKGVERSION= ${DISTVERSION}
USE_GNOME= pygnomedesktop
USE_GETTEXT= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
REINPLACE_ARGS= -i.bak -e 's,%%PREFIX%%,${PREFIX},' -e 's,share/games/pychess,${DATADIR},'
.if !defined(NO_INSTALL_MANPAGES)
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
.endif
post-patch:
cd ${WRKSRC} && ${REINPLACE_CMD} ${PORTNAME} ${PYSETUP}
.include <bsd.port.pre.mk>
.if defined (WITH_PYGSTREAMER)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}-gstreamer>=0.10.8:${PORTSDIR}/py-gstreamer
.endif
.if defined (WITH_CRAFTY)
RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty
.endif
.if defined (WITH_GNUCHESS)
RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
.endif
.if defined (WITH_PHALANX)
RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
.endif
.if defined (WITH_SJENG)
RUN_DEPENDS+= sjeng:${PORTSDIR}/games/sjeng
.endif
.include <bsd.port.post.mk>