aboutsummaryrefslogtreecommitdiffstats
path: root/java/lightweight-java-profiler/Makefile
blob: 57e877cf83d10ce148740f6ee3cf2e89c0685438 (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
# 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>