aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tijmp/Makefile
blob: ba8e28386175d4a5fa074d4d3bf5d7c0996ac955 (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
51
# New ports collection makefile for:    tijmp
# Date created:             8 October 2007
# Whom:                 Ronald Klop <ronald@echteman.nl>
#
# $FreeBSD$
#

PORTNAME=   tijmp
PORTVERSION=    0.4
CATEGORIES= devel java
MASTER_SITES=   http://www.khelekore.org/jmp/tijmp/

MAINTAINER= ronald@echteman.nl
COMMENT=    Tools Interface Java Memory Profiler

OPTIONS=    OPTIMIZED_CFLAGS "Compile with -O3" off

USE_GMAKE=  yes
USE_JAVA=   yes
JAVA_VERSION=   1.6+
JAVA_OS=    native
JAVA_BUILD= jdk
NEED_JAVAC= yes
USE_JIKES=  no

GNU_CONFIGURE=  yes

CONFIGURE_ENV=  JAVA_HOME="${JAVA_HOME}"
USE_LDCONFIG=   yes

PLIST_FILES=    lib/lib${PORTNAME}.la \
        lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 \
        %%JAVAJARDIR%%/${PORTNAME}.jar

.include <bsd.port.pre.mk>

.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS?=    -O3
.endif

post-extract::
    @${SED} -i "" -e 's|share/java|${JAVAJARDIR:S,^${PREFIX}/,,}|' ${WRKSRC}/src/tijmp.c

do-install::
    @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
    ${INSTALL_DATA} ${WRKSRC}/src/.libs/lib${PORTNAME}.la ${PREFIX}/lib/
    ${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/lib${PORTNAME}.so.0 ${PREFIX}/lib/
    cd ${PREFIX}/lib && ${LN} -sf lib${PORTNAME}.so.0 lib${PORTNAME}.so

.include <bsd.port.post.mk>