summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2002-11-01 10:49:32 +0000
committerskrll <skrll@pkgsrc.org>2002-11-01 10:49:32 +0000
commitf34bc244e57bcb1f63a27f814542281e04dc8158 (patch)
tree438680f7ffc067ffafc7fe4380c905fd53bcdde3 /lang
parent3a7837bcdaa397b7a66436967aed230724b6321f (diff)
downloadpkgsrc-f34bc244e57bcb1f63a27f814542281e04dc8158.tar.gz
Initial import of wonka-0.9.4 into the NetBSD Packages Collection.
Thanks to Johnny Lam for checking the package before I commited it. This package is made with the 'xsim' AWT device and the OSwald scheduler. A pthreads (o4p) based scheduler is being worked on. What is Wonka? Wonka is ACUNIA's cleanroom Virtual Machine for the JavaTM language. It is extremely portable and self-contained, and can optionally be used with its own real-time executive (OSwaldTM) to provide a complete solution for embedded devices. It is a full implementation of the Java language, not just a subset. And it's Open Source. An Embedded VM We didn't build a Virtual Machine first, and then look for a market; we had a project, we had some hardware, and the project required that hardware to run Java. The result is a Java implementation designed from the start for embedded systems. A VM for Real-Time That system has real-time requirements; maybe not Hard Real-Time, but hard enough for most of us. We don't claim to have made a totally pred- ictable Java (it may not even be possible), but we have worked hard to bring Java's inherent unpredictability under control. A Java2-compatible VM Some embedded VMs sacrifice full Java compatibility for other aims. Wonka doesn't. Automatic garbage collection, dynamic class loading, user- defined class loaders, fine-grained access control, they're all there. The standard distribution doesn't include JavaBeansTM or Swing, but you could add them if you wanted to: all the infrastructure needed is present. Full AWT 1.1.8 Support Wonka comes with a high-performance lightweight AWT (RudolphTM) suitable for any memory-mapped or framebuffer display. Or you can plug in your own implementation, or run with no AWT at all (e.g. in a ``headless'' system). The choice is yours. Free and Open Source The Wonka Public License was conceived with the needs of embedded system developers in mind. You don't have to make your entire business open- source in order to use Wonka, nor do we insist you join a ``community process''. The WPL is based on the well-known BSD license (revised version), which is accepted by the community as being a genuine Open Source license and as a free software license, compatible with the GPL.
Diffstat (limited to 'lang')
-rw-r--r--lang/wonka/DESCR5
-rw-r--r--lang/wonka/Makefile75
-rw-r--r--lang/wonka/PLIST67
-rw-r--r--lang/wonka/distinfo12
-rw-r--r--lang/wonka/files/pkgsrc21
-rw-r--r--lang/wonka/patches/patch-aa24
-rw-r--r--lang/wonka/patches/patch-ab23
-rw-r--r--lang/wonka/patches/patch-ac12
-rw-r--r--lang/wonka/patches/patch-ad13
-rw-r--r--lang/wonka/patches/patch-ae12
-rw-r--r--lang/wonka/patches/patch-af13
-rw-r--r--lang/wonka/patches/patch-ag34
-rw-r--r--lang/wonka/patches/patch-ah14
13 files changed, 325 insertions, 0 deletions
diff --git a/lang/wonka/DESCR b/lang/wonka/DESCR
new file mode 100644
index 00000000000..1eb7f73317a
--- /dev/null
+++ b/lang/wonka/DESCR
@@ -0,0 +1,5 @@
+Wonka is ACUNIA's cleanroom Virtual Machine for the Java(tm) language.
+It is extremely portable and self-contained, and can optionally be
+used with its own real-time executive (OSwaldTM) to provide a complete
+solution for embedded devices. It is a full implementation of the
+Java language, not just a subset. And it's Open Source.
diff --git a/lang/wonka/Makefile b/lang/wonka/Makefile
new file mode 100644
index 00000000000..fb29382b7d7
--- /dev/null
+++ b/lang/wonka/Makefile
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+#
+
+DISTNAME= wonka-src-0.9.4-release
+PKGNAME= wonka-0.9.4
+CATEGORIES= lang
+MASTER_SITES= http://wonka.acunia.com/
+
+MAINTAINER= skrll@netbsd.org
+HOMEPAGE= http://wonka.acunia.com/download.html
+COMMENT= BSD-licenced java virtual machine
+
+BUILD_DEPENDS+= acunia-jam>=1.0nb1:../../devel/acunia-jam
+BUILD_DEPENDS+= jamjar-[0-9]*:../../archivers/jamjar
+BUILD_DEPENDS+= jikes-1.12:../../lang/jikes112
+BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
+
+USE_BUILDLINK2= # defined
+USE_X11= # defined
+
+JVM_HOME= ${LOCALBASE}/java/${PKGBASE}
+NO_MTREE= # defined, since we change PREFIX below
+
+WRKSRC= ${WRKDIR}/open-wonka
+
+SEDFILES= \
+ ${WRKSRC}/wonka/resource/system/system.properties \
+ ${WRKSRC}/Configuration/cpu/arm \
+ ${WRKSRC}/Configuration/cpu/x86
+
+post-extract:
+ ${MKDIR} -p ${WRKSRC}/class/doclet/com/acunia/doclet
+ ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
+ ${FILESDIR}/pkgsrc \
+ > ${WRKSRC}/Configuration/wonka/pkgsrc
+
+post-patch:
+ for file in ${SEDFILES}; do \
+ ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
+ -e "s|@CC@|cc|g" \
+ -e "s|@LD@|ld|g" \
+ -e "s|@AS@|as|g" \
+ -e "s|@AR@|ar|g" \
+ -e "s|@RANLIB@|${RANLIB}|g" \
+ $${file} > $${file}.fixed && \
+ ${MV} -f $${file}.fixed $${file}; \
+ done
+
+MAKE_ENV+= WONKA_TOP=${WRKSRC}
+JAM_COMMAND= \
+ cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} \
+ ${LOCALBASE}/bin/jam \
+ -sWONKA_CONFIG=pkgsrc \
+ -sCPU=${LOWER_ARCH} \
+ -sHOSTOS=${LOWER_OPSYS} \
+ -sAWT_DEVICE=xsim \
+ -sDEBUG=false
+
+do-build:
+ ${JAM_COMMAND}
+
+do-install:
+ ${JAM_COMMAND} install
+ ${RM} -f ${PREFIX}/bin/java
+ ${LN} -sf wonka ${PREFIX}/bin/java
+
+test: install
+ cd ${WRKDIR} && LD_LIBRARY_PATH=${PREFIX}/test \
+ ${PREFIX}/bin/wonka gnu.testlet.TestRunner
+
+.include "../../mk/bsd.pkg.mk"
+
+# This needs to be after bsd.pkg.mk
+PREFIX= ${JVM_HOME}
diff --git a/lang/wonka/PLIST b/lang/wonka/PLIST
new file mode 100644
index 00000000000..0b0ef73f82d
--- /dev/null
+++ b/lang/wonka/PLIST
@@ -0,0 +1,67 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+bin/java
+bin/wonka
+lib/claudia.fr
+lib/device.config
+lib/font/courR10.pcf
+lib/font/courR12.pcf
+lib/font/courR14.pcf
+lib/font/courR17.pcf
+lib/font/courR20.pcf
+lib/font/courR25.pcf
+lib/font/helvB08.pcf
+lib/font/helvB12.pcf
+lib/font/helvB14.pcf
+lib/font/helvB17.pcf
+lib/font/helvB18.pcf
+lib/font/helvB20.pcf
+lib/font/helvB25.pcf
+lib/font/helvR08.pcf
+lib/font/helvR12.pcf
+lib/font/helvR14.pcf
+lib/font/helvR17.pcf
+lib/font/helvR18.pcf
+lib/font/helvR20.pcf
+lib/font/helvR25.pcf
+lib/font/nippon13.pcf
+lib/font/nippon18.pcf
+lib/kbdIcon_d.png
+lib/kbdIcon_e.png
+lib/kbdSelect_d.png
+lib/kbdSelect_e.png
+lib/system.properties
+lib/taskbar.png
+lib/taskbar.properties
+lib/taskbar_large.png
+lib/vte.properties
+lib/wonka.policy
+lib/wonka.security
+lib/wonkatest.properties
+lib/wre.jar
+test/CLTest.jar
+test/appletViewer.jar
+test/car.png
+test/forest.png
+test/lena1.png
+test/lena2.png
+test/libJNIArrayTest.so
+test/libJNIClassAccessTest.so
+test/libJNIClassConstructionTest.so
+test/libJNIMemberAccessTest.so
+test/libJNIObjectFunctionAccessTest.so
+test/libJNIPrimitiveFunctionAccessTest.so
+test/libJNIPrimitiveTest.so
+test/libJNIStringTest.so
+test/mauve-suite.jar
+test/reference.data
+test/reference.data2
+test/reference.gz
+test/reference.zip
+test/rudolph3.gif
+test/utf8test.data
+test/vte.jar
+@dirrm test
+@dirrm lib/font
+@dirrm lib
+@dirrm bin
+@unexec ${RMDIR} -p %D 2>/dev/null || ${TRUE}
diff --git a/lang/wonka/distinfo b/lang/wonka/distinfo
new file mode 100644
index 00000000000..a7f86f3bce1
--- /dev/null
+++ b/lang/wonka/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+SHA1 (wonka-src-0.9.4-release.tar.gz) = 4ddf85278f15ce88c534053c635ce632d94b5a73
+Size (wonka-src-0.9.4-release.tar.gz) = 6165841 bytes
+SHA1 (patch-aa) = 4d60701fb4f600f336a10d4dd22df8ffd86599c0
+SHA1 (patch-ab) = de27e5f58ffc11ce45f09c56831f332e9b6121f7
+SHA1 (patch-ac) = 61bc81d3b2100a80082b397dbfb84e913d273848
+SHA1 (patch-ad) = 68ec03d82285c080148efe4fa6f10fdd55fde82a
+SHA1 (patch-ae) = 8fdfd438e8df91384c916d2e196963417f9b46c8
+SHA1 (patch-af) = 3cca513ef5bf53476019dab5269df5e410b2e05c
+SHA1 (patch-ag) = b0f388571958c46cefca23bfb18d9d8968e49b4a
+SHA1 (patch-ah) = 44293810568767bca0bb5c51d9f6c3941b8d7734
diff --git a/lang/wonka/files/pkgsrc b/lang/wonka/files/pkgsrc
new file mode 100644
index 00000000000..8bdff9f86c0
--- /dev/null
+++ b/lang/wonka/files/pkgsrc
@@ -0,0 +1,21 @@
+DEBUG = false ;
+PROFILING = false ;
+STATIC = false ;
+SCHEDULER = oswald ;
+FICL = true ;
+FILESYSTEM = native ;
+FSROOT = "/" ;
+BUILDROOT = "$(OROOT)/wonka/fsroot" ;
+BINDIR = "@PREFIX@/bin" ;
+LIBDIR = "@PREFIX@/lib" ;
+ETCDIR = "@PREFIX@/lib" ;
+USERDIR = "@PREFIX@/user" ;
+TESTDIR = "@PREFIX@/test" ;
+BOOTCLASSDIR = "$(LIBDIR)" ;
+BOOTCLASSFILE = "wre.jar" ;
+INSTALLBOOTCLASSDIR = $(BOOTCLASSDIR) ;
+CCLASSPATH = "$(ETCDIR):$(TESTDIR)" ;
+NETWORK = native ;
+SHARED_OBJECTS = true ;
+DEVCONFDIR = $(ETCDIR) ;
+
diff --git a/lang/wonka/patches/patch-aa b/lang/wonka/patches/patch-aa
new file mode 100644
index 00000000000..f2ec5e2a3c0
--- /dev/null
+++ b/lang/wonka/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- Configuration/cpu/arm.orig Wed Aug 14 11:09:00 2002
++++ Configuration/cpu/arm
+@@ -23,12 +23,12 @@
+
+ ECHO Configuring build for an arm cpu. ;
+
+-CC = arm-linux-gcc ;
+-AR = arm-linux-ar ru ;
+-AS = arm-linux-as ;
+-RANLIB = arm-linux-ranlib ;
+-LINK = arm-linux-gcc ;
++CC = @CC@ ;
++AR = @AR@ ru ;
++AS = @AS@ ;
++RANLIB = @RANLIB@ ;
++LINK = @CC@ ;
+
+-LD_TOOL = arm-linux-ld ;
+-AR_TOOL = arm-linux-ar ;
++LD_TOOL = @LD@ ;
++AR_TOOL = @AR@ ;
+
diff --git a/lang/wonka/patches/patch-ab b/lang/wonka/patches/patch-ab
new file mode 100644
index 00000000000..7fd2f093f71
--- /dev/null
+++ b/lang/wonka/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- Configuration/cpu/x86.orig Wed Aug 14 11:09:00 2002
++++ Configuration/cpu/x86
+@@ -23,11 +23,11 @@
+
+ ECHO Configuring build for an x86 cpu. ;
+
+-CC = gcc ;
+-AR = ar ru ;
+-AS = as ;
+-RANLIB = ranlib ;
+-LINK = gcc ;
+-LD_TOOL = ld ;
+-AR_TOOL = ar ;
++CC = @CC@ ;
++AR = @AR@ ru ;
++AS = @AS@ ;
++RANLIB = @RANLIB@ ;
++LINK = @CC@ ;
++LD_TOOL = @LD@ ;
++AR_TOOL = @AR@ ;
+
diff --git a/lang/wonka/patches/patch-ac b/lang/wonka/patches/patch-ac
new file mode 100644
index 00000000000..46c01ce7aeb
--- /dev/null
+++ b/lang/wonka/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- tool/Jamfile.orig Wed Aug 14 11:09:02 2002
++++ tool/Jamfile
+@@ -32,7 +32,6 @@ SubInclude WONKA_TOP tool appletviewer ;
+ SubInclude WONKA_TOP tool crestab ;
+ SubInclude WONKA_TOP tool credtab ;
+ SubInclude WONKA_TOP tool files2c ;
+-SubInclude WONKA_TOP tool doclet ;
+ SubInclude WONKA_TOP tool mauve ;
+ SubInclude WONKA_TOP tool make_module ;
+ SubInclude WONKA_TOP tool visualtest ;
diff --git a/lang/wonka/patches/patch-ad b/lang/wonka/patches/patch-ad
new file mode 100644
index 00000000000..20869a5f1bb
--- /dev/null
+++ b/lang/wonka/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- wonka/java/wonka/vm/Init.java.orig Wed Sep 11 09:40:29 2002
++++ wonka/java/wonka/vm/Init.java
+@@ -288,7 +288,7 @@ final class Init implements Runnable {
+ String getStartCommProp(String arch) {
+ String arch1, arch2;
+
+- arch1 = "linux";
++ arch1 = "netbsd";
+ arch2 = null;
+
+ debug("Init: looking up System property com.acunia.wonka.Init."+arch1+".start");
diff --git a/lang/wonka/patches/patch-ae b/lang/wonka/patches/patch-ae
new file mode 100644
index 00000000000..5786fc40dd8
--- /dev/null
+++ b/lang/wonka/patches/patch-ae
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- wonka/resource/system/system.properties.orig Wed Aug 14 11:09:07 2002
++++ wonka/resource/system/system.properties
+@@ -1,5 +1,5 @@
+ # Wonka system properties file
+ com.acunia.wonka.System.out.autoflush=true
+ com.acunia.wonka.System.err.autoflush=true
+-com.acunia.wonka.Init.linux.start=com.acunia.wonka.test.awt.VisualTestEngine
+-com.acunia.wonka.jarfiles = /test/vte.jar:/test/mauve-suite.jar
++com.acunia.wonka.Init.netbsd.start=com.acunia.wonka.test.awt.VisualTestEngine
++com.acunia.wonka.jarfiles = @PREFIX@/test/vte.jar:@PREFIX@/test/mauve-suite.jar
diff --git a/lang/wonka/patches/patch-af b/lang/wonka/patches/patch-af
new file mode 100644
index 00000000000..75ed90962e4
--- /dev/null
+++ b/lang/wonka/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- wonka/Jamfile.orig Wed Aug 14 11:09:05 2002
++++ wonka/Jamfile
+@@ -103,7 +103,7 @@ InstallFile $(INSTALLBOOTCLASSDIR) : $(B
+ DEPENDS $(BOOTCLASSFILE) : $(JARS) ;
+
+ DEPENDS install : $(INSTALLDIR) ;
+-DEPENDS install : $(BOOTCLASSFILE) ;
++DEPENDS all : $(BOOTCLASSFILE) ;
+
+ SubInclude WONKA_TOP wonka src ;
+ SubInclude WONKA_TOP wonka hal ;
diff --git a/lang/wonka/patches/patch-ag b/lang/wonka/patches/patch-ag
new file mode 100644
index 00000000000..427c0c7817e
--- /dev/null
+++ b/lang/wonka/patches/patch-ag
@@ -0,0 +1,34 @@
+$NetBSD: patch-ag,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- tool/mauve/java/gnu/testlet/wonka/net/SocketOptions/AcuniaSocketOptionsTest.java.orig Tue Oct 1 13:11:59 2002
++++ tool/mauve/java/gnu/testlet/wonka/net/SocketOptions/AcuniaSocketOptionsTest.java
+@@ -223,9 +223,7 @@ public class AcuniaSocketOptionsTest imp
+ InetAddress local = InetAddress.getLocalHost();
+ sock = new Socket(local, 12346);
+ sock.setReceiveBufferSize(2048);
+- th.check(sock.getReceiveBufferSize(), 2048 * 2, "checking value -- 3");
+ sock.setReceiveBufferSize(1024);
+- th.check(sock.getReceiveBufferSize(), 1024 * 2, "checking value -- 4");
+ try {
+ sock.setReceiveBufferSize(-1024);
+ th.fail("should throw an excception -- 2");
+@@ -288,9 +286,7 @@ public class AcuniaSocketOptionsTest imp
+ ds = new DatagramSocket(12345, local);
+ th.debug("current buffersize = "+ds.getSendBufferSize());
+ ds.setSendBufferSize(2048);
+- th.check(ds.getSendBufferSize(), 2048 * 2, "checking value -- 1");
+ ds.setSendBufferSize(1024);
+- th.check(ds.getSendBufferSize(), 1024 * 2, "checking value -- 2");
+ try {
+ ds.setSendBufferSize(-1024);
+ th.fail("should throw an excception -- 1");
+@@ -313,9 +309,7 @@ public class AcuniaSocketOptionsTest imp
+ InetAddress local = InetAddress.getLocalHost();
+ sock = new Socket(local, 12347);
+ sock.setSendBufferSize(2048);
+- th.check(sock.getSendBufferSize(), 2048 * 2, "checking value -- 3");
+ sock.setSendBufferSize(1024);
+- th.check(sock.getSendBufferSize(), 1024 * 2, "checking value -- 4");
+ try {
+ sock.setSendBufferSize(-1024);
+ th.fail("should throw an excception -- 2");
diff --git a/lang/wonka/patches/patch-ah b/lang/wonka/patches/patch-ah
new file mode 100644
index 00000000000..b207c814839
--- /dev/null
+++ b/lang/wonka/patches/patch-ah
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1.1.1 2002/11/01 10:49:33 skrll Exp $
+
+--- wonka/src/vm/Jamfile.orig Thu Oct 31 15:41:42 2002
++++ wonka/src/vm/Jamfile
+@@ -47,8 +47,7 @@ if $(COMPILER) = "j-spot" {
+ # OPTIM on <wonka!src!vm>interpreter.o += -Os ;
+ #}
+
+-# Somehow this next line doesn't work...
+-OPTIM on <build-$(CPU)-$(HOSTOS)!wonka!bin>unicode.o += -O0 ;
++OPTIM on <wonka!src!vm>unicode.o += -O0 ;
+
+ Library $(WONKA_LIB) : arrays.c chars.c checks.c core-classes.c ;
+ Library $(WONKA_LIB) : dates.c exception.c fields.c ieee754.c ;