aboutsummaryrefslogtreecommitdiffstats
path: root/www/jakarta-jmeter/Makefile
blob: fe0dcd7c5f999b4342d4908d3324aca7c61ceeae (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
# New ports collection makefile for:    jakarta-jmeter
# Date created:     12 August 2002
# Whom:         Ernst de Haan <znerd@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jmeter
PORTVERSION=    2.2
PORTREVISION=   1
CATEGORIES= www benchmarks java
MASTER_SITES=   ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= jmeter/binaries
PKGNAMEPREFIX=  jakarta-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= jb.quenot@caraldi.com
COMMENT=    Functional behaviour load and performance test application

USE_JAVA=   yes
JAVA_VERSION=   1.3+
NO_BUILD=   yes
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES=  jmeter.sh
DATAFILES=  bin extras lib

.if !defined(NOPORTDOCS)
PORTDOCS=   docs printable_docs README LICENSE
.endif

.include <bsd.port.pre.mk>

post-patch:
    ${FIND} ${WRKSRC} -type f \( -name \*.bat -o -name \*.orig -o -name \*.exe -o -name \*.bak \) -delete

do-install:
    cd ${WRKSRC} \
      && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \;
    cd ${WRKSRC} \
      && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(NOPORTDOCS)
    cd ${WRKSRC} \
      && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
    cd ${WRKSRC} \
      && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif
    ${INSTALL_SCRIPT} ${WRKDIR}/jmeter.sh ${PREFIX}/bin/jmeter

.include <bsd.port.post.mk>