freebsd-ports/games/mkgichessclub/Makefile
Nicola Vitale 30b7945cd5 MKGI Chess Club is a chess playing server with a pure Web interface.
It features complete player profile management, full HTML email notification
with embedded board display. It also includes an interface to match against
chess engines such as gnuchess or phalanx.

WWW:	http://sourceforge.net/projects/mkgichessclub
2008-02-01 23:44:06 +00:00

57 lines
1.2 KiB
Makefile

# New ports collection makefile for: mkgichessclub
# Date created: 2008-01-11
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mkgichessclub
PORTVERSION= 2.1.0
#PORTREVISION= 0
CATEGORIES= games
MASTER_SITES= SF
DISTNAME= MKGIChessClub-${PORTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A chess playing server with a pure web interface
RUN_DEPENDS= mysql-server>=4:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
OPTIONS= GNUCHESS "Install gnuchess robot" on \
PHALANX "Install phalanx robot" on
NO_BUILD= yes
SUB_FILES= pkg-message
USE_MYSQL= yes
USE_PHP= mysql pcre session
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/MKGIChessClub-${PORTVERSION}
do-install:
${MKDIR} ${DATADIR}; cd ${WRKSRC}; \
${INSTALL_DATA} database/* ${DATADIR}; \
${MKDIR} ${WWWDIR}; cd www; ${CP} -R . ${WWWDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}; \
${INSTALL_DATA} ${WRKSRC}/README.INSTALL ${DOCSDIR}
.endif
# pkg-message taken from www/b2evolution
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if defined (WITH_GNUCHESS)
RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
.endif
.if defined (WITH_PHALANX)
RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
.endif
.include <bsd.port.post.mk>