aboutsummaryrefslogtreecommitdiffstats
path: root/java/sablevm/Makefile
blob: 360b57c78dc4f4b20e0eb91b8643bc17256f6134 (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
# $FreeBSD$

PORTNAME=   sablevm
PORTVERSION=    1.13
PORTREVISION=   10
CATEGORIES= java devel
MASTER_SITES=   SF

MAINTAINER= java@FreeBSD.org
COMMENT=    Java VM created by McGill University's Sable Research Group

LICENSE=    LGPL21

LIB_DEPENDS=    libpopt.so:${PORTSDIR}/devel/popt \
        libffi.so:${PORTSDIR}/devel/libffi
RUN_DEPENDS=    fastjar:${PORTSDIR}/archivers/fastjar

GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libltdl
USE_LDCONFIG=   yes
USES=       pkgconfig gettext iconv gmake

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --includedir=${PREFIX}/include/${PORTNAME}

OPTIONS_DEFINE= MAN SVMCP
OPTIONS_DEFAULT=MAN SVMCP
MAN_DESC=   Build and install man pages
SVMCP_DESC= Install SableVM classpath

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMAN}
MAN1=       java-sablevm.1 sablevm.1
.endif

.if ${PORT_OPTIONS:MSVMCP}
RUN_DEPENDS+=   ${LOCALBASE}/lib/sablevm-classpath/libjavalang.so:${PORTSDIR}/java/sablevm-classpath
.endif

post-extract:
    @${REINPLACE_CMD} -e 's,^subdirs=".*,,' ${WRKSRC}/configure
.if empty(PORT_OPTIONS:MMAN)
    @${REINPLACE_CMD} -e 's,^\(man_MANS = \).*,\1,' ${WRKSRC}/doc/Makefile.in
.endif

.include <bsd.port.mk>