pkgsrc/lang/sablevm/Makefile
jmmv 56571642f5 Initial import of sablevm, version 1.1.1:
SableVM is a portable bytecode interpreter written in C, and implementing
the Java virtual machine specification, second edition.  Its goals are to
be reasonably small, fast and efficient, as well as providing a well
designed and robust platform for conducting research.

SableVM implements many innovative techniques, including:
* 3 flavors of threaded interpretation (switched, threaded and inlined).
* Bidirectional object layout.
* Spinlock-free thin locks.
* Sparse interface vtables.
* Low-cost maps for precise garbage collection.

This package is slightly based on the one found in pkgsrc-wip, made by
pancake AT phreaker.net.
2004-03-28 20:42:07 +00:00

46 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2004/03/28 20:42:08 jmmv Exp $
#
DISTNAME= sablevm-1.1.1
CATEGORIES= lang
MASTER_SITES= http://devel.sablevm.org/download/1.1.1/
MAINTAINER= pancake@phreaker.net
HOMEPAGE= http://www.sablevm.org/
COMMENT= SableVM free Java virtual machine
DEPENDS+= unzip>=5.50:../../archivers/unzip
DEPENDS+= sablevm-classpath-1.1.1:../../lang/sablevm-classpath
GNU_CONFIGURE= yes
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
USE_LIBTOOL= yes
CONFIGURE_ARGS+= --disable-signals-for-exceptions
EVAL_PREFIX+= PREFIX.sablevm-classpath=sablevm-classpath
PREFIX.sablevm-classpath_DEFAULT= ${LOCALBASE}
pre-configure:
cd ${WRKSRC} && ${AUTOHEADER}
cd ${WRKSRC} && ${AUTOCONF}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/sablevm
${LN} -s ${PREFIX.sablevm-classpath}/lib/sablevm-classpath \
${PREFIX}/lib/sablevm/sablevm-classpath
${LN} -s ${PREFIX.sablevm-classpath}/share/sablevm-classpath \
${PREFIX}/share/sablevm/sablevm-classpath
.if !exists(/usr/include/semaphore.h)
LDFLAGS+= -lsemaphore
BUILDLINK_TRANSFORM+= l:rt:semaphore:
.include "../../devel/pthread-sem/buildlink3.mk"
.endif
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/libtool/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
.include "../../mk/autoconf.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"