aboutsummaryrefslogtreecommitdiff
path: root/finance/venice/Makefile
blob: 3feabc94a8ca279b110b2bb3d65029a8f77acba3 (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
# New ports collection makefile for:	Merchant Of Venice
# Date created:		Thu Jan 20 03:24:01 UTC 2005
# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	venice
DISTVERSION=	0.71beta
CATEGORIES=	finance java
MASTER_SITES=	SF/mov/${PORTNAME}/0.71%20beta
DISTNAME=	${PORTNAME}-${DISTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Merchant Of Venice, a stock market trading program

NO_BUILD=	yes
USE_JAVA=	yes
JAVA_RUN=	yes
JAVA_VERSION=	1.4+

JARFILE=	${PORTNAME}.jar

PLIST_FILES=	bin/venice \
		%%JAVAJARDIR%%/${JARFILE}

# docs
DOC_FILES=	doc/manual.txt \
		doc/manual.html \
		changelog.txt \
		readme.txt

.ifndef(NOPORTDOCS)
PORTDOCS=	*
.endif

.include <bsd.port.pre.mk>

post-patch:
	${REINPLACE_CMD} -e s,venice.jar,${JAVAJARDIR}/${JARFILE}, ${WRKSRC}/venice

do-install:
# docs
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
# wrapper
	@${INSTALL_SCRIPT} ${WRKSRC}/venice ${PREFIX}/bin/
# jar
	@${MKDIR} ${JAVAJARDIR}
	@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/

.include <bsd.port.post.mk>