freebsd-ports/java/lightweight-java-profiler/Makefile
2021-04-06 16:31:07 +02:00

46 lines
899 B
Makefile

# Created by: Johannes Dieterich <jmd@FreeBSD.org>
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>