pkgsrc-wip/kaffe-nox11/Makefile

60 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2004/01/25 02:23:28 grantbeattie Exp $
DISTNAME= kaffe-1.1.2
PKGNAME= kaffe-nox11-1.1.2
CATEGORIES= lang java
MASTER_SITES= http://www.kaffe.org/ftp/pub/kaffe/v1.1.x-development/\
ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-development/
MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://www.kaffe.org/
COMMENT= Virtual machine capable of running Java(tm) code
USE_BUILDLINK2= yes
USE_PKGINSTALL= yes
USE_LIBTOOL= yes
USE_GNU_TOOLS+= make
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
TEST_TARGET= check
ONLY_FOR_PLATFORM= *-*-alpha *-*-arm *-*-arm32 *-*-i386 *-*-m68k *-*-mips* \
*-*-sparc *-*-powerpc
GNU_CONFIGURE= yes
CPPFLAGS+= -Dunix
JVM_HOME= ${LOCALBASE}/java/kaffe
NO_MTREE= yes # since we change PREFIX below
OWN_DIRS= ${PREFIX}
OWN_DIRS+= ${PREFIX}/etc
OWN_DIRS+= ${PREFIX}/jre
OWN_DIRS+= ${PREFIX}/jre/lib
OWN_DIRS+= ${PREFIX}/jre/lib/security
SUPPORT_FILES= ${PREFIX}/jre/lib/security/java.security.default \
${PREFIX}/jre/lib/security/java.security
CONFIGURE_ARGS+=--without-x
CONFIGURE_ARGS+=--enable-pure-java-math
.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")
# On these systems, jit3 is not working.
CONFIGURE_ARGS+= --with-engine=intrp
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/license.terms ${PREFIX}
.include "../../converters/libiconv/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
PREFIX= ${JVM_HOME}