From owner-freebsd-java@FreeBSD.ORG Sun Aug 22 21:43:19 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAB4916A4CF for ; Sun, 22 Aug 2004 21:43:19 +0000 (GMT) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A3FC43D2F for ; Sun, 22 Aug 2004 21:43:19 +0000 (GMT) (envelope-from past@netmode.ntua.gr) Received: from netmode.ece.ntua.gr (dolly.netmode.ece.ntua.gr [147.102.13.10]) by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i7MLhG0A050456; Mon, 23 Aug 2004 00:43:16 +0300 (EEST) (envelope-from past@netmode.ntua.gr) Received: from [147.102.229.10] (ppp-229-010.dialup.ntua.gr [147.102.229.10]) by netmode.ece.ntua.gr (8.12.10/8.12.8) with ESMTP id i7MLhEjI019673; Mon, 23 Aug 2004 00:43:15 +0300 (EEST) (envelope-from past@netmode.ntua.gr) Message-ID: <4129135E.3030808@netmode.ntua.gr> Date: Mon, 23 Aug 2004 00:42:54 +0300 From: Panagiotis Astithas User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040816) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: java@freebsd.org Subject: Re: Eclipse without Mozilla X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2004 21:43:19 -0000 Dag-Erling Smørgrav wrote: > Is it in any way possible to build Eclipse with gtk but without > Mozilla, or to substitute Firefox for Mozilla? Not in the current version of the port, unfortunately. But I worked up a patch for this. After applying it, use a "make -DWITH_FIREFOX" to build against firefox. I have verified it compiles, but not that the produced eclipse works well, yet. Cheers, Panagiotis ---------------------------------------------------------- diff -ru /usr/ports/java/eclipse/Makefile eclipse/Makefile --- /usr/ports/java/eclipse/Makefile Sun Aug 8 14:53:32 2004 +++ eclipse/Makefile Sun Aug 22 23:52:58 2004 @@ -43,9 +43,17 @@ PLIST_SUB+= MOTIF:="" .else ECLIPSE_WS= gtk -BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla PLIST_SUB+= GTK:="" PLIST_SUB+= MOTIF:="@comment " +.if defined(WITH_FIREFOX) +BUILD_DEPENDS+= firefox:${PORTSDIR}/www/firefox +BROWSER= firefox +BROWSER_VER= 0.9.3 +.else +BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla +BROWSER= mozilla +BROWSER_VER= +.endif .endif .if defined(WITHOUT_GNOMEVFS) @@ -58,7 +66,9 @@ PLIST_SUB+= GNOME:="" .endif -MAKE_ARGS= ECLIPSE_BUILD=${ECLIPSE_BUILD} \ +MAKE_ARGS= BROWSER=${BROWSER} \ + BROWSER_VER=${BROWSER_VER} \ + ECLIPSE_BUILD=${ECLIPSE_BUILD} \ ECLIPSE_ARCH=${ECLIPSE_ARCH} \ ECLIPSE_OS=${ECLIPSE_OS} \ ECLIPSE_WS=${ECLIPSE_WS} \ diff -ru /usr/ports/java/eclipse/files/make_gtk.mak eclipse/files/make_gtk.mak --- /usr/ports/java/eclipse/files/make_gtk.mak Sun Aug 8 14:53:32 2004 +++ eclipse/files/make_gtk.mak Mon Aug 23 00:22:55 2004 @@ -54,6 +54,7 @@ GNOMECFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` GNOMELIBS = `pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` +ifeq ($(BROWSER),mozilla) MOZILLACFLAGS = -O \ -fno-rtti \ -Wall \ @@ -61,14 +62,33 @@ -I$(JAVA_HOME)/include \ -I$(JAVA_HOME)/include/bsd \ -I$(JAVA_HOME)/include/freebsd \ - -include $(MOZILLA_HOME)/include/mozilla/mozilla-config.h \ - -I$(MOZILLA_HOME)/include/mozilla \ - -I$(MOZILLA_HOME)/include/mozilla/xpcom \ - -I$(MOZILLA_HOME)/include/mozilla/string \ - -I$(MOZILLA_HOME)/include/mozilla/nspr \ - -I$(MOZILLA_HOME)/include/mozilla/embed_base \ - -I$(MOZILLA_HOME)/include/mozilla/gfx -MOZILLALIBS = -L$(MOZILLA_HOME)/lib/mozilla -lgtkembedmoz -lxpcom + -include $(MOZILLA_HOME)/include/$(BROWSER)/mozilla-config.h \ + -I$(MOZILLA_HOME)/include/$(BROWSER) \ + -I$(MOZILLA_HOME)/include/$(BROWSER)/xpcom \ + -I$(MOZILLA_HOME)/include/$(BROWSER)/string \ + -I$(MOZILLA_HOME)/include/$(BROWSER)/nspr \ + -I$(MOZILLA_HOME)/include/$(BROWSER)/embed_base \ + -I$(MOZILLA_HOME)/include/$(BROWSER)/gfx +else +MOZILLACFLAGS = -O \ + -fno-rtti \ + -Wall \ + -I./ \ + -I$(JAVA_HOME)/include \ + -I$(JAVA_HOME)/include/bsd \ + -I$(JAVA_HOME)/include/freebsd \ + -include $(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER)/mozilla-config.h \ + -I$(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER) \ + -I$(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER)/xpcom \ + -I$(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER)/string \ + -I$(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER)/nspr \ + -I$(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER)/embed_base \ + -I$(MOZILLA_HOME)/lib/$(BROWSER)/include/$(BROWSER)-$(BROWSER_VER)/gfx +endif + +MOZILLALIBS = -L$(MOZILLA_HOME)/lib/$(BROWSER) \ + -L$(MOZILLA_HOME)/lib/$(BROWSER)/lib/$(BROWSER)-$(BROWSER_VER) \ + -lgtkembedmoz -lxpcom MOZILLALDFLAGS = -s SWT_OBJECTS = swt.o callback.o