mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
87 lines
3.6 KiB
Makefile
87 lines
3.6 KiB
Makefile
# Created by: Ernst de Haan <znerd@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= apache-jmeter
|
|
PORTVERSION= 2.11
|
|
CATEGORIES= www benchmarks java
|
|
MASTER_SITES= APACHE/jmeter/binaries
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= Functional behaviour load and performance test application
|
|
|
|
LICENSE= APACHE20
|
|
|
|
# These are JAR-files installed by other ports. The list should keep
|
|
# growing until all Java applications install just their own JARs -- not
|
|
# the 3rd-party ones:
|
|
RUN_DEPENDS= ${JAVAJARDIR}/activation.jar:${PORTSDIR}/java/jaf \
|
|
${JAVAJARDIR}/avalon-framework.jar:${PORTSDIR}/devel/avalon-framework \
|
|
${JAVAJARDIR}/commons-codec.jar:${PORTSDIR}/java/jakarta-commons-codec \
|
|
${JAVALIBDIR}/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections \
|
|
${JAVALIBDIR}/commons-httpclient.jar:${PORTSDIR}/java/jakarta-commons-httpclient \
|
|
${JAVALIBDIR}/commons-io.jar:${PORTSDIR}/devel/jakarta-commons-io \
|
|
${JAVALIBDIR}/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang \
|
|
${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
|
|
${JAVAJARDIR}/commons-net.jar:${PORTSDIR}/net/jakarta-commons-net \
|
|
${JAVAJARDIR}/httpclient.jar:${PORTSDIR}/www/httpclient \
|
|
${JAVAJARDIR}/httpcore.jar:${PORTSDIR}/www/httpcore \
|
|
${JAVAJARDIR}/httpmime.jar:${PORTSDIR}/www/httpclient \
|
|
${JAVAJARDIR}/jakarta-oro.jar:${PORTSDIR}/java/jakarta-oro \
|
|
${JAVAJARDIR}/jdom.jar:${PORTSDIR}/java/jdom \
|
|
${JAVAJARDIR}/junit.jar:${PORTSDIR}/java/junit \
|
|
${JAVAJARDIR}/mail.jar:${PORTSDIR}/java/javamail \
|
|
${JAVAJARDIR}/serializer.jar:${PORTSDIR}/textproc/xalan-j \
|
|
${JAVAJARDIR}/slf4j-api.jar:${PORTSDIR}/devel/slf4j \
|
|
${LOCALBASE}/share/slf4j/slf4j-nop.jar:${PORTSDIR}/devel/slf4j \
|
|
${JAVAJARDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j \
|
|
${JAVAJARDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j \
|
|
${JAVAJARDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j \
|
|
${JAVAJARDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons \
|
|
${JAVAJARDIR}/xstream.jar:${PORTSDIR}/textproc/xstream \
|
|
${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
SUB_FILES= jmeter.sh
|
|
DATAFILES= bin extras lib
|
|
# Do not even extract the MS-DOS files nor the JARs,
|
|
# that are already provided by other ports:
|
|
EXTRACT_AFTER_ARGS= --exclude '*.bat' --exclude '*.cmd' \
|
|
${RUN_DEPENDS:M*.jar*:C|.*/(.+).jar:.*|--exclude '\1-*.jar'|} \
|
|
--exclude 'oro-*.jar'
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= docs printable_docs README LICENSE
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-configure:
|
|
${PRINTF} '\nuser.classpath=' >> ${WRKSRC}/bin/system.properties
|
|
.for j in ${RUN_DEPENDS:C/:.*//:M*.jar}
|
|
${PRINTF} '$j:' >> ${WRKSRC}/bin/system.properties
|
|
.endfor
|
|
${PRINTF} '\n' >> ${WRKSRC}/bin/system.properties
|
|
|
|
do-install:
|
|
cd ${WRKSRC} \
|
|
&& ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}/${DATADIR}/{} \;
|
|
cd ${WRKSRC} \
|
|
&& ${FIND} ${DATAFILES} -type f -not -name '*.orig' -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
|
|
cd ${WRKSRC} \
|
|
&& ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
|
|
cd ${WRKSRC} \
|
|
&& ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
|
|
${INSTALL_SCRIPT} ${WRKDIR}/jmeter.sh ${STAGEDIR}${PREFIX}/bin/jmeter
|
|
|
|
# For some reason, it is not enough for these three to simply be listed in
|
|
# jmeter.properties file. JMeter refuses to start, unless they are found in lib/
|
|
BOOTSTRAP_JARS= avalon-framework xstream commons-io
|
|
post-install:
|
|
@${LN} -s ${BOOTSTRAP_JARS:C|.*|${JAVAJARDIR}/&.jar|} ${STAGEDIR}${DATADIR}/lib/
|
|
|
|
.include <bsd.port.post.mk>
|