summaryrefslogtreecommitdiff
path: root/games/cgoban-java/Makefile
blob: 56cf72976855c697a9f55174ec5bcef0466a0467 (plain)
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
# $NetBSD: Makefile,v 1.39 2007/05/25 02:41:25 rh Exp $
#

DISTNAME=	cgoban-java-3.3.17
PKGREVISION=	1
CATEGORIES=	games java
MASTER_SITES=	${MASTER_SITE_LOCAL}
# Mirrored from http://files.gokgs.com/javaBin/cgoban.jar
EXTRACT_SUFX=	.jar

MAINTAINER=	rh@NetBSD.org
HOMEPAGE=	http://www.gokgs.com/
COMMENT=	Client for the Kiseido Go Server and SGF viewer/editor

WRKSRC=		${WRKDIR}
USE_JAVA=	run
USE_JAVA2=	yes
USE_TOOLS+=	printf

INSTALLATION_DIRS=	bin lib/java

do-build:
	printf "#! ${SH}\\nexec `${ECHO} '${PKG_JAVA_HOME}'-java |	\
		${SED}	-e 's/java/bin/'				\
			-e 's/-6/6/'					\
			-e 's/-1.5/15/'					\
			-e 's/-1.4/14/'					\
			-e 's/-1.3.[0-9]/13/'`				\
		-jar ${PREFIX}/lib/java/${DISTNAME}.jar \"\$$@\"\\n"	\
			> ${WRKSRC}/cgoban-java.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/cgoban-java.sh ${PREFIX}/bin/cgoban-java
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${PREFIX}/lib/java/${DISTNAME}.jar

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"