# $OpenBSD: Makefile,v 1.7 2007/09/16 00:27:05 merdely Exp $

COMMENT=	free, standards-compilant jvm with a small footprint

ONLY_FOR_ARCHS=	i386 powerpc arm

DISTNAME=	jamvm-1.4.3
PKGNAME=	${DISTNAME}p1

CATEGORIES=	lang java

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=jamvm/}

HOMEPAGE=	http://jamvm.sourceforge.net/

MAINTAINER=	Frederick C. Druseikis <fredd@cse.sc.edu>

# GPL 2
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

USE_GMAKE=		Yes
SEPARATE_BUILD=		concurrent
CONFIGURE_STYLE=	gnu

RUN_DEPENDS=		:classpath->=0.91:lang/classpath

WANTLIB=		c m z pthread

CONFIGURE_ARGS+=	--with-classpath-install-dir=${LOCALBASE}

post-install:
	@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share

.include <bsd.port.mk>
