aboutsummaryrefslogtreecommitdiff
path: root/games/mkgichessclub/Makefile
blob: 83f80d1ed49a313a03d41e946e46acd535820822 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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>