blob: ceb6abdf97a638f25b21bf3a50433e97131aa84f (
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
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile.common,v 1.13 2006/03/02 18:46:16 joerg Exp $
DISTNAME= kaffe-1.1.6
CATEGORIES= lang java
MASTER_SITES= ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-development/
MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://www.kaffe.org/
COMMENT= Virtual machine capable of running Java(tm) code
BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
DEPENDS+= jikes>=1.22:../../lang/jikes
EXTRACT_USING= pax
GNU_CONFIGURE_PREFIX= ${JAVA_HOME}
GNU_CONFIGURE_MANDIR= ${PREFIX}/${PKGMANDIR}
JAVA_HOME= ${PREFIX}/java/kaffe
JAVA_NAME= kaffe
NO_MTREE= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake
TEST_TARGET= check
ONLY_FOR_PLATFORM= *-*-alpha *-*-arm *-*-arm32 *-*-i386 *-*-m68k *-*-mips* \
*-*-sparc *-*-powerpc
GNU_CONFIGURE= yes
CPPFLAGS+= -Dunix
PATCHDIR= ${.CURDIR}/../../lang/kaffe/patches
DISTINFO_FILE= ${.CURDIR}/../../lang/kaffe/distinfo
BUILDLINK_PASSTHRU_DIRS+= ${JAVA_HOME}/jre/lib/${MACHINE_ARCH}
CONFIGURE_ARGS+= --with-gc=kaffe-gc
CONFIGURE_ARGS+= --disable-boehm-gc-configuration
CONFIGURE_ARGS+= --without-alsa
CONFIGURE_ARGS+= --without-esd
CONFIGURE_ARGS+= --disable-esdtest
CONFIGURE_ARGS+= --disable-native-awt
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "NetBSD") && (${OBJECT_FMT} == "ELF")
#
# We need to explicitly link libkaffe*.so with libc.so so that libc symbols
# are resolved correctly when libkaffe*.so are dynamically loaded.
#
CONFIGURE_ENV+= VM_LIBS="-lc"
.endif
.if (((${OPSYS} == "NetBSD") && (${MACHINE_ARCH} == "alpha")) || (${MACHINE_ARCH} == "powerpc") || ((${OPSYS} == "SunOS") && ${MACHINE_ARCH} == "i386"))
# On these systems, jit3 is not working.
CONFIGURE_ARGS+= --with-engine=intrp
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
|