From owner-freebsd-java@FreeBSD.ORG Mon May 16 15:29:25 2011 Return-Path: Delivered-To: java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id E5BA3106564A; Mon, 16 May 2011 15:29:24 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Andriy Gapon Date: Mon, 16 May 2011 11:29:05 -0400 User-Agent: KMail/1.6.2 References: <4DD0CFC2.3080804@FreeBSD.org> In-Reply-To: <4DD0CFC2.3080804@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105161129.09417.jkim@FreeBSD.org> Cc: java@freebsd.org Subject: Re: icedtea-web plugin as a separate port X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 15:29:25 -0000 On Monday 16 May 2011 03:18 am, Andriy Gapon wrote: > I wonder why we build icedtea-web plugin as a part of java/openjdk* > the way we do now. I think that perhaps it would be nicer to build > it a separate port. post-build WITH_WEB looks really > non-transparent. That's because it was not possible in the past, i.e., IcedTea-Web heavily relied on IcedTea. The situation will improve when IcedTea-Web 1.1 is released. Please see below. > Here's what I did to build the latest version icedtea-web from hg: > - hg clone http://icedtea.classpath.org/hg/icedtea-web > - env INSTALL=ginstall MAKE=gmake ./configure > --with-jdk-home=/usr/local/openjdk6 > --prefix=/usr/local/openjdk6/jre > --with-rhino=/usr/local/share/java/rhino/rhino.jar > --with-junit=/usr/local/share/java/classes/junit.jar > [junit, rhino (lang/rhino) and openjdk ports have to be installed > obviously] - gmake > - gmake install > > It worked/works for me. The tip is IcedTea-Web 1.1-ish now, which is already behind its release schedule, BTW. ;-) Although the IcedTea dependency problem was improved, there still exists one IcedTea-specific patch. This class is tested by configure script and it fails if OpenJDK6 wasn't patched first: http://icedtea.classpath.org/hg/icedtea-web/file/0e6b12424423/configure.ac#l80 http://icedtea.classpath.org/hg/icedtea-web/file/0e6b12424423/acinclude.m4#l682 Jung-uk Kim > P.S. I think that rhino port should install its jar into > ${PREFIX}/share/java/classes as other ports do.