A port of the GNU java runtime 2.95

This commit is contained in:
niklas 1999-08-02 21:50:23 +00:00
parent 61cf8f531f
commit 2b5925e00c
8 changed files with 229 additions and 0 deletions

41
lang/libgcj/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 1999/08/02 21:50:23 niklas Exp $
# This should probably be part of the egcs port eventually.
# it only works right with a recent bsd.port.mk.
NEED_VERSION=1.73
# If you want to be built with egcs-snapshot instead of in-tree, depend on that
#BUILD_DEPENDS= egcj:${PORTSDIR}/lang/egcs-snapshot
# In the end we want to use autoconf to regen configure after patching
#BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf
CATEGORIES= lang
MAINTAINER= niklas@openbsd.org
# These are for snapshot trackers
#LATEST_DATE= 1999-07-08
#DISTNAME= libgcj-snapshot-${LATEST_DATE}
#MASTER_SITES= ftp://ftp.appli.se/pub/ \
# ftp://sourceware.cygnus.com/pub/java/snapshots/
#MIRROR_DISTFILE=no
DISTNAME= libgcj-2.95
MASTER_SITES= ftp://sourceware.cygnus.com/pub/java/
#CFLAGS= -O2 -g
CFLAGS= -O2
GNU_CONFIGURE= yes
# If you use egcs-snapshot...
#CONFIGURE_ENV= CXX=ec++ CC=egcc
USE_GMAKE= yes
SEPARATE_BUILD= yes
# If you use egcs-snapshot...
#MAKE_FLAGS= GCJ=egcj
# does not work yet as libgcj is a bit messed up
#post-patch:
# cd ${WRKSRC}/libjava && PATH=${PORTPATH} autoreconf
.include <bsd.port.mk>

3
lang/libgcj/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (libgcj-2.95.tar.gz) = ab98e75eff1d91b92f0c9f932e9ba1be
RMD160 (libgcj-2.95.tar.gz) = 6486b5132979d28e3295be69a9464a6860607024
SHA1 (libgcj-2.95.tar.gz) = a3383a916fee408422a42b8f068568833a8f5911

View File

@ -0,0 +1,82 @@
--- ./boehm-gc/config.h.orig Fri Apr 16 11:56:29 1999
+++ ./boehm-gc/config.h Fri Apr 23 19:17:30 1999
@@ -38,6 +38,11 @@
# define NETBSD
# define mach_type_known
# endif
+# if defined(__OpenBSD__) && defined(__m68k__)
+# define M68K
+# define OPENBSD
+# define mach_type_known
+# endif
# if defined(vax)
# define VAX
# ifdef ultrix
@@ -47,9 +52,10 @@
# endif
# define mach_type_known
# endif
-# if defined(mips) || defined(__mips)
+# if defined(mips) || defined(__mips) || defined(__mips__)
# define MIPS
-# if defined(ultrix) || defined(__ultrix) || defined(__NetBSD__)
+# if defined(ultrix) || defined(__ultrix) || defined(__NetBSD__) \
+ || defined(__OpenBSD__)
# define ULTRIX
# else
# if defined(_SYSTYPE_SVR4) || defined(SYSTYPE_SVR4) || defined(__SYSTYPE_SVR4__)
@@ -172,6 +178,11 @@
# define NETBSD
# define mach_type_known
# endif
+# if defined(__OpenBSD__) && defined(__i386__)
+# define I386
+# define OPENBSD
+# define mach_type_known
+# endif
# if defined(bsdi) && defined(i386)
# define I386
# define BSDI
@@ -253,8 +264,9 @@
/* MACOS and AMIGA variants) */
/* I386 ==> Intel 386 */
/* (SEQUENT, OS2, SCO, LINUX, NETBSD, */
- /* FREEBSD, THREE86BSD, MSWIN32, */
- /* BSDI, SUNOS5, NEXT variants) */
+ /* FREEBSD, THREE86BSD, OPENBSD, */
+ /* MSWIN32, BSDI, SUNOS5, */
+ /* NEXT variants) */
/* NS32K ==> Encore Multimax */
/* MIPS ==> R2000 or R3000 */
/* (RISCOS, ULTRIX variants) */
@@ -371,6 +383,12 @@
extern char etext;
# define DATASTART ((ptr_t)(&etext))
# endif
+# ifdef OPENBSD
+# define OS_TYPE "OPENBSD"
+# define HEURISTIC2
+ extern char etext;
+# define DATASTART ((ptr_t)(&etext))
+# endif
# ifdef SUNOS4
# define OS_TYPE "SUNOS4"
extern char etext;
@@ -675,13 +693,16 @@
# ifdef NETBSD
# define OS_TYPE "NETBSD"
# endif
+# ifdef OPENBSD
+# define OS_TYPE "OPENBSD"
+# endif
# ifdef THREE86BSD
# define OS_TYPE "THREE86BSD"
# endif
# ifdef BSDI
# define OS_TYPE "BSDI"
# endif
-# if defined(FREEBSD) || defined(NETBSD) \
+# if defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
|| defined(THREE86BSD) || defined(BSDI)
# define HEURISTIC2
extern char etext;

View File

@ -0,0 +1,46 @@
--- Makefile.in.orig Wed Apr 7 16:52:30 1999
+++ Makefile.in Sat Apr 24 00:37:41 1999
@@ -73,6 +73,7 @@
AR = ar
AR_FLAGS = rc
CC = cc
+GCJ = gcj
# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
# here so that they can be overridden by Makefile fragments.
@@ -382,6 +383,7 @@
"CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
"DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
+ "GCJ=$(GCJ)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
--- libjava/Makefile.in.orig Fri May 21 15:09:51 1999
+++ libjava/Makefile.in Sun May 30 22:39:59 1999
@@ -139,6 +139,8 @@
GCJCOMPILE = CLASSPATH=$(here) $(LIBTOOL) --mode=compile $(GCJ) -fassume-compiled $(JC1FLAGS) -c
+GCJ = gcj
+
JAVAC = $(GCJ) -C
EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@
@@ -597,6 +593,7 @@
"CXXFLAGS=$(CXXFLAGS)" \
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
+ "GCJ=$(GCJ)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
@@ -1382,7 +1377,7 @@
-d $(here) $?
libgcj.zip: $(java_source_files)
- $(MAKE) $(built_java_source_files:.java=.class)
+ $(MAKE) $(AM_MAKEFLAGS) $(built_java_source_files:.java=.class)
javac="$(JAVAC)"; cd $(srcdir); \
$$javac $(JCFLAGS) -classpath $(here):`/bin/pwd` -d $(here) \
$(subst $(srcdir)/,,$?)

View File

@ -0,0 +1,30 @@
--- libjava/configure.orig Mon Aug 2 02:14:40 1999
+++ libjava/configure Mon Aug 2 23:32:17 1999
@@ -4630,11 +4630,12 @@
fi
rm -f conftest*
-echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
-echo "configure:4635: checking for socklen_t in sys/socket.h" >&5
+echo $ac_n "checking for socklen_t in sys/socket.h or sys/types.h""... $ac_c" 1>&6
+echo "configure:4635: checking for socklen_t in sys/socket.h or sys/types.h" >&5
cat > conftest.$ac_ext <<EOF
#line 4637 "configure"
#include "confdefs.h"
+#include <sys/types.h>
#include <sys/socket.h>
int main() {
socklen_t x = 5;
--- ./libjava/configure.in.orig Tue Apr 20 08:27:06 1999
+++ ./libjava/configure.in Fri Apr 23 15:29:06 1999
@@ -338,8 +338,8 @@
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
-AC_MSG_CHECKING([for socklen_t in sys/socket.h])
-AC_TRY_COMPILE([#include <sys/socket.h>], [socklen_t x = 5;],
+AC_MSG_CHECKING([for socklen_t in sys/socket.h or sys/types.h])
+AC_TRY_COMPILE([#include <sys/types.h>], [#include <sys/socket.h>], [socklen_t x = 5;],
[AC_DEFINE(HAVE_SOCKLEN_T)
AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])

1
lang/libgcj/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
a Java(tm) runtime library, mainly for egcs

13
lang/libgcj/pkg/DESCR Normal file
View File

@ -0,0 +1,13 @@
``libgcj'' is the runtime that goes along with the gcj front end to
egcs. libgcj includes parts of the Java Class Libraries, plus glue to
connect the libraries to the compiler and the underlying OS.
libgcj eventually builds a couple of libraries (one for the runtime
and one for the garbage collector), a ``zip'' version of the class
libraries, and a program called ``jv-convert'' which can be used to do
character encoding transformations.
The runtime is not yet fully complete. Parts of the standard class
libraries are missing, and some libraries (such as AWT) have not even
been started. Also, there is not a bytecode interpreter; the runtime
currently assumes your application will be entirely compiled.

13
lang/libgcj/pkg/PLIST Normal file
View File

@ -0,0 +1,13 @@
bin/jv-convert
bin/zip
lib/libgcj.a
lib/libgcj.la
lib/libgcj.so.0.0
lib/libgcj.spec
lib/libgcjgc.a
lib/libgcjgc.la
lib/libgcjgc.so.0.0
lib/libzgcj.a
lib/libzgcj.la
lib/libzgcj.so.0.0
share/libgcj.zip