aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-04-04 21:14:06 +0800
committerpav <pav@FreeBSD.org>2008-04-04 21:14:06 +0800
commit8c248afd73f558ccaf5055d206cf211c40589c04 (patch)
tree74d27f08c7550fa372c9e7365018007645d6abe3 /java
parentf09aaed282bb701d616369fdad7c28f500ba8e5b (diff)
downloadfreebsd-ports-gnome-8c248afd73f558ccaf5055d206cf211c40589c04.tar.gz
freebsd-ports-gnome-8c248afd73f558ccaf5055d206cf211c40589c04.tar.zst
freebsd-ports-gnome-8c248afd73f558ccaf5055d206cf211c40589c04.zip
JamVM is an extremely small Java Virtual Machine which conforms to the
JVM specification version 2 (blue book). It is designed to support the full specification, and includes support for object finalisation, Soft/Weak/Phantom References, class-unloading, the Java Native Interface (JNI) and the Reflection API. WWW: http://jamvm.sourceforge.net/ PR: ports/122312 Submitted by: Bjoern Koenig <bkoenig@alpha-tierchen.de>
Diffstat (limited to 'java')
-rw-r--r--java/Makefile1
-rw-r--r--java/jamvm/Makefile46
-rw-r--r--java/jamvm/distinfo3
-rw-r--r--java/jamvm/pkg-descr8
-rw-r--r--java/jamvm/pkg-plist35
5 files changed, 93 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index f1ba1cd149bf..914d875fda35 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -80,6 +80,7 @@
SUBDIR += jakarta-oro
SUBDIR += jakarta-regexp
SUBDIR += jakarta-struts
+ SUBDIR += jamvm
SUBDIR += jasmin
SUBDIR += java-checkstyle
SUBDIR += java-cup
diff --git a/java/jamvm/Makefile b/java/jamvm/Makefile
new file mode 100644
index 000000000000..7abd90bfc3c2
--- /dev/null
+++ b/java/jamvm/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: jamvm
+# Date created: 31 March 2008
+# Whom: Bjoern Koenig
+#
+# $FreeBSD$
+
+PORTNAME= jamvm
+PORTVERSION= 1.5.1
+CATEGORIES= java devel
+MASTER_SITES= SF
+
+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
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} `pkg-config libffi --cflags`" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+.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
+
+post-extract:
+ @${MV} ${WRKSRC}/src/arch/x86_64.h ${WRKSRC}/src/arch/amd64.h
+
+post-configure:
+ @${MV} ${WRKSRC}/src/os/bsd/x86_64 ${WRKSRC}/src/os/bsd/amd64
+
+.include <bsd.port.post.mk>
diff --git a/java/jamvm/distinfo b/java/jamvm/distinfo
new file mode 100644
index 000000000000..fb98ae8d5e11
--- /dev/null
+++ b/java/jamvm/distinfo
@@ -0,0 +1,3 @@
+MD5 (jamvm-1.5.1.tar.gz) = 5a82751b50391eb092c906ce64f3b6bf
+SHA256 (jamvm-1.5.1.tar.gz) = 663895bd69caf3a1fda6af5eea8263d90a5fd35ca8f4c32e2210ac410788901a
+SIZE (jamvm-1.5.1.tar.gz) = 599084
diff --git a/java/jamvm/pkg-descr b/java/jamvm/pkg-descr
new file mode 100644
index 000000000000..d821aa58e7b8
--- /dev/null
+++ b/java/jamvm/pkg-descr
@@ -0,0 +1,8 @@
+JamVM is an extremely small Java Virtual Machine which conforms to the
+JVM specification version 2 (blue book).
+
+It is designed to support the full specification, and includes support
+for object finalisation, Soft/Weak/Phantom References, class-unloading,
+the Java Native Interface (JNI) and the Reflection API.
+
+WWW: http://jamvm.sourceforge.net/
diff --git a/java/jamvm/pkg-plist b/java/jamvm/pkg-plist
new file mode 100644
index 000000000000..36f17fe633dd
--- /dev/null
+++ b/java/jamvm/pkg-plist
@@ -0,0 +1,35 @@
+bin/jamvm
+include/jni.h
+lib/libjvm.la
+lib/libjvm.a
+%%WITH_ZIP%%lib/rt.jar
+%%WITH_ZIP%%share/jamvm/classes.zip
+%%WITHOUT_ZIP%%share/jamvm/classes/jamvm/java/lang/VMClassLoaderData.class
+%%WITHOUT_ZIP%%share/jamvm/classes/jamvm/java/lang/JarLauncher.class
+%%WITHOUT_ZIP%%share/jamvm/classes/jamvm/java/lang/VMClassLoaderData$Unloader.class
+%%WITHOUT_ZIP%%share/jamvm/classes/sun/reflect/annotation/AnnotationInvocationHandler.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/security/VMAccessController.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/reflect/Field.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/reflect/Constructor.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/reflect/Method.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMClassLoader.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMThrowable.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMString.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMThread.class
+%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMRuntime.class
+%%WITHOUT_ZIP%%share/jamvm/classes/gnu/classpath/VMSystemProperties.class
+%%WITHOUT_ZIP%%share/jamvm/classes/gnu/classpath/VMStackWalker.class
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/gnu/classpath
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/gnu
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java/lang/reflect
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java/lang
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java/security
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/sun/reflect/annotation
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/sun/reflect
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/sun
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/jamvm/java/lang
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/jamvm/java
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/jamvm
+%%WITHOUT_ZIP%%@dirrm share/jamvm/classes
+@dirrm share/jamvm