summaryrefslogtreecommitdiffstats
path: root/java/sablevm-classpath/Makefile
blob: 5e4676d1af43352004abcab962d05b23cca5e765 (plain)
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
# ex:ts=8
# New ports collection makefile for:    sablevm
# Date created:         		26 Nov 2007
# Whom:                 		Björn König <bkoenig@alpha-tierchen.de>
#
# $FreeBSD$
#

PORTNAME=	sablevm-classpath
PORTVERSION=	1.13
CATEGORIES=	java
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	sablevm

MAINTAINER=	bkoenig@alpha-tierchen.de
COMMENT=	Classpath of SableVM

BUILD_DEPENDS=	jikes:${PORTSDIR}/java/jikes

OPTIONS=	GTK2 "Enable Gtk+ AWT peer" ON \
		CAIRO "Use Cairo based Graphics2D" OFF

CONFLICTS=	classpath-*

GNU_CONFIGURE=	yes
USE_GNOME=	# empty
USE_GMAKE=	yes
USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}

PLIST_SUB+=	PORTVERSION=${PORTVERSION}
CONFIGURE_ENV=	CFLAGS="-I${PREFIX}/include -L${PREFIX}/lib -I${LOCALBASE}/include -L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if defined(WITHOUT_GTK2)
CONFIGURE_ARGS+=	--disable-gtk-peer
PLIST_SUB+=		GTK2="@comment "
.else
USE_GNOME+=		gtk20
PLIST_SUB+=		GTK2=""
.if defined(WITH_CAIRO)
CONFIGURE_ARGS+=	--enable-gtk-cairo
.endif
.endif

post-extract:
	@${REINPLACE_CMD} -e 's,^\(include_HEADERS = \)jni.h jni_md.h \(.*\),\1\2,' \
		${WRKSRC}/include/Makefile.in

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud