aboutsummaryrefslogtreecommitdiffstats
path: root/java/sablevm/Makefile
blob: 603230613bafa38fe8d84fe4bf5f422165671800 (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
# New ports collection makefile for:    sablevm
# Date created:                 9 July 2002
# Whom:                         Archie Cobbs <archie@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   sablevm
PORTVERSION=    1.13
PORTREVISION=   1
CATEGORIES= java
MASTER_SITES=   SF

MAINTAINER= bkoenig@alpha-tierchen.de
COMMENT=    Java VM created by McGill University's Sable Research Group

LIB_DEPENDS=    popt:${PORTSDIR}/devel/popt \
        ffi:${PORTSDIR}/devel/libffi

GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libltdl
USE_GMAKE=  yes
USE_LDCONFIG=   yes

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

OPTIONS=    SVMCP "Install SableVM classpath" ON \
        MAN "Build and install man pages" ON

CONFLICTS=  classpath-*

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_SVMCP)
RUN_DEPENDS+=   ${LOCALBASE}/share/sablevm-classpath/java/lang/Object.class:${PORTSDIR}/java/sablevm-classpath
.endif

.if !defined(WITHOUT_MAN)
MAN1=       java-sablevm.1 sablevm.1
.else
.endif

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

.include <bsd.port.post.mk>