summaryrefslogtreecommitdiffstats
path: root/games/jchessboard/Makefile
blob: 160c9e8f61c8f993b4593ad9fd5917f8ce128a82 (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
38
39
40
# New ports collection makefile for:	jchessboard
# Date created:				24 November 2005
# Whom:					Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#

PORTNAME=	jchessboard
PORTVERSION=	1.5
PORTREVISION=	2
CATEGORIES=	games java
MASTER_SITES=	SF
DISTNAME=	JChessBoard-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Chess game and PGN viewer/editor written in Java

USE_JAVA=	yes
JAVA_VERSION=	1.5+

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

PLIST_FILES=	bin/${PORTNAME} \
		%%DATADIR%%/${JARFILE}
PLIST_DIRS=	%%DATADIR%%

JARFILE=	JChessBoard.jar

do-build:
	@(${ECHO_CMD} "#!${SH}"; \
	  ${ECHO_CMD} "${JAVA} -jar ${DATADIR}/${JARFILE}") \
	  > ${WRKDIR}/${PORTNAME}

do-install:
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${DATADIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud