summaryrefslogtreecommitdiff
path: root/packages/jamvm
diff options
context:
space:
mode:
Diffstat (limited to 'packages/jamvm')
-rw-r--r--packages/jamvm/.mtn2git_empty0
-rw-r--r--packages/jamvm/jamvm-1.3.0/.mtn2git_empty0
-rw-r--r--packages/jamvm/jamvm-1.3.0/heap-size.patch22
-rw-r--r--packages/jamvm/jamvm_1.3.0.bb22
4 files changed, 44 insertions, 0 deletions
diff --git a/packages/jamvm/.mtn2git_empty b/packages/jamvm/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/jamvm/.mtn2git_empty
diff --git a/packages/jamvm/jamvm-1.3.0/.mtn2git_empty b/packages/jamvm/jamvm-1.3.0/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/jamvm/jamvm-1.3.0/.mtn2git_empty
diff --git a/packages/jamvm/jamvm-1.3.0/heap-size.patch b/packages/jamvm/jamvm-1.3.0/heap-size.patch
index e69de29bb2..36d681889d 100644
--- a/packages/jamvm/jamvm-1.3.0/heap-size.patch
+++ b/packages/jamvm/jamvm-1.3.0/heap-size.patch
@@ -0,0 +1,22 @@
+--- jamvm-1.3.0/src/jam.h.orig 2005-04-02 14:38:49.000000000 +0200
++++ jamvm-1.3.0/src/jam.h 2005-04-02 14:41:18.000000000 +0200
+@@ -531,13 +531,19 @@
+ #define MIN_STACK 2*KB
+
+ /* default minimum size of object heap */
++#ifndef DEFAULT_MIN_HEAP
+ #define DEFAULT_MIN_HEAP 2*MB
++#endif
+
+ /* default maximum size of object heap */
++#ifndef DEFAULT_MAX_HEAP
+ #define DEFAULT_MAX_HEAP 128*MB
++#endif
+
+ /* default size of the Java stack */
++#ifndef DEFAULT_STACK
+ #define DEFAULT_STACK 64*KB
++#endif
+
+ /* size of emergency area - big enough to create
+ a StackOverflow exception */
diff --git a/packages/jamvm/jamvm_1.3.0.bb b/packages/jamvm/jamvm_1.3.0.bb
index e69de29bb2..e33a671af3 100644
--- a/packages/jamvm/jamvm_1.3.0.bb
+++ b/packages/jamvm/jamvm_1.3.0.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "A compact Java Virtual Machine which conforms to the JVM specification version 2."
+HOMEPAGE = "http://jamvm.sourceforge.net/"
+LICENSE = "GPL"
+PRIORITY = "optional"
+MAINTAINER = "Rene Wagner <rw@handhelds.org>"
+SECTION = "interpreters"
+
+DEPENDS = "zlib classpath"
+RDEPENDS = "classpath (>= 0.14) classpath-common (>= 0.14)"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.gz \
+ file://heap-size.patch;patch=1"
+
+inherit autotools update-alternatives
+
+EXTRA_OECONF = "--with-classpath-install-dir=${prefix}"
+CFLAGS += "-DDEFAULT_MAX_HEAP=16*MB"
+
+PROVIDES = "virtual/java"
+ALTERNATIVE_NAME = "java"
+ALTERNATIVE_PATH = "${bindir}/jamvm"
+ALTERNATIVE_PRIORITY = "10"