summaryrefslogtreecommitdiff
path: root/devel/tijmp/Makefile
blob: 0709d505f9e79808ef0f47550b4d8eb3d8b62500 (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
# Created by: Ronald Klop <ronald@echteman.nl>

PORTNAME=	tijmp
PORTVERSION=	0.7
PORTREVISION=	1
CATEGORIES=	devel java
MASTER_SITES=	http://www.khelekore.org/jmp/tijmp/ \
		http://www.klop.ws/distfiles/

MAINTAINER=	ronald-lists@klop.ws
COMMENT=	Tools Interface Java Memory Profiler

OPTIONS_DEFINE=	DOCS OPTIMIZED_CFLAGS

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	JAVA_HOME="${JAVA_HOME}"
INSTALL_TARGET=	install-strip
USES=		gmake libtool
USE_JAVA=	yes
JAVA_OS=	native
JAVA_BUILD=	jdk
USE_LDCONFIG=	yes

PLIST_FILES=	lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 \
		lib/lib${PORTNAME}.so.0.0.1 %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS=	ChangeLog README

OPTIMIZED_CFLAGS_CFLAGS=	-O3

post-patch:
	@${REINPLACE_CMD} '/^jardir =/s|=.*|= ${JAVAJARDIR}|' ${WRKSRC}/Makefile.in
	@${SED} -i "" -e 's|/../share/java|${JAVAJARDIR}|' ${WRKSRC}/src/tijmp.c

.include <bsd.port.mk>