From 102f8f56719cc9262d2617132ceac6ec092dd557 Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 28 Jan 1998 10:48:58 +0000 Subject: Initial import of kaffe 0.9.2 (a Java interpreter/JIT compiler) into the NetBSD packages collection, from the FreeBSD port. --- lang/kaffe/Makefile | 30 +++++++++++++++++ lang/kaffe/files/classes.zip.1.02.md5 | 1 + lang/kaffe/files/md5 | 2 ++ lang/kaffe/patches/patch-aa | 14 ++++++++ lang/kaffe/patches/patch-ab | 15 +++++++++ lang/kaffe/pkg/COMMENT | 1 + lang/kaffe/pkg/DESCR | 32 ++++++++++++++++++ lang/kaffe/pkg/PLIST | 62 +++++++++++++++++++++++++++++++++++ 8 files changed, 157 insertions(+) create mode 100644 lang/kaffe/Makefile create mode 100644 lang/kaffe/files/classes.zip.1.02.md5 create mode 100644 lang/kaffe/files/md5 create mode 100644 lang/kaffe/patches/patch-aa create mode 100644 lang/kaffe/patches/patch-ab create mode 100644 lang/kaffe/pkg/COMMENT create mode 100644 lang/kaffe/pkg/DESCR create mode 100644 lang/kaffe/pkg/PLIST (limited to 'lang') diff --git a/lang/kaffe/Makefile b/lang/kaffe/Makefile new file mode 100644 index 00000000000..ca97892b840 --- /dev/null +++ b/lang/kaffe/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: kaffe +# Version required: 0.9.2 +# Date created: 20 February 1995 +# Whom: Tim Wilkinson +# +# FreeBSD Id: Makefile,v 1.30 1997/12/08 09:37:16 obrien Exp +# + +DISTNAME= kaffe-0.9.2 +CATEGORIES= lang +MASTER_SITES= ftp://ftp.kaffe.org/pub/kaffe/ \ + ftp://ftp.cs.columbia.edu/pub/kaffe/ \ + http://www.webcity.co.jp/info/andoh/java/kaffe/ +EXTRACT_SUFX= .tgz +DISTFILES= ${DISTNAME}.tgz kaffe-0.9.2-package-javasoft.com.tgz \ + +MAINTAINER= xaa@stack.nl + +RESTRICTED= 'No redistribution of the Java(tm) Development Kit' +NO_PACKAGE= ${RESTRICTED} + +GNU_CONFIGURE= yes +MAN1= kaffe.1 + +post-install: + ${MKDIR} ${PREFIX}/share/kaffe + ${INSTALL_DATA} ${WRKSRC}/ENVIRONMENT ${WRKSRC}/license.terms ${PREFIX}/share/kaffe + ${LDCONFIG} -m ${PREFIX}/lib + +.include diff --git a/lang/kaffe/files/classes.zip.1.02.md5 b/lang/kaffe/files/classes.zip.1.02.md5 new file mode 100644 index 00000000000..12359f3f1b0 --- /dev/null +++ b/lang/kaffe/files/classes.zip.1.02.md5 @@ -0,0 +1 @@ +5739d02d3067288dccd74fd9d72ce8eb diff --git a/lang/kaffe/files/md5 b/lang/kaffe/files/md5 new file mode 100644 index 00000000000..b041a6d9462 --- /dev/null +++ b/lang/kaffe/files/md5 @@ -0,0 +1,2 @@ +MD5 (kaffe-0.9.2.tgz) = 576762b44fda537a33dc33616062cf1a +MD5 (kaffe-0.9.2-package-javasoft.com.tgz) = 0a6ce38b13cd747e2e865c4d1c0f9ab2 diff --git a/lang/kaffe/patches/patch-aa b/lang/kaffe/patches/patch-aa new file mode 100644 index 00000000000..3167c722474 --- /dev/null +++ b/lang/kaffe/patches/patch-aa @@ -0,0 +1,14 @@ +--- ./configure Thu Mar 20 14:37:38 1997 ++++ ./configure Fri Mar 21 18:39:02 1997 +@@ -4422,9 +4422,9 @@ + + if test "$SYSTEM" = "unix" ; then + if test "$awt_toolkit" != "none" ; then +- echo CLASSPATH=.:$datadir/kaffe/classes.zip:$datadir/kaffe/$awt_toolkit.zip > ENVIRONMENT ++ echo CLASSPATH=.:$datadir/java/classes.zip:$datadir/kaffe/$awt_toolkit.zip > ENVIRONMENT + else +- echo CLASSPATH=.:$datadir/kaffe/classes.zip > ENVIRONMENT ++ echo CLASSPATH=.:$datadir/java/classes.zip > ENVIRONMENT + fi + echo KAFFEHOME=$datadir/kaffe >> ENVIRONMENT + if test "$dynamic_libraries" = "yes" ; then diff --git a/lang/kaffe/patches/patch-ab b/lang/kaffe/patches/patch-ab new file mode 100644 index 00000000000..28b37c06a20 --- /dev/null +++ b/lang/kaffe/patches/patch-ab @@ -0,0 +1,15 @@ +--- kaffe/kaffeh/main.c Sat Oct 4 03:26:55 1997 ++++ kaffe/kaffeh/main.c Wed Jan 21 12:35:44 1998 +@@ -130,11 +130,13 @@ + strcpy(tmpName, stubName); + strcpy(stubName, directoryName); + stubName[dirLen] = PATH_SEP_CHAR; ++ stubName[dirLen + 1] = 0; + strcat(stubName, tmpName); + + strcpy(tmpName, includeName); + strcpy(includeName, directoryName); + includeName[dirLen] = PATH_SEP_CHAR; ++ includeName[dirLen + 1] = 0; + strcat(includeName, tmpName); + } diff --git a/lang/kaffe/pkg/COMMENT b/lang/kaffe/pkg/COMMENT new file mode 100644 index 00000000000..9d110713256 --- /dev/null +++ b/lang/kaffe/pkg/COMMENT @@ -0,0 +1 @@ +A virtual machine capable of running Java(tm) code (including an awt-package) diff --git a/lang/kaffe/pkg/DESCR b/lang/kaffe/pkg/DESCR new file mode 100644 index 00000000000..97eda973075 --- /dev/null +++ b/lang/kaffe/pkg/DESCR @@ -0,0 +1,32 @@ +******************* +* NB: The section about the settings of the environment variables +* has changed! - Xaa +******************* + +This is Kaffe, a virtual machine design to execute Java bytecode. +This machine can be configured in two modes. In one mode it operates as +a pure bytecode interpreter (not unlike Javasoft's machine); in the second +mode if performs "just-in-time" code conversion from the abstract code to +the host machine's native code. This will ultimately allow execution of +Java code at the same speed as standard compiled code but while maintaining +the advantages and flexibility of code independence. + +Running Kaffe +============= +Before running Kaffe it is necessary to configure the environment. +This requires the setting of CLASSPATH, KAFFEHOME and LD_LIBRARY_PATH. +For the standard installation these would be defined as follows: + + CLASSPATH=.:/usr/local/share/kaffe/classes.zip + KAFFEHOME=/usr/local/share/kaffe + LD_LIBRARY_PATH=/usr/lib:/usr/local/lib + +You can run "sh /usr/local/share/kaffe/ENVIRONMENT" to have these set for +you. + +What's in there +=============== + +For further info see the file README that comes with the distribution. +---- +* Java and Javasoft are registered trademark of Sun Microsystems, Inc. diff --git a/lang/kaffe/pkg/PLIST b/lang/kaffe/pkg/PLIST new file mode 100644 index 00000000000..ccf53fbec50 --- /dev/null +++ b/lang/kaffe/pkg/PLIST @@ -0,0 +1,62 @@ +bin/kaffe +bin/kaffeh +bin/appletviewer +bin/jar +bin/javac +bin/javadoc +bin/javakey +bin/javap +bin/jdb +bin/native2ascii +bin/report-kaffe-bug +bin/rmic +bin/rmiregistry +bin/serialver +include/kaffe/jtypes.h +include/kaffe/native.h +include/kaffe/StubPreamble.h +include/kaffe/Arrays.h +include/kaffe/java_lang_Object.h +include/kaffe/java_lang_String.h +include/kaffe/java_lang_Throwable.h +include/kaffe/java_lang_Thread.h +include/kaffe/java_lang_ThreadGroup.h +lib/libnative.so.0.92 +lib/libnative.so +lib/libnet.so.0.92 +lib/libnet.so +lib/libagent.so.0.92 +lib/libagent.so +lib/libzip.so.0.92 +lib/libzip.so +lib/libkaffevm.so.0.92 +lib/libkaffevm.so +man/man1/kaffe.1.gz +share/kaffe/lib/security/java.security +share/kaffe/lib/appletviewer.properties +share/kaffe/lib/awt.properties +share/kaffe/lib/content-types.properties +share/kaffe/lib/font.properties +share/kaffe/lib/rmic.properties +share/kaffe/lib/serialver.properties +share/kaffe/lib/font.properties.cs +share/kaffe/lib/font.properties.el +share/kaffe/lib/font.properties.hu +share/kaffe/lib/font.properties.ja +share/kaffe/lib/font.properties.ko +share/kaffe/lib/font.properties.lt +share/kaffe/lib/font.properties.lv +share/kaffe/lib/font.properties.pl +share/kaffe/lib/font.properties.ru +share/kaffe/lib/font.properties.tr +share/kaffe/lib/font.properties.zh +share/kaffe/lib/font.properties.zh_TW +share/kaffe/lib/psfont.properties.ja +share/kaffe/classes.zip +share/kaffe/ENVIRONMENT +share/kaffe/license.terms +@exec /sbin/ldconfig -m %B +@dirrm include/kaffe +@dirrm share/kaffe/lib/security +@dirrm share/kaffe/lib +@dirrm share/kaffe -- cgit v1.2.3