summaryrefslogtreecommitdiffstats
path: root/games/jin/Makefile
blob: 6f5c4d468b27e0b4be6c8a32772e955d1e7096a8 (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
41
42
43
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=	jin
PORTVERSION=	2.14.1
PORTREVISION=	2
CATEGORIES=	games java
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTNAME=	${PORTNAME}-${PORTVERSION}-unix

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	A graphical client for chess servers

NO_BUILD=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+

SUB_FILES=	${PORTNAME}
SUB_LIST=	JINJAR=${JINJAR}

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

JINJAR=	${PORTNAME}.jar

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}

FIND_DIRS=	. -type d
FIND_DATA=	. -type f
RM_FILES=	${PORTNAME} README changelog.txt gpl.txt

NO_STAGE=	yes
post-extract:
.for f in ${RM_FILES}
	@${RM} ${WRKSRC}/${f}
.endfor

do-install:
	@${MKDIR} ${DATADIR}
	@cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -exec ${MKDIR} ${DATADIR}/{} ";"
	@cd ${WRKSRC} && ${FIND} ${FIND_DATA} -exec ${INSTALL_DATA} {} ${DATADIR}/{} ";"
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}

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