a77376a1fe
A port of the lightweight-java-profiler (ljp). ljp acts as a bare-bones agentlib to produce profiling stacks that can be digested, e.g., by Brendan Gregg's flamegraph scripts. Reviewed by: mat, swills (mentor) Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D10194
48 lines
911 B
Makefile
48 lines
911 B
Makefile
# Created by: Johannes Dieterich <jmd@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lightweight-java-profiler
|
|
PORTVERSION= g20170308
|
|
CATEGORIES= java devel
|
|
|
|
MAINTAINER= jmd@FreeBSD.org
|
|
COMMENT= Lightweight Java profiler which can be used for flamegraphs
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= bash>=0:shells/bash
|
|
RUN_DEPENDS= bash>=0:shells/bash
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= assembly only available for x86
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= inevity
|
|
GH_TAGNAME= e8041b5
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.8
|
|
|
|
USE_LDCONFIG= yes
|
|
USES= gmake shebangfix
|
|
|
|
SHEBANG_FILES= Makefile
|
|
|
|
MAKE_ENV= JAVA_HOME=${LOCALBASE}/openjdk8
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
MAKE_ENV+= BITS=32
|
|
.else
|
|
MAKE_ENV+= BITS=64
|
|
.endif
|
|
|
|
PLIST_FILES= lib/liblagent.so
|
|
|
|
do-install:
|
|
${INSTALL_LIB} ${WRKSRC}/build/liblagent.so ${STAGEDIR}/${LOCALBASE}/lib/liblagent.so
|
|
|
|
.include <bsd.port.post.mk>
|