summaryrefslogtreecommitdiff
path: root/games/cgoban2/Makefile
blob: bd634f018204cfd27d3f488cb339804cec38c96c (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
# New ports collection makefile for:   cgoban2
# Date created:		30 October 2003
# Whom:			smazanek@steffen-mazanek.de
#
# $FreeBSD$
#

PORTNAME=	cgoban
PORTVERSION=	2.5.3
CATEGORIES=	games
MASTER_SITES=	http://kgs.kiseido.com/
DISTNAME=	${PORTNAME}-unix-${PORTVERSION}

MAINTAINER=	smazanek@steffen-mazanek.de
COMMENT=	Internet Go Server client and game editor

WRKSRC=		${WRKDIR}/${PORTNAME}
INSTALLDIR=	${PREFIX}/share/java/cgoban2

USE_JAVA=	1.3+
NO_BUILD=	yes

post-patch:
	${SED} -e 's|_DIR=.|_DIR=${INSTALLDIR}| ; s|^java|javavm|'\
		< ${WRKSRC}/cgoban.sh.in > ${WRKSRC}/cgoban2

do-install:
	${MKDIR} ${INSTALLDIR}
	${INSTALL_DATA} ${WRKSRC}/cgoban.jar ${INSTALLDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/cgoban2 ${PREFIX}/bin/cgoban2

.include <bsd.port.mk>