freebsd-ports/devel/tijmp/Makefile
Pav Lucistnik 35b66662da TIJmp is a memory profiler for java. TIJmp is made for java/6 and later, it
will not work on java/5 systems. If you need a profiler for java/5 or earlier
try the jmp profiler.

TIJmp is written to be fast and have a small footprint, both memory- and cpu-
wise. This means that the jvm will run at almost full speed, until you use
tijmp to find some information.

TIJmp uses C code to talk to the jvm and it uses swing to show the the tables
of information. So tijmp is written in C (using jvmti and jni) and Java.

TIJmp runs in the same jvm as the program being profiled. This means that it
can easily get access to all things jvmti/jni has to offer.

TIJmp is distributed under the General Public License, GPL.

Usage:
java -agentlib:tijmp <your-class>

WWW: http://khelekore.org/jmp/tijmp/

PR:		ports/117615
Submitted by:	Ronald Klop <ronald@echteman.nl>
2007-12-19 18:09:06 +00:00

51 lines
1.2 KiB
Makefile

# 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>