blob: 020c5ffc2db0e11f6bba27278fc5ecbcae011eab (
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
|
# New ports collection makefile for: jamvm
# Date created: 31 March 2008
# Whom: Bjoern Koenig
#
# $FreeBSD$
PORTNAME= jamvm
PORTVERSION= 1.5.1
PORTREVISION= 4
CATEGORIES= java devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/JamVM%20${PORTVERSION}
MAINTAINER= bkoenig@alpha-tierchen.de
COMMENT= A compact Java virtual machine
RUN_DEPENDS= ${LOCALBASE}/share/classpath/glibj.zip:${PORTSDIR}/java/classpath
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-classpath-install-dir=${LOCALBASE}
USE_GMAKE= yes
OPTIONS= FFI "use libffi to call native methods" ON \
ZIP "turn-on zip support in the bootstrap loader" ON
.include <bsd.port.pre.mk>
.if defined(WITH_FFI)
LIB_DEPENDS+= ffi:${PORTSDIR}/devel/libffi
CONFIGURE_ARGS+= --enable-ffi
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= `pkg-config libffi --cflags`
.endif
.if defined(WITH_ZIP)
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
PLIST_SUB+= WITH_ZIP="" WITHOUT_ZIP="@comment "
.else
CONFIGURE_ARGS+= --disable-zip
PLIST_SUB+= WITH_ZIP="@comment " WITHOUT_ZIP=""
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not configure on sparc64
.endif
post-extract:
@${MV} ${WRKSRC}/src/arch/x86_64.h ${WRKSRC}/src/arch/amd64.h
@${REINPLACE_CMD} -e "s,\(^include_HEADERS = .*\)jni.h\(.*\),\1\2," ${WRKSRC}/src/Makefile.in
post-configure:
@${MV} ${WRKSRC}/src/os/bsd/x86_64 ${WRKSRC}/src/os/bsd/amd64
.include <bsd.port.post.mk>
|