mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
e9ffec3f60
- trim historical headers Approved by: portmgr (miwi)
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Created by: Ronald Klop <ronald@echteman.nl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tijmp
|
|
PORTVERSION= 0.7
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= http://www.khelekore.org/jmp/tijmp/ \
|
|
http://www.klop.ws/~ronald/software-mirrors/
|
|
|
|
MAINTAINER= ronald@echteman.nl
|
|
COMMENT= Tools Interface Java Memory Profiler
|
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
|
|
|
USE_GMAKE= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
JAVA_OS= native
|
|
JAVA_BUILD= jdk
|
|
NEED_JAVAC= yes
|
|
|
|
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.options.mk>
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
|
CFLAGS?= -O3
|
|
.endif
|
|
|
|
post-extract::
|
|
@${SED} -i "" -e 's|/../share/java|${JAVAJARDIR}|' ${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>
|