summaryrefslogtreecommitdiff
path: root/package/jamvm
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/jamvm
Initial import
Diffstat (limited to 'package/jamvm')
-rw-r--r--package/jamvm/Config.in16
-rw-r--r--package/jamvm/Makefile36
-rw-r--r--package/jamvm/ipkg/jamvm.control5
3 files changed, 57 insertions, 0 deletions
diff --git a/package/jamvm/Config.in b/package/jamvm/Config.in
new file mode 100644
index 000000000..0a4c39451
--- /dev/null
+++ b/package/jamvm/Config.in
@@ -0,0 +1,16 @@
+config ADK_PACKAGE_JAMVM
+ prompt "jamvm............................. A compact Java Virtual Machine"
+ tristate
+ default n
+ select ADK_PACKAGE_ZLIB
+ select ADK_PACKAGE_LIBFFI
+ help
+ JamVM is a new Java Virtual Machine which conforms to the JVM
+ specification version (blue book). In comparison to most other VM's
+ (free and commercial) it is extremely small.However, unlike other
+ small VMs (e.g. KVM) it is designed to support the full
+ specification, and includes support for object finalisation,
+ Soft/Weak/Phantom References, the Java Native Interface (JNI) and the
+ Reflection API.
+
+ http://sourceforge.net/projects/jamvm
diff --git a/package/jamvm/Makefile b/package/jamvm/Makefile
new file mode 100644
index 000000000..eb066fe46
--- /dev/null
+++ b/package/jamvm/Makefile
@@ -0,0 +1,36 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= jamvm
+PKG_VERSION:= 1.5.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 5a82751b50391eb092c906ce64f3b6bf
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
+
+include ${TOPDIR}/mk/package.mk
+
+${eval ${call PKG_template,JAMVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}}}
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ARGS+= --enable-ffi
+
+do-build:
+ ${INSTALL_DIR} ${WRKINST}/usr/bin
+ ${INSTALL_DIR} ${WRKINST}/usr/share/jamvm
+ ${MAKE} -C ${WRKBUILD}/src \
+ ${TARGET_CONFIGURE_OPTS}
+ ${CP} ${WRKBUILD}/src/jamvm ${WRKINST}/usr/bin
+ ${MAKE} -C ${WRKBUILD}/lib
+ ${CP} ${WRKBUILD}/lib/classes.zip ${WRKINST}/usr/share/jamvm
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_JAMVM}/usr/bin
+ ${INSTALL_DIR} ${IDIR_JAMVM}/usr/share/jamvm
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/jamvm ${IDIR_JAMVM}/usr/bin
+ ${CP} ${WRKINST}/usr/share/jamvm/classes.zip ${IDIR_JAMVM}/usr/share/jamvm
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/jamvm/ipkg/jamvm.control b/package/jamvm/ipkg/jamvm.control
new file mode 100644
index 000000000..f33e66c94
--- /dev/null
+++ b/package/jamvm/ipkg/jamvm.control
@@ -0,0 +1,5 @@
+Package: jamvm
+Priority: optional
+Section: misc
+Description: A Java Virtual Machine (JVM) implementation
+Depends: libffi, zlib