Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2003 11:56:29 +1300
From:      Jonathan Chen <jonc@mobiledatanow.com>
To:        openoffice@freebsd.org
Subject:   Port build and Java
Message-ID:  <20031117225629.GA86567@baldur.mobiledatanow.com>

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

--a8Wt8u1KmwUX3Y2C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

Looking at the port's Makefile, is there any particular reason why
OpenOffice-1.1 isn't using the USE_JAVA macro? Using it would save the
maintainers the hassle of tweaking the Makefile everytime the Java VM
moves up one minor release.

Cheers.
-- 
Jonathan Chen <jonc@mobiledatanow.com>
Mobile Data Now                     Tel: +64-9-636-8014
35K Maurice Rd                      Fax: +64-9-636-8534
Penrose, Auckland
New Zealand

--a8Wt8u1KmwUX3Y2C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=asdf

--- Makefile.orig	Tue Nov 18 11:52:25 2003
+++ Makefile	Tue Nov 18 11:52:25 2003
@@ -102,11 +102,6 @@
 COMMENT=	Integrated wordprocessor/dbase/spreadheet/drawing/chart/browser
 .endif
 
-#
-# The JDK dependency needs to be at the first place, so all
-# following dependencies use the same JDK.
-#
-BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk14
 BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
 BUILD_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip
 BUILD_DEPENDS+=	${ANT}:${PORTSDIR}/devel/apache-ant
@@ -127,15 +122,13 @@
 USE_BISON=	yes
 USE_GMAKE=	yes
 USE_GNOME=	orbit gtk12
+USE_JAVA=	1.4+
 
 EXTRACT_BEFORE_ARGS_R= -dc
 EXTRACT_AFTER_ARGS_R= | ${TAR} -xf -
 EXTRACT_CMD_R= ${GZIP_CMD}
 EXTRACT_REST=	gpc231.tar.Z
 
-JDKDIR?=	${LOCALBASE}/jdk1.4.2
-JAVAVM=		${JDKDIR}/bin/java
-
 GNU_CONFIGURE=	yes
 USE_AUTOCONF=	yes
 WANT_AUTOCONF_VER= 253
@@ -160,7 +153,7 @@
 
 CONFIGURE_ENV=		PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
 			PTHREAD_LIBS=${PTHREAD_LIBS}
-CONFIGURE_ARGS+=	--with-jdk-home=${JDKDIR}
+CONFIGURE_ARGS+=	--with-jdk-home=${JAVA_HOME}
 
 .if defined(WITH_DEBUG)
 .if ${WITH_DEBUG} == 2

--a8Wt8u1KmwUX3Y2C--



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