aboutsummaryrefslogtreecommitdiffstats
path: root/java/jmp/Makefile
blob: 69ff3250062142bc6282712c178106eb1569bcc0 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:   jmp
# Date created:        11 January 2003
# Whom:                Ronald Klop <ronald@cs.vu.nl>
#
# $FreeBSD$
#

PORTNAME=   jmp
PORTVERSION=    0.51.p1
CATEGORIES= java devel
MASTER_SITES=   http://www.khelekore.org/jmp/
DISTNAME=   ${PORTNAME}-0.51
EXTRACT_SUFX=   -pre1.tar.gz

MAINTAINER= ronald@cs.vu.nl
COMMENT=    Java Memory Profiler

OPTIONS=    X11 "Enable X11 support" on
OPTIONS+=   DEBUG "Enable extra debug output" off
OPTIONS+=   OPTIMIZED_CFLAGS "Compile with -O3" off

CONFIGURE_ARGS= --with-includes="${JAVA_HOME}/include ${LOCALBASE}/include" \
        --with-libintl-prefix="${LOCALBASE}"

USE_BISON=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_JAVA=   yes
JAVA_VERSION=   1.2+
JAVA_OS=    native
JAVA_BUILD= jdk
NEED_JAVAC= yes
USE_JIKES=  no

MAN1=       jmp.1

MAKE_FLAGS= JAVAC=${JAVAC} JAVAH=${JAVAH}

GNU_CONFIGURE=  yes

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

PLIST_FILES=    lib/libjmp.la lib/libjmp.so lib/libjmp.so.0 \
        share/locale/de/LC_MESSAGES/jmp.mo \
        share/locale/sv/LC_MESSAGES/jmp.mo

.include <bsd.port.pre.mk>

.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=    --enable-noui
.else
USE_XLIB=   yes
LIB_DEPENDS+=   gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20
.endif

.if defined(WITH_DEBUG)
CFLAGS+=    -DJMPDEBUG -g
.endif

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

.if ${OSVERSION} < 500000
BROKEN= Does not build on FreeBSD < 5.x
.endif

.include <bsd.port.post.mk>