Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2002 14:12:40 -0800
From:      Tom Pavel <tpavel@sbcglobal.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36024: port update: OpenJIT 1.1.16 for JDK 1.3.1
Message-ID:  <200203172213.g2HMDLk119368@pimout3-int.prodigy.net>

next in thread | raw e-mail | index | archive | help

>Number:         36024
>Category:       ports
>Synopsis:       port update: OpenJIT 1.1.16 for JDK 1.3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 17 14:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tom Pavel
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
none
>Environment:
System: FreeBSD bozon.bogus.domain 4.5-STABLE FreeBSD 4.5-STABLE #5: Sun Mar 10 21:35:49 PST 2002 tom@bozon.bogus.domain:/usr/src/sys/compile/BOZONSMP i386

>Description:

Attached is an updated port/java/openjit.  The current port uses
version 1.1.15 (as opposed to the latest 1.1.16), but more importantly,
the current port only works with JDK-1.1.8.  As described on
http://ezine.daemonnews.org/200203/tomcat-jakarta.html, the latest
OpenJIT does support newer JDKs.

One point worth mentioning: I modified this port to install class
files into the /usr/local/jdk1.1.3/jre/classes dir (which is the
default in the OpenJIT makefile).  This allows one to use the JIT,
just by defining JAVA_COMPILER, without CLASSPATH or LD_LIBRARY_PATH. 
I find that much friendlier, but it does end up cluttering the JDK 
tree somewhat.  Consider that "just a suggestion"...

Please contact me if I can clarify anything.

Tom Pavel
pavel@alum.mit.edu


>How-To-Repeat:

>Fix:

--- openjit.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	openjit
#	openjit/pkg-descr
#	openjit/pkg-comment
#	openjit/distinfo
#	openjit/pkg-plist
#	openjit/Makefile
#	openjit/files
#
echo c - openjit
mkdir -p openjit > /dev/null 2>&1
echo x - openjit/pkg-descr
sed 's/^X//' >openjit/pkg-descr << 'END-of-openjit/pkg-descr'
XThe OpenJIT project is an ongoing Java the programming language JIT compiler
Xproject as a collaborative effort between Tokyo Institute of Technology and
XFujitsu Laboratory, partly sponsored by the Information Promotion Agency of
XJapan.
X
XOpenJIT is a "reflective" JIT compiler in that not only it is almost entirely
Xwritten in Java, but also that it bootstraps and compiles itself during
Xexecution of the user program, and compiler components coexist as first-class
Xobjects in user heap space. Thus, users can tailor and customize the compilation
Xof classes at runtime for variety of purposes such as application-specific
Xoptimization and partial evaluation, dynamic, compiler-assisted environment
Xadaptation of programs, debugging, language extension and experimentation, and
Xother types of advanced compiler-based research and applications. OpenJIT even
Xallows full dynamic update of itself by loading the compiler classes on the fly
Xfrom the network.
X
XOpenJIT is fully JDK compliant, and plugs into standard JVMs several Unix
Xplatforms such as Solaris (Sparc), Linux (x86), and FreeBSD (x86).
X
XOn Linux/x86 platform, OpenJIT 1.1.14 is faster than the JDK 1.2 classic VM
Xcompiler, runs more or less the same speed as other commercial JIT compilers on
Xclassic VM.
X
XOpenJIT is completely free so long as it is used for non-commercial purposes.
XIts source, binaries, etc. can be freely distributed and modified without
Xrestriction.
X
XWWW: http://www.openjit.org/
END-of-openjit/pkg-descr
echo x - openjit/pkg-comment
sed 's/^X//' >openjit/pkg-comment << 'END-of-openjit/pkg-comment'
XA high-performance reflective Java Just-In-Time (JIT) bytecode compiler
END-of-openjit/pkg-comment
echo x - openjit/distinfo
sed 's/^X//' >openjit/distinfo << 'END-of-openjit/distinfo'
XMD5 (OpenJIT-1.1.16.tar.gz) = a22b4144c2e56fa2ea4afd67c1196d30
END-of-openjit/distinfo
echo x - openjit/pkg-plist
sed 's/^X//' >openjit/pkg-plist << 'END-of-openjit/pkg-plist'
X%%JAVAVER%%/jre/lib/i386/libOpenJIT_g.so
X%%JAVAVER%%/jre/lib/i386/libOpenJIT.so
X%%JAVAVER%%/jre/classes/org/OpenJIT/BCinfo.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/Compile.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/CompilerError.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/Constants.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/ConvertRTL.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/Debug.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/ExceptionHandler.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/ILnode.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/InlineInfo.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/LinkageInfo.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/LinkedList.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/OpenJITLoader.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/OptimizeRTL.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/PCList.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/PCReloc.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/ParseBytecode.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/Select.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/Var.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/SubrNode.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/SubrNodeList.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/X86.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/X86code.class
X%%JAVAVER%%/jre/classes/org/OpenJIT/X86reg.class
Xlib/OpenJIT/OpenJIT.jar
Xlib/OpenJIT/libOpenJIT.so
Xshare/OpenJIT/README
X@dirrm lib/OpenJIT
X@dirrm share/OpenJIT
X@dirrm %%JAVAVER%%/jre/classes/org/OpenJIT
X
END-of-openjit/pkg-plist
echo x - openjit/Makefile
sed 's/^X//' >openjit/Makefile << 'END-of-openjit/Makefile'
X# New ports collection makefile for:	openjit
X# Date created:				26 September 2000
X# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
X#
X# $FreeBSD: ports/java/openjit/Makefile,v 1.1 2000/09/26 13:04:29 sobomax Exp $
X#
X
XPORTNAME=	openjit
XPORTVERSION=	1.1.16
XCATEGORIES=	java
XMASTER_SITES=	http://www.openjit.org/dist/
XDISTNAME=	OpenJIT-${PORTVERSION}
X
XMAINTAINER=	sobomax@FreeBSD.org
X
XBUILD_DEPENDS=	${JAVADIR}/bin/java:${PORTSDIR}/java/jdk13
X
XONLY_FOR_ARCHS=	i386
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+=	--with-jdk=${JAVADIR}
X
XALL_TARGET=	OpenJIT.jar
X
XJAVAVER=	jdk1.3.1
XJAVADIR=	${LOCALBASE}/${JAVAVER}
XJAVALIBDIR=	${PREFIX}/lib/OpenJIT
XDOCDIR=		${PREFIX}/share/OpenJIT
XPLIST_SUB=	JAVAVER=${JAVAVER}
X
Xpost-configure:
X	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/INSTALL
X
Xpost-install:
X	@${MKDIR} ${JAVALIBDIR}
X	@${INSTALL_PROGRAM} ${WRKSRC}/libOpenJIT.so ${JAVALIBDIR}
X	@${INSTALL_DATA} ${WRKSRC}/OpenJIT.jar ${JAVALIBDIR}
X	@${MKDIR} ${DOCDIR}
X	@${INSTALL_MAN} ${WRKSRC}/INSTALL ${DOCDIR}/README
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "See ${DOCDIR}/README for usage instructions."
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
END-of-openjit/Makefile
echo c - openjit/files
mkdir -p openjit/files > /dev/null 2>&1
exit
--- openjit.shar ends here ---




>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203172213.g2HMDLk119368>