Date: Mon, 26 Jul 2004 22:47:14 +0300 From: Panagiotis Astithas <past@netmode.ntua.gr> To: Jeremy Faulkner <gldisater@gldis.ca> Cc: freebsd-java@freebsd.org Subject: Re: HEADS UP: Eclipse 3.0 updated Message-ID: <41055FC2.4070909@netmode.ntua.gr> In-Reply-To: <41054B7D.6050206@gldis.ca> References: <20040725171544.71dc613e.nork@FreeBSD.org> <20040726.130935.74732878.sugitk@rio.odn.ne.jp> <41054B7D.6050206@gldis.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Faulkner wrote: > SUGIMURA Takashi wrote: > >> I made Eclipse 3.0 from the newest ports, and I found a problem. >> >> At /usr/local/eclipse/eclipse, >> DEFAULT_JAVA_HOME and ECLIPSE_HOME are not set. >> >> --- >> SUGIMURA Takashi <sugitk@rio.odn.ne.jp> > > > Patch attached. > > > ------------------------------------------------------------------------ > > --- eclipse/files/Makefile Sun Jul 25 07:30:36 2004 > +++ eclipse.mod/files/Makefile Mon Jul 26 14:09:47 2004 > @@ -59,7 +59,7 @@ > $(ANT) -Djava.home=$(JAVA_HOME) > @$(ECHO) "===> Building libcore." > cd plugins/org.eclipse.core.resources.freebsd/src && \ > - env JDK_INCLUDE="/usr/local/jdk1.4.2/include -I/usr/local/jdk1.4.2/include/freebsd" $(GMAKE) && \ > + env JDK_INCLUDE="$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd" $(GMAKE) && \ > $(CP) *.so ../../org.eclipse.core.resources.freebsd/os/freebsd/x86 > > java: build-install > @@ -74,8 +74,8 @@ > $(UNZIP_CMD) result/$(ECLIPSE_OS)-$(ECLIPSE_WS)-$(ECLIPSE_ARCH)-sdk.zip -d $(PREFIX) > @$(ECHO) "===> Installing a shell script..." > @$(SED) \ > - -e "/%%ECLIPSE_HOME%%/s//$(PORTDESTDIR:S/\//\\\//g)/g" \ > - -e "/%%JAVA_HOME%%/s//$(JAVA_HOME:S/\//\\\//g)/g" \ > + -e "s+%%ECLIPSE_HOME%%+$(PORTDESTDIR)+g" \ > + -e "s+%%JAVA_HOME%%+$(JAVA_HOME)+g" \ > eclipse.in > eclipse.tmp > $(BSD_INSTALL_SCRIPT) eclipse.tmp $(PREFIX)/bin/eclipse Nice catch! I can't test it right now, but if it works I like it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41055FC2.4070909>