Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2006 14:08:00 -0400 (EDT)
From:      David Sledge <dsledge@appriss.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/102993: New port: java/eclipse32 New port of Eclipse IDE version 3.2
Message-ID:  <200609071808.k87I80rt020480@dsledge.users.appriss.com>
Resent-Message-ID: <200609072110.k87LAMw0071579@freefall.freebsd.org>

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

>Number:         102993
>Category:       ports
>Synopsis:       New port: java/eclipse32 New port of Eclipse IDE version 3.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 07 21:10:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     David Sledge
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD dsledge.users.appriss.com 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Mon Aug 7 15:33:19 EDT 2006 dsledge@appriss.com:/usr/src/sys/i386/compile/MYKERNEL i386

>Description:
	New port of Eclipse IDE version 3.2 (java/eclipse32). We need to keep the existing Eclipse IDE version 3.1.2 port (java/eclipse) as many other ports 
depend on it.

>How-To-Repeat:
	N/A
>Fix:
--- eclipse32.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:
#
#	eclipse32
#	eclipse32/scripts
#	eclipse32/scripts/pre-patch
#	eclipse32/files
#	eclipse32/files/patch-build.xml
#	eclipse32/files/patch-features-jdt-build.xml
#	eclipse32/files/patch-features-jdt-source-build.xml
#	eclipse32/files/patch-features-pde-build.xml
#	eclipse32/files/patch-features-pde-source-build.xml
#	eclipse32/files/patch-features-rcp-build.xml
#	eclipse32/files/patch-features-rcp-source-build.xml
#	eclipse32/files/patch-features-sdk-build.xml
#	eclipse32/files/patch-features-platform-build.xml
#	eclipse32/files/patch-features-platform-source-build.xml
#	eclipse32/files/eclipse.in
#	eclipse32/files/post-patch-plugins-swt-gtk-os_custom.h
#	eclipse32/files/patch-features-platform-launchers-build.sh
#	eclipse32/files/post-patch-plugins-swt-gtk-make_freebsd.mak
#	eclipse32/files/post-patch-plugins-swt-gtk-build.sh
#	eclipse32/files/patch-plugins-core-resources-build.xml
#	eclipse32/files/patch-features-platform-source-feature.xml
#	eclipse32/files/patch-features-plat-launchers-make_freebsd.mak
#	eclipse32/files/patch-plugins-plat-i-customBuildCallbacks.xml
#	eclipse32/files/patch-package-sdk-all.xml
#	eclipse32/files/eclipse.desktop
#	eclipse32/files/patch-assemble-sdk-all.xml
#	eclipse32/files/patch-build
#	eclipse32/files/patch-features-plat-library-eclipseShm.c
#	eclipse32/files/patch-plugins-plat-u-customBuildCallbacks.xml
#	eclipse32/Makefile
#	eclipse32/pkg-descr
#	eclipse32/distinfo
#
echo c - eclipse32
mkdir -p eclipse32 > /dev/null 2>&1
echo c - eclipse32/scripts
mkdir -p eclipse32/scripts > /dev/null 2>&1
echo x - eclipse32/scripts/pre-patch
sed 's/^X//' >eclipse32/scripts/pre-patch << 'END-of-eclipse32/scripts/pre-patch'
X#!/bin/sh
X# $FreeBSD$
X
Xcopy_file()
X{
X	srcfile="$1"
X	dstfile="$2"
X
X	rm -f $dstfile
X	cat "$srcfile" | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g' > "$dstfile"
X}
X
Xcopy_dir()
X{
X	srcdir="$1"
X	dstdir="$2"
X
X	rm -rf "$dstdir"
X	cp -r "$srcdir" "$dstdir" || exit 1
X
X	if [ -d "$dstdir" ]
X	then
X		find "$dstdir" -name \*.so -delete
X		find "$dstdir" -name \*.so.\* -delete
X		find "$dstdir" -type f -print0 | \
X		xargs -0 sed -i '.bak' 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'
X		find "$dstdir" -name \*.bak -delete 
X	fi 
X}
X
Xprepare_files()
X{
X	mkdir ${WRKSRC}/features/org.eclipse.platform.launchers/bin/gtk/freebsd
X
X	# Copy the files and rename/change them appropriately
X	for src in $COPY_LIST
X	do
X		dst=`echo $src | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'`
X		echo Copying $src into $dst
X		if [ -d ${WRKSRC}/$src ]
X		then
X			copy_dir ${WRKSRC}/$src ${WRKSRC}/$dst
X		else
X			copy_file ${WRKSRC}/$src ${WRKSRC}/$dst
X		fi
X	done
X
X	# Files with spaces in their path...
X	src="${SWTGTK}/make_linux.mak"
X	dst=`echo $src | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'`
X	echo Copying $src into $dst
X	copy_file "${WRKSRC}/$src" "${WRKSRC}/$dst"
X
X	find ${WRKSRC} -name \*.so -delete
X	find ${WRKSRC} -name \*.so.\* -delete
X}
X
XCOPY_LIST="
Xassemble.org.eclipse.sdk.linux.gtk.x86.xml
Xassemble.org.eclipse.sdk.linux.gtk.x86_64.xml
Xpackage.org.eclipse.sdk.linux.gtk.x86.xml
Xpackage.org.eclipse.sdk.linux.gtk.x86_64.xml
Xfeatures/org.eclipse.platform/about_files/linux.gtk.x86
Xfeatures/org.eclipse.platform/about_files/linux.gtk.x86_64
Xfeatures/org.eclipse.platform.launchers/bin/gtk/linux/x86
Xfeatures/org.eclipse.platform.launchers/bin/gtk/linux/x86_64
Xfeatures/org.eclipse.platform.launchers/library/gtk/make_linux.mak
Xplugins/org.eclipse.core.filesystem.linux.x86
Xplugins/org.eclipse.core.filesystem.linux.x86_64
Xplugins/org.eclipse.jdt.source.linux.gtk.x86
Xplugins/org.eclipse.jdt.source.linux.gtk.x86_64
Xplugins/org.eclipse.pde.source.linux.gtk.x86
Xplugins/org.eclipse.pde.source.linux.gtk.x86_64
Xplugins/org.eclipse.platform.source.linux.gtk.x86
Xplugins/org.eclipse.platform.source.linux.gtk.x86_64
Xplugins/org.eclipse.rcp.source.linux.gtk.x86
Xplugins/org.eclipse.rcp.source.linux.gtk.x86_64
Xplugins/org.eclipse.swt.gtk.linux.x86
Xplugins/org.eclipse.swt.gtk.linux.x86_64
Xplugins/org.eclipse.update.core.linux
Xplugins/org.eclipse.update.core.linux/os/linux
X"
X
XSWTGTK="plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library"
X
Xprepare_files
Xexit 0
END-of-eclipse32/scripts/pre-patch
echo c - eclipse32/files
mkdir -p eclipse32/files > /dev/null 2>&1
echo x - eclipse32/files/patch-build.xml
sed 's/^X//' >eclipse32/files/patch-build.xml << 'END-of-eclipse32/files/patch-build.xml'
X--- build.xml.orig	Thu Jun 29 19:22:24 2006
X+++ build.xml	Sun Jul 30 14:47:26 2006
X@@ -86,11 +86,11 @@
X 		<!--unzip launcher -->
X 		<property name="launcherlibs" value="${buildDirectory}/launchertmp" />
X 		<mkdir dir="${launcherlibs}" />
X-		<unzip dest="${launcherlibs}">
X-			<fileset dir="${buildDirectory}/plugins/org.eclipse.platform.source/src/">
X-				<include name="org.eclipse.platform_*/launchersrc.zip" />
X-			</fileset>
X-		</unzip>
X+		<copy todir="${launcherlibs}">
X+                        <fileset dir="${buildDirectory}/features/org.eclipse.platform.launchers">
X+                                <include name ="**"/>
X+                        </fileset>
X+                </copy>
X 		<exec dir="${launcherlibs}/library/${installWs}/" executable="sh" failonerror="true">
X 			<arg line="build.sh" />
X 		</exec>
X@@ -285,8 +285,8 @@
X 		</fail>
X 
X 		<property name="compilerArg" value="-encoding ISO-8859-1" />
X-		<property name="javacSource" value="1.3" />
X-		<property name="javacTarget" value="1.2" />
X+		<property name="javacSource" value="1.5" />
X+		<property name="javacTarget" value="1.5" />
X 		<property name="javacDebugInfo" value="true" />
X 		<property name="javacFailOnError" value="true" />
X 
X@@ -306,12 +306,17 @@
X 				<equals arg1="${installOs}-${installWs}-${installArch}" arg2="hpux-motif-ia64" />
X 				<equals arg1="${installOs}-${installWs}-${installArch}" arg2="hpux-motif-ia64_32" />
X 				<equals arg1="${installOs}-${installWs}-${installArch}" arg2="solaris-gtk-x86" />
X+				<equals arg1="${install0s}-${installWs}-${installArch}" arg2="freebsd-gtk-x86" />
X+                               <equals arg1="${install0s}-${installWs}-${installArch}" arg2="freebsd-gtk-amd64" />
X 			</or>
X 		</condition>
X 
X 		<!--used to add doc plug-ins to result after initial assembly-->
X 		<condition property="archive.format" value="tar">
X-			<equals arg1="${installOs}" arg2="linux" />
X+			<or>
X+				<equals arg1="${installOs}" arg2="linux" />
X+				<equals arg1="${installOs}" arg2="freebsd" />
X+			</or>
X 		</condition>
X 		<property name="archive.format" value="zip" />
X 	</target>
END-of-eclipse32/files/patch-build.xml
echo x - eclipse32/files/patch-features-jdt-build.xml
sed 's/^X//' >eclipse32/files/patch-features-jdt-build.xml << 'END-of-eclipse32/files/patch-features-jdt-build.xml'
X--- features/org.eclipse.jdt/build.xml.orig	Thu Jul 27 17:40:53 2006
X+++ features/org.eclipse.jdt/build.xml	Tue Jul 25 19:25:14 2006
X@@ -201,6 +201,18 @@
X 			<fileset dir="${basedir}/rootfiles" includes="**"			/>
X 		</copy>
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+                <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/rootfiles" includes="**"                       />
X+                </copy>
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+                <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/rootfiles" includes="**"                       />
X+                </copy>
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 		<mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
X 		<copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
X@@ -258,6 +270,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-jdt-build.xml
echo x - eclipse32/files/patch-features-jdt-source-build.xml
sed 's/^X//' >eclipse32/files/patch-features-jdt-source-build.xml << 'END-of-eclipse32/files/patch-features-jdt-source-build.xml'
X--- features/org.eclipse.jdt.source/build.xml.orig	Thu Jul 27 17:42:44 2006
X+++ features/org.eclipse.jdt.source/build.xml	Tue Jul 25 19:23:28 2006
X@@ -99,6 +99,10 @@
X 	</target>
X 	<target name="rootFileslinux_motif_x86">
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 	</target>
X 	<target name="rootFilessolaris_gtk_x86">
X@@ -124,6 +128,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-jdt-source-build.xml
echo x - eclipse32/files/patch-features-pde-build.xml
sed 's/^X//' >eclipse32/files/patch-features-pde-build.xml << 'END-of-eclipse32/files/patch-features-pde-build.xml'
X--- features/org.eclipse.pde/build.xml.orig	Thu Jul 27 17:44:29 2006
X+++ features/org.eclipse.pde/build.xml	Tue Jul 25 19:20:37 2006
X@@ -119,6 +119,10 @@
X 	</target>
X 	<target name="rootFileslinux_motif_x86">
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 	</target>
X 	<target name="rootFilessolaris_gtk_x86">
X@@ -144,6 +148,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-pde-build.xml
echo x - eclipse32/files/patch-features-pde-source-build.xml
sed 's/^X//' >eclipse32/files/patch-features-pde-source-build.xml << 'END-of-eclipse32/files/patch-features-pde-source-build.xml'
X--- features/org.eclipse.pde.source/build.xml.orig	Thu Jul 27 17:45:38 2006
X+++ features/org.eclipse.pde.source/build.xml	Tue Jul 25 19:22:14 2006
X@@ -89,6 +89,10 @@
X 	</target>
X 	<target name="rootFileslinux_motif_x86">
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 	</target>
X 	<target name="rootFilessolaris_gtk_x86">
X@@ -114,6 +118,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-pde-source-build.xml
echo x - eclipse32/files/patch-features-rcp-build.xml
sed 's/^X//' >eclipse32/files/patch-features-rcp-build.xml << 'END-of-eclipse32/files/patch-features-rcp-build.xml'
X--- features/org.eclipse.rcp/build.xml.orig	Thu Jul 27 17:46:48 2006
X+++ features/org.eclipse.rcp/build.xml	Wed Jul 26 16:19:31 2006
X@@ -77,6 +77,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk.freebsd.x86" target="${target}">
X+                        <property name="arch" value="x86"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.osgi" target="${target}">
X 			<property name="arch" value="x86"/>
X 			<property name="os" value="win32"/>
X@@ -167,6 +172,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk.freebsd.amd64" target="${target}">
X+                        <property name="arch" value="amd64"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 	</target>
X 	<target name="all.features" depends="init">
X 	</target>
X@@ -225,7 +235,7 @@
X 		<copy todir="${feature.base}/features/org.eclipse.rcp_3.2.0.v20060609m-Swbi2VrNoh-MeGG" failonerror="true" overwrite="false">
X 			<fileset dir="${basedir}" includes="feature.xml,license.html,epl-v10.html,feature.properties,eclipse_update_120.jpg"			/>
X 		</copy>
X-		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp_3.2.0.v20060609m-Swbi2VrNoh-MeGG/feature.xml"  selfVersion="3.2.0.v20060609m-Swbi2VrNoh-MeGG" featureIds="" pluginIds="com.ibm.icu,3.4.4.1,org.eclipse.core.commands,3.2.0.I20060605-1400,org.eclipse.core.jobs,3.2.0.v20060603,org.eclipse.core.expressions,3.2.0.v20060605-1400,org.eclipse.core.runtime,3.2.0.v20060603,org.eclipse.core.runtime.compatibility.auth,3.2.0.v20060601,org.eclipse.osgi,3.2.0.v20060601,org.eclipse.help,3.2.0.v20060602,org.eclipse.swt,3.2.0.v3232o,org.eclipse.jface,3.2.0.I20060605-1400,org.eclipse.jface.databinding,1.0.0.I20060605-1400,org.eclipse.ui,3.2.0.I20060605-1400,org.eclipse.ui.workbench,3.2.0.I20060605-1400,org.eclipse.update.configurator,3.2.0.v20060605,org.eclipse.swt.win32.win32.x86,3.2.0.v3232m,org.eclipse.swt.gtk.linux.x86,3.2.0.v3232m,org.eclipse.swt.gtk.solaris.sparc,3.2.0.v3232m,org.eclipse.swt.gtk.solaris.x86,3.2.0.HEAD,org.eclipse.swt.gtk.linux.ppc,3.2.0.v32!
 32m,org.eclipse.swt.gtk.linux.x86_64,3.2.0.v3232m,org.eclipse.swt.carbon.macosx,3.2.0.v3232m,org.eclipse.swt.motif.aix.ppc,3.2.0.v3232m,org.eclipse.swt.motif.hpux.PA_RISC,3.2.0.v3232m,org.eclipse.swt.motif.linux.x86,3.2.0.v3232m,org.eclipse.swt.gtk.linux.ia64,3.2.0.HEAD,org.eclipse.swt.motif.solaris.sparc,3.2.0.v3232m,org.eclipse.swt.photon.qnx.x86,3.2.0.v3232m,org.eclipse.swt.motif.hpux.ia64_32,3.2.0.HEAD,org.eclipse.rcp,3.2.0.v20060605,org.eclipse.core.contenttype,3.2.0.v20060603,org.eclipse.equinox.common,3.2.0.v20060603,org.eclipse.equinox.preferences,3.2.0.v20060601,org.eclipse.equinox.registry,3.2.0.v20060601,"/>
X+	<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp_3.2.0.v20060609m-Swbi2VrNoh-MeGG/feature.xml"  selfVersion="3.2.0.v20060609m-Swbi2VrNoh-MeGG" featureIds="" pluginIds="com.ibm.icu,3.4.4.1,org.eclipse.core.commands,3.2.0.I20060605-1400,org.eclipse.core.jobs,3.2.0.v20060603,org.eclipse.core.expressions,3.2.0.v20060605-1400,org.eclipse.core.runtime,3.2.0.v20060603,org.eclipse.core.runtime.compatibility.auth,3.2.0.v20060601,org.eclipse.osgi,3.2.0.v20060601,org.eclipse.help,3.2.0.v20060602,org.eclipse.swt,3.2.0.v3232o,org.eclipse.jface,3.2.0.I20060605-1400,org.eclipse.jface.databinding,1.0.0.I20060605-1400,org.eclipse.ui,3.2.0.I20060605-1400,org.eclipse.ui.workbench,3.2.0.I20060605-1400,org.eclipse.update.configurator,3.2.0.v20060605,org.eclipse.swt.win32.win32.x86,3.2.0.v3232m,org.eclipse.swt.gtk.linux.x86,3.2.0.v3232m,org.eclipse.swt.gtk.solaris.sparc,3.2.0.v3232m,org.eclipse.swt.gtk.solaris.x86,3.2.0.HEAD,org.eclipse.swt.gtk.linux.ppc,3.2.0.v323!
 2m,org.eclipse.swt.gtk.linux.x86_64,3.2.0.v3232m,org.eclipse.swt.carbon.macosx,3.2.0.v3232m,org.eclipse.swt.motif.aix.ppc,3.2.0.v3232m,org.eclipse.swt.motif.hpux.PA_RISC,3.2.0.v3232m,org.eclipse.swt.motif.linux.x86,3.2.0.v3232m,org.eclipse.swt.gtk.linux.ia64,3.2.0.HEAD,org.eclipse.swt.motif.solaris.sparc,3.2.0.v3232m,org.eclipse.swt.photon.qnx.x86,3.2.0.v3232m,org.eclipse.swt.motif.hpux.ia64_32,3.2.0.HEAD,org.eclipse.rcp,3.2.0.v20060605,org.eclipse.core.contenttype,3.2.0.v20060603,org.eclipse.equinox.common,3.2.0.v20060603,org.eclipse.equinox.preferences,3.2.0.v20060601,org.eclipse.equinox.registry,3.2.0.v20060601,org.eclipse.swt.gtk.freebsd.x86,3.2.0.v3232m,org.eclipse.swt.gtk.freebsd.amd64,3.2.0.v3232m,"/>
X 		<antcall target="rootFiles${os}_${ws}_${arch}"/>
X 	</target>
X 	<target name="rootFileswin32_win32_x86">
X@@ -320,6 +330,30 @@
X 		<chmod perm="755" dir="${feature.base}/linux.motif.x86/${collectingFolder}" includes="eclipse" /> 
X 		<chmod perm="755" dir="${feature.base}/linux.motif.x86/${collectingFolder}" includes="*.so*" /> 
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+                <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.gtk.x86" includes="**"         />
X+                        <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/x86" includes="**"       />
X+                        <fileset dir="${basedir}/rootfiles" includes="**"                       />
X+                        <fileset dir="${basedir}/../org.eclipse.platform/rootfiles" includes="**"                       />
X+                        <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar"                     />
X+                </copy>
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="eclipse" />
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="*.so*" />
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+                <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.gtk.amd64" includes="**"       />
X+                        <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/amd64" includes="**"     />
X+                        <fileset dir="${basedir}/rootfiles" includes="**"                       />
X+                        <fileset dir="${basedir}/../org.eclipse.platform/rootfiles" includes="**"                       />
X+                        <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar"                     />
X+                </copy>
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="eclipse" />
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="*.so*" />
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 		<mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
X 		<copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
X@@ -406,6 +440,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-rcp-build.xml
echo x - eclipse32/files/patch-features-rcp-source-build.xml
sed 's/^X//' >eclipse32/files/patch-features-rcp-source-build.xml << 'END-of-eclipse32/files/patch-features-rcp-source-build.xml'
X--- features/org.eclipse.rcp.source/build.xml.orig	Thu Jul 27 17:48:11 2006
X+++ features/org.eclipse.rcp.source/build.xml	Tue Jul 25 19:36:20 2006
X@@ -37,6 +37,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.source.freebsd.gtk.x86" target="${target}">
X+                        <property name="arch" value="x86"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.source.macosx.carbon.ppc" target="${target}">
X 			<property name="arch" value="ppc"/>
X 			<property name="os" value="macosx"/>
X@@ -57,6 +62,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.source.freebsd.gtk.amd64" target="${target}">
X+                        <property name="arch" value="amd64"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.source.hpux.motif.PA_RISC" target="${target}">
X 			<property name="arch" value="PA_RISC"/>
X 			<property name="os" value="hpux"/>
X@@ -140,7 +150,7 @@
X 		<copy todir="${feature.base}/features/org.eclipse.rcp.source_3.2.0.v20060609m-Swbi2VrNoh-MeGG" failonerror="true" overwrite="false">
X 			<fileset dir="${basedir}" includes="epl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html"			/>
X 		</copy>
X-		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp.source_3.2.0.v20060609m-Swbi2VrNoh-MeGG/feature.xml"  selfVersion="3.2.0.v20060609m-Swbi2VrNoh-MeGG" featureIds="" pluginIds="com.ibm.icu.source,3.4.4.1,org.eclipse.rcp.source,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.hpux.motif.ia64_32,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.ia64,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.qnx.photon.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.ppc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.hpux.motif.PA_RISC,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.x86_64,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.solaris.gtk.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.solaris.gtk.sparc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.macosx.carbon.ppc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.x86,3.2.0.!
 v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.aix.motif.ppc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.win32.win32.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.solaris.motif.sparc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.motif.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,"/>
X+		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp.source_3.2.0.v20060609m-Swbi2VrNoh-MeGG/feature.xml"  selfVersion="3.2.0.v20060609m-Swbi2VrNoh-MeGG" featureIds="" pluginIds="com.ibm.icu.source,3.4.4.1,org.eclipse.rcp.source,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.hpux.motif.ia64_32,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.ia64,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.qnx.photon.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.ppc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.hpux.motif.PA_RISC,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.x86_64,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.solaris.gtk.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.solaris.gtk.sparc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.macosx.carbon.ppc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.gtk.x86,3.2.0.!
 v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.aix.motif.ppc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.win32.win32.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.solaris.motif.sparc,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.linux.motif.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.freebsd.gtk.x86,3.2.0.v20060609m-Swbi2VrNoh-MeGG,org.eclipse.rcp.source.freebsd.gtk.amd64,3.2.0.v20060609m-Swbi2VrNoh-MeGG,"/>
X 		<antcall target="rootFiles${os}_${ws}_${arch}"/>
X 	</target>
X 	<target name="rootFileswin32_win32_x86">
X@@ -159,6 +169,10 @@
X 	</target>
X 	<target name="rootFileslinux_motif_x86">
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 	</target>
X 	<target name="rootFilessolaris_gtk_x86">
X@@ -184,6 +198,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-rcp-source-build.xml
echo x - eclipse32/files/patch-features-sdk-build.xml
sed 's/^X//' >eclipse32/files/patch-features-sdk-build.xml << 'END-of-eclipse32/files/patch-features-sdk-build.xml'
X--- features/org.eclipse.sdk/build.xml.orig	Thu Jul 27 17:49:19 2006
X+++ features/org.eclipse.sdk/build.xml	Wed Jul 26 16:11:29 2006
X@@ -123,6 +123,18 @@
X 			<fileset dir="${basedir}/motif" includes="**"			/>
X 		</copy>
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+                <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/gtk" includes="**"                     />
X+                </copy>
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+                <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/gtk" includes="**"                     />
X+                </copy>
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 		<mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
X 		<copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
X@@ -172,6 +184,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-sdk-build.xml
echo x - eclipse32/files/patch-features-platform-build.xml
sed 's/^X//' >eclipse32/files/patch-features-platform-build.xml << 'END-of-eclipse32/files/patch-features-platform-build.xml'
X--- features/org.eclipse.platform/build.xml.orig	Thu Jul 27 17:50:47 2006
X+++ features/org.eclipse.platform/build.xml	Wed Jul 26 16:16:52 2006
X@@ -27,6 +27,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.update.core.freebsd" target="${target}">
X+                        <property name="arch" value="x86"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.text" target="${target}">
X 			<property name="arch" value="x86"/>
X 			<property name="os" value="win32"/>
X@@ -97,6 +102,16 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.core.filesystem.freebsd.amd64" target="${target}">
X+                        <property name="arch" value="amd64"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X+                <ant antfile="build.xml" dir="../../plugins/org.eclipse.core.filesystem.freebsd.x86" target="${target}">
X+                        <property name="arch" value="x86"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.core.filesystem.hpux.PA_RISC" target="${target}">
X 			<property name="arch" value="PA_RISC"/>
X 			<property name="os" value="hpux"/>
X@@ -391,7 +406,7 @@
X 		<copy todir="${feature.base}/features/org.eclipse.platform_3.2.0.v20060609m-BBt47n6hlEUsvBO" failonerror="true" overwrite="false">
X 			<fileset dir="${basedir}" includes="epl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html"			/>
X 		</copy>
X-		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.2.0.v20060609m-BBt47n6hlEUsvBO/feature.xml"  selfVersion="3.2.0.v20060609m-BBt47n6hlEUsvBO" featureIds="org.eclipse.rcp,3.2.0.v20060609m-Swbi2VrNoh-MeGG," pluginIds="com.jcraft.jsch,0.1.28,org.apache.ant,1.6.5,org.apache.lucene,1.4.103.v20060601,org.eclipse.ant.core,3.1.100.v20060531,org.eclipse.compare,3.2.0.v20060605,org.eclipse.core.boot,3.1.100.v20060603,org.eclipse.core.filebuffers,3.2.0.v20060605-1400,org.eclipse.core.filesystem,1.0.0.v20060603,org.eclipse.core.resources,3.2.0.v20060603,org.eclipse.core.resources.compatibility,3.2.0.v20060603,org.eclipse.core.runtime.compatibility,3.1.100.v20060603,org.eclipse.osgi.services,3.1.100.v20060601,org.eclipse.osgi.util,3.1.100.v20060601,org.eclipse.core.variables,3.1.100.v20060605,org.eclipse.debug.core,3.2.0.v20060605,org.eclipse.debug.ui,3.2.0.v20060605,org.eclipse.help.webapp,3.2.0.v20060602,org.eclipse.help.base,3.2.0.v20060601,org.e!
 clipse.help.ui,3.2.0.v20060602,org.eclipse.help.appserver,3.1.100.v20060602,org.eclipse.ltk.core.refactoring,3.2.0.v20060605-1400,org.eclipse.ltk.ui.refactoring,3.2.0.v20060605-1400,org.eclipse.platform,3.2.0.v20060601,org.eclipse.platform.doc.user,3.2.0.v20060605,org.eclipse.search,3.2.0.v20060605-1400,org.eclipse.team.core,3.2.0.I200606051140,org.eclipse.team.cvs.core,3.2.0.M20060628,org.eclipse.team.cvs.ssh,3.2.0.I200606011710,org.eclipse.team.cvs.ssh2,3.2.0.I200606051140,org.eclipse.team.cvs.ui,3.2.0.I200606051140,org.eclipse.team.ui,3.2.0.I200606051140,org.eclipse.tomcat,4.1.130.v20060601,org.eclipse.text,3.2.0.v20060605-1400,org.eclipse.jface.text,3.2.0.v20060605-1400,org.eclipse.ui.console,3.1.100.v20060605,org.eclipse.ui.presentations.r21,3.2.0.I20060605-1400,org.eclipse.ui.intro,3.2.0.v20060601,org.eclipse.ui.intro.universal,3.2.0.v20060602,org.eclipse.ui.cheatsheets,3.2.0.v20060602,org.eclipse.ui.browser,3.2.0.v20060602,org.eclipse.ui.navigator,3.2.0.I20060605-140!
 0,org.eclipse.ui.navigator.resources,3.2.0.I20060605-1400,org.!
 eclipse.
ui.workbench.texteditor,3.2.0.v20060605-1400,org.eclipse.ui.views,3.2.0.I20060605-1400,org.eclipse.ui.editors,3.2.0.v20060605-1400,org.eclipse.ui.forms,3.2.0.v20060602,org.eclipse.ui.externaltools,3.1.100.v20060605,org.eclipse.ui.ide,3.2.0.I20060605-1400,org.eclipse.update.core,3.2.0.v20060605,org.eclipse.update.scheduler,3.2.0.v20060605,org.eclipse.update.ui,3.2.0.v20060605,org.eclipse.ui.workbench.compatibility,3.2.0.I20060605-1400,org.eclipse.core.filesystem.hpux.ia64_32,1.0.0.v20060603,org.eclipse.core.filesystem.hpux.PA_RISC,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86_64,1.0.0.v20060603,org.eclipse.core.filesystem.macosx,1.0.0.v20060603,org.eclipse.core.filesystem.qnx.x86,1.0.0.v20060603,org.eclipse.core.filesystem.win32.x86,1.0.0.v20060603,org.eclipse.core.resources.win32,3.2.0.v20060603,org.eclipse.ui.carbon,3.2.0.I20060605-1400,org.eclipse.ui.win32,3.2.0.I20060605-1400,org.eclipse.update.core.linux,3.2.0!
 .v20060605,org.eclipse.update.core.win32,3.2.0.v20060605,org.eclipse.ui.views.properties.tabbed,3.2.0.I20060605-1400,org.eclipse.core.runtime.compatibility.registry,3.2.0.v20060603,"/>
X+		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.2.0.v20060609m-BBt47n6hlEUsvBO/feature.xml"  selfVersion="3.2.0.v20060609m-BBt47n6hlEUsvBO" featureIds="org.eclipse.rcp,3.2.0.v20060609m-Swbi2VrNoh-MeGG," pluginIds="com.jcraft.jsch,0.1.28,org.apache.ant,1.6.5,org.apache.lucene,1.4.103.v20060601,org.eclipse.ant.core,3.1.100.v20060531,org.eclipse.compare,3.2.0.v20060605,org.eclipse.core.boot,3.1.100.v20060603,org.eclipse.core.filebuffers,3.2.0.v20060605-1400,org.eclipse.core.filesystem,1.0.0.v20060603,org.eclipse.core.resources,3.2.0.v20060603,org.eclipse.core.resources.compatibility,3.2.0.v20060603,org.eclipse.core.runtime.compatibility,3.1.100.v20060603,org.eclipse.osgi.services,3.1.100.v20060601,org.eclipse.osgi.util,3.1.100.v20060601,org.eclipse.core.variables,3.1.100.v20060605,org.eclipse.debug.core,3.2.0.v20060605,org.eclipse.debug.ui,3.2.0.v20060605,org.eclipse.help.webapp,3.2.0.v20060602,org.eclipse.help.base,3.2.0.v20060601,org.e!
 clipse.help.ui,3.2.0.v20060602,org.eclipse.help.appserver,3.1.100.v20060602,org.eclipse.ltk.core.refactoring,3.2.0.v20060605-1400,org.eclipse.ltk.ui.refactoring,3.2.0.v20060605-1400,org.eclipse.platform,3.2.0.v20060601,org.eclipse.platform.doc.user,3.2.0.v20060605,org.eclipse.search,3.2.0.v20060605-1400,org.eclipse.team.core,3.2.0.I200606051140,org.eclipse.team.cvs.core,3.2.0.M20060628,org.eclipse.team.cvs.ssh,3.2.0.I200606011710,org.eclipse.team.cvs.ssh2,3.2.0.I200606051140,org.eclipse.team.cvs.ui,3.2.0.I200606051140,org.eclipse.team.ui,3.2.0.I200606051140,org.eclipse.tomcat,4.1.130.v20060601,org.eclipse.text,3.2.0.v20060605-1400,org.eclipse.jface.text,3.2.0.v20060605-1400,org.eclipse.ui.console,3.1.100.v20060605,org.eclipse.ui.presentations.r21,3.2.0.I20060605-1400,org.eclipse.ui.intro,3.2.0.v20060601,org.eclipse.ui.intro.universal,3.2.0.v20060602,org.eclipse.ui.cheatsheets,3.2.0.v20060602,org.eclipse.ui.browser,3.2.0.v20060602,org.eclipse.ui.navigator,3.2.0.I20060605-140!
 0,org.eclipse.ui.navigator.resources,3.2.0.I20060605-1400,org.!
 eclipse.
ui.workbench.texteditor,3.2.0.v20060605-1400,org.eclipse.ui.views,3.2.0.I20060605-1400,org.eclipse.ui.editors,3.2.0.v20060605-1400,org.eclipse.ui.forms,3.2.0.v20060602,org.eclipse.ui.externaltools,3.1.100.v20060605,org.eclipse.ui.ide,3.2.0.I20060605-1400,org.eclipse.update.core,3.2.0.v20060605,org.eclipse.update.scheduler,3.2.0.v20060605,org.eclipse.update.ui,3.2.0.v20060605,org.eclipse.ui.workbench.compatibility,3.2.0.I20060605-1400,org.eclipse.core.filesystem.hpux.ia64_32,1.0.0.v20060603,org.eclipse.core.filesystem.hpux.PA_RISC,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86_64,1.0.0.v20060603,org.eclipse.core.filesystem.macosx,1.0.0.v20060603,org.eclipse.core.filesystem.qnx.x86,1.0.0.v20060603,org.eclipse.core.filesystem.win32.x86,1.0.0.v20060603,org.eclipse.core.resources.win32,3.2.0.v20060603,org.eclipse.ui.carbon,3.2.0.I20060605-1400,org.eclipse.ui.win32,3.2.0.I20060605-1400,org.eclipse.update.core.linux,3.2.0!
 .v20060605,org.eclipse.update.core.win32,3.2.0.v20060605,org.eclipse.ui.views.properties.tabbed,3.2.0.I20060605-1400,org.eclipse.core.runtime.compatibility.registry,3.2.0.v20060603,org.eclipse.core.filesystem.freebsd.x86,1.0.0.v20060603,,org.eclipse.core.filesystem.freebsd.amd64,1.0.0.v20060603,"/>
X 		<antcall target="rootFiles${os}_${ws}_${arch}"/>
X 	</target>
X 	<target name="rootFileswin32_win32_x86">
X@@ -432,6 +447,18 @@
X 		<chmod perm="755" dir="${feature.base}/linux.gtk.x86/${collectingFolder}" includes="eclipse" /> 
X 		<chmod perm="755" dir="${feature.base}/linux.gtk.x86/${collectingFolder}" includes="*.so*" /> 
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+                <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/about_files/freebsd.gtk.x86" includes="**"                       />
X+                        <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/x86" includes="**"       />
X+                        <fileset dir="${basedir}/gtk" includes="**"                     />
X+                        <fileset dir="${basedir}/rootfiles" includes="**"                       />
X+                        <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar"                     />
X+                </copy>
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="eclipse" />
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="*.so*" />
X+        </target>
X 	<target name="rootFileslinux_gtk_ppc">
X 		<mkdir dir="${feature.base}/linux.gtk.ppc/${collectingFolder}"/>
X 		<copy todir="${feature.base}/linux.gtk.ppc/${collectingFolder}" failonerror="true" overwrite="true">
X@@ -466,6 +493,18 @@
X 		<chmod perm="755" dir="${feature.base}/linux.gtk.amd64/${collectingFolder}" includes="eclipse" /> 
X 		<chmod perm="755" dir="${feature.base}/linux.gtk.amd64/${collectingFolder}" includes="*.so*" /> 
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+                <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
X+                <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
X+                        <fileset dir="${basedir}/about_files/freebsd.gtk.amd64" includes="**"                    />
X+                        <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/amd64" includes="**"    />
X+                        <fileset dir="${basedir}/gtk" includes="**"                     />
X+                        <fileset dir="${basedir}/rootfiles" includes="**"                       />
X+                        <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar"                     />
X+                </copy>
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="eclipse" />
X+                <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="*.so*" />
X+        </target>
X 	<target name="rootFileslinux_gtk_ia64">
X 		<mkdir dir="${feature.base}/linux.gtk.ia64/${collectingFolder}"/>
X 		<copy todir="${feature.base}/linux.gtk.ia64/${collectingFolder}" failonerror="true" overwrite="true">
X@@ -579,6 +618,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-platform-build.xml
echo x - eclipse32/files/patch-features-platform-source-build.xml
sed 's/^X//' >eclipse32/files/patch-features-platform-source-build.xml << 'END-of-eclipse32/files/patch-features-platform-source-build.xml'
X--- features/org.eclipse.platform.source/build.xml.orig	Thu Jul 27 17:52:50 2006
X+++ features/org.eclipse.platform.source/build.xml	Wed Jul 26 16:06:45 2006
X@@ -27,6 +27,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.freebsd.gtk.x86" target="${target}">
X+                        <property name="arch" value="x86"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.macosx.carbon.ppc" target="${target}">
X 			<property name="arch" value="ppc"/>
X 			<property name="os" value="macosx"/>
X@@ -42,6 +47,11 @@
X 			<property name="os" value="linux"/>
X 			<property name="ws" value="gtk"/>
X 		</ant>
X+		<ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.freebsd.gtk.amd64" target="${target}">
X+                        <property name="arch" value="amd64"/>
X+                        <property name="os" value="freebsd"/>
X+                        <property name="ws" value="gtk"/>
X+                </ant>
X 		<ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.hpux.motif.PA_RISC" target="${target}">
X 			<property name="arch" value="PA_RISC"/>
X 			<property name="os" value="hpux"/>
X@@ -131,7 +141,7 @@
X 		<copy todir="${feature.base}/features/org.eclipse.platform.source_3.2.0.v20060609m-BBt47n6hlEUsvBO" failonerror="true" overwrite="false">
X 			<fileset dir="${basedir}" includes="epl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html"			/>
X 		</copy>
X-		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.2.0.v20060609m-BBt47n6hlEUsvBO/feature.xml"  selfVersion="3.2.0.v20060609m-BBt47n6hlEUsvBO" featureIds="org.eclipse.rcp.source,3.2.0.v20060609m-Swbi2VrNoh-MeGG," pluginIds="org.eclipse.platform.doc.isv,3.2.0.v20060612-0900,org.eclipse.platform.source,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.hpux.motif.ia64_32,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.ia64,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.qnx.photon.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.ppc,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.hpux.motif.PA_RISC,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.x86_64,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.ppc64,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.macosx.carbon.ppc,3.2.0.v20060609m-BBt4!
 7n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.win32.win32.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.motif.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,"/>
X+		<eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.2.0.v20060609m-BBt47n6hlEUsvBO/feature.xml"  selfVersion="3.2.0.v20060609m-BBt47n6hlEUsvBO" featureIds="org.eclipse.rcp.source,3.2.0.v20060609m-Swbi2VrNoh-MeGG," pluginIds="org.eclipse.platform.doc.isv,3.2.0.v20060612-0900,org.eclipse.platform.source,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.hpux.motif.ia64_32,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.ia64,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.qnx.photon.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.ppc,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.hpux.motif.PA_RISC,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.x86_64,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.ppc64,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.macosx.carbon.ppc,3.2.0.v20060609m-BBt4!
 7n6hlEUsvBO,org.eclipse.platform.source.linux.gtk.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.win32.win32.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.linux.motif.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.freebsd.gtk.x86,3.2.0.v20060609m-BBt47n6hlEUsvBO,org.eclipse.platform.source.freebsd.gtk.amd64,3.2.0.v20060609m-BBt47n6hlEUsvBO,"/>
X 		<antcall target="rootFiles${os}_${ws}_${arch}"/>
X 	</target>
X 	<target name="rootFileswin32_win32_x86">
X@@ -150,6 +160,10 @@
X 	</target>
X 	<target name="rootFileslinux_motif_x86">
X 	</target>
X+	<target name="rootFilesfreebsd_gtk_x86">
X+        </target>
X+	<target name="rootFilesfreebsd_gtk_amd64">
X+        </target>
X 	<target name="rootFilessolaris_gtk_sparc">
X 	</target>
X 	<target name="rootFilessolaris_gtk_x86">
X@@ -175,6 +189,8 @@
X 		<antcall target="rootFileslinux_gtk_x86_64"/>
X 		<antcall target="rootFileslinux_gtk_ia64"/>
X 		<antcall target="rootFileslinux_motif_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_x86"/>
X+		<antcall target="rootFilesfreebsd_gtk_amd64"/>
X 		<antcall target="rootFilessolaris_gtk_sparc"/>
X 		<antcall target="rootFilessolaris_gtk_x86"/>
X 		<antcall target="rootFilessolaris_motif_sparc"/>
END-of-eclipse32/files/patch-features-platform-source-build.xml
echo x - eclipse32/files/eclipse.in
sed 's/^X//' >eclipse32/files/eclipse.in << 'END-of-eclipse32/files/eclipse.in'
X#!/bin/sh
X#
X# FreeBSD-specific startup script for Eclipse Platform
X#
X# See: http://www.eclipse.org
X#
X# $FreeBSD$
X#
X
XDEFAULT_JAVA_HOME=%%PREFIX%%
XECLIPSE_HOME=%%ECLIPSE_HOME%%
XDEFAULT_JAVA_CMD=java
X
X
X#-----------------------------------------------------------------------------
X# Determine configuration settings
X#-----------------------------------------------------------------------------
X
X# Determine the JDK home directory
Xif [ -z "${JAVA_HOME}" ]; then
X	JAVA_HOME=${DEFAULT_JAVA_HOME}
Xfi
X
X# Determine 'java' executable
Xif [ -z "${JAVACMD}" ]; then
X	if [ -n "${JAVA_HOME}"  ]; then
X		JAVACMD="${JAVA_HOME}/bin/java"
X	else
X		JAVACMD=${DEFAULT_JAVACMD}
X	fi
Xfi
X
X# Check if 'java' executable can be found
Xif [ ! -x "$JAVACMD" ]; then
X	echo "Error: JAVA_HOME is not defined correctly: ${JAVA_HOME}"
X	echo "       Unable to find ${JAVACMD}"
X	exit 1
Xfi
X
X# Check if 'eclipse' executable can be found
Xif [ ! -x "${ECLIPSE_HOME}/eclipse" ]; then
X	echo "Error: ECLIPSE_HOME is not defined correctly: ${ECLIPSE_HOME}"
X	echo "       Unable to find eclipse launcher binary"
X	exit 1
Xfi
X
XJAVA_VERSION="%%JAVA_VERSION%%" JAVA_OS="%%JAVA_OS%%" PATH=${JAVA_HOME}/bin:${PATH} exec "${ECLIPSE_HOME}/eclipse" $@
END-of-eclipse32/files/eclipse.in
echo x - eclipse32/files/post-patch-plugins-swt-gtk-os_custom.h
sed 's/^X//' >eclipse32/files/post-patch-plugins-swt-gtk-os_custom.h << 'END-of-eclipse32/files/post-patch-plugins-swt-gtk-os_custom.h'
X--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h.orig	Sun Jul 30 23:19:20 2006
X+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h	Sun Jul 30 23:21:06 2006
X@@ -36,42 +36,42 @@
X #define XRenderFreePicture_LIB "libXrender.so"
X #define XRenderSetPictureClipRectangles_LIB "libXrender.so"
X #define XRenderSetPictureTransform_LIB "libXrender.so"
X-#define gtk_entry_text_index_to_layout_index_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_add_filter_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_dialog_new_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_get_current_folder_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_get_filename_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_get_filenames_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_set_current_folder_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_set_current_name_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_set_extra_widget_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_set_filename_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_chooser_set_select_multiple_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_filter_add_pattern_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_filter_new_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_file_filter_set_name_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_expander_get_expanded_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_expander_get_label_widget_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_expander_new_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_expander_set_expanded_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_expander_set_label_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_expander_set_label_widget_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_tree_selection_count_selected_rows_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_tree_selection_get_selected_rows_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_tree_view_column_cell_get_position_LIB "libgtk-x11-2.0.so.0"
X-#define gtk_entry_set_alignment_LIB "libgtk-x11-2.0.so.0"
X-#define gdk_draw_pixbuf_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_screen_get_default_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_screen_get_monitor_at_window_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_screen_get_monitor_geometry_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_screen_get_n_monitors_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_screen_get_number_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_window_set_keep_above_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_window_set_accept_focus_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_x11_screen_get_window_manager_name_LIB "libgdk-x11-2.0.so.0"
X-#define gdk_x11_screen_lookup_visual_LIB "libgdk-x11-2.0.so.0"
X-#define atk_object_add_relationship_LIB "libatk-1.0.so.0"
X-#define pango_layout_set_auto_dir_LIB "libpango-1.0.so.0"
X+#define gtk_entry_text_index_to_layout_index_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_add_filter_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_dialog_new_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_get_current_folder_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_get_filename_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_get_filenames_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_set_current_folder_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_set_current_name_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_set_extra_widget_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_set_filename_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_chooser_set_select_multiple_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_filter_add_pattern_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_filter_new_LIB "libgtk-x11-2.0.so"
X+#define gtk_file_filter_set_name_LIB "libgtk-x11-2.0.so"
X+#define gtk_expander_get_expanded_LIB "libgtk-x11-2.0.so"
X+#define gtk_expander_get_label_widget_LIB "libgtk-x11-2.0.so"
X+#define gtk_expander_new_LIB "libgtk-x11-2.0.so"
X+#define gtk_expander_set_expanded_LIB "libgtk-x11-2.0.so"
X+#define gtk_expander_set_label_LIB "libgtk-x11-2.0.so"
X+#define gtk_expander_set_label_widget_LIB "libgtk-x11-2.0.so"
X+#define gtk_tree_selection_count_selected_rows_LIB "libgtk-x11-2.0.so"
X+#define gtk_tree_selection_get_selected_rows_LIB "libgtk-x11-2.0.so"
X+#define gtk_tree_view_column_cell_get_position_LIB "libgtk-x11-2.0.so"
X+#define gtk_entry_set_alignment_LIB "libgtk-x11-2.0.so"
X+#define gdk_draw_pixbuf_LIB "libgdk-x11-2.0.so"
X+#define gdk_screen_get_default_LIB "libgdk-x11-2.0.so"
X+#define gdk_screen_get_monitor_at_window_LIB "libgdk-x11-2.0.so"
X+#define gdk_screen_get_monitor_geometry_LIB "libgdk-x11-2.0.so"
X+#define gdk_screen_get_n_monitors_LIB "libgdk-x11-2.0.so"
X+#define gdk_screen_get_number_LIB "libgdk-x11-2.0.so"
X+#define gdk_window_set_keep_above_LIB "libgdk-x11-2.0.so"
X+#define gdk_window_set_accept_focus_LIB "libgdk-x11-2.0.so"
X+#define gdk_x11_screen_get_window_manager_name_LIB "libgdk-x11-2.0.so"
X+#define gdk_x11_screen_lookup_visual_LIB "libgdk-x11-2.0.so"
X+#define atk_object_add_relationship_LIB "libatk-1.0.so"
X+#define pango_layout_set_auto_dir_LIB "libpango-1.0.so"
X 
X /* Field accessors */
X #define GTK_ACCEL_LABEL_SET_ACCEL_STRING(arg0, arg1) (arg0)->accel_string = arg1
END-of-eclipse32/files/post-patch-plugins-swt-gtk-os_custom.h
echo x - eclipse32/files/patch-features-platform-launchers-build.sh
sed 's/^X//' >eclipse32/files/patch-features-platform-launchers-build.sh << 'END-of-eclipse32/files/patch-features-platform-launchers-build.sh'
X--- features/org.eclipse.platform.launchers/library/gtk/build.sh.orig	Thu Jul 27 18:07:06 2006
X+++ features/org.eclipse.platform.launchers/library/gtk/build.sh	Wed Jul 26 18:19:38 2006
X@@ -92,6 +92,23 @@
X 				;;
X 		esac
X 		;;
X+	"FreeBSD")
X+		makefile="make_freebsd.mak"
X+                defaultOS="freebsd"
X+                case $MODEL in
X+                        "amd64")
X+                                defaultOSArch="amd64"
X+                                OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch"
X+                                ;;
X+                        i?86)
X+                                defaultOSArch="x86"
X+                                OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch"
X+                                ;;
X+                        *)
X+                                echo "*** Unknown MODEL <${MODEL}>"
X+                                ;;
X+                esac
X+                ;;		
X 	*)
X 	echo "Unknown OS -- build aborted"
X 	;;
END-of-eclipse32/files/patch-features-platform-launchers-build.sh
echo x - eclipse32/files/post-patch-plugins-swt-gtk-make_freebsd.mak
sed 's/^X//' >eclipse32/files/post-patch-plugins-swt-gtk-make_freebsd.mak << 'END-of-eclipse32/files/post-patch-plugins-swt-gtk-make_freebsd.mak'
X--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak.orig	Thu Aug 10 00:57:33 2006
X+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak	Thu Aug 10 00:59:20 2006
X@@ -91,15 +91,16 @@
X CFLAGS = -O -Wall \
X 		-DSWT_VERSION=$(SWT_VERSION) \
X 		$(NATIVE_STATS) \
X-		-DLINUX -DGTK \
X+		-DFREEBSD -DGTK \
X 		-I$(JAVA_HOME)/include \
X 		-I$(JAVA_HOME)/include/freebsd \
X+                -I$(X11BASE)/include \
X 		-fPIC \
X 		${SWT_PTR_CFLAGS}
X LIBS = -shared -fPIC -s
X 
X 
X-all: make_swt make_atk make_gnome make_glx
X+all: make_swt make_atk $(MAKE_GNOME) make_glx $(MAKE_MOZILLA) $(MAKE_CAIRO)
X 
X #
X # SWT libs
END-of-eclipse32/files/post-patch-plugins-swt-gtk-make_freebsd.mak
echo x - eclipse32/files/post-patch-plugins-swt-gtk-build.sh
sed 's/^X//' >eclipse32/files/post-patch-plugins-swt-gtk-build.sh << 'END-of-eclipse32/files/post-patch-plugins-swt-gtk-build.sh'
X--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig	Thu Jun 29 19:22:14 2006
X+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh	Wed Sep  6 15:55:41 2006
X@@ -31,6 +31,10 @@
X 		SWT_OS=solaris
X 		MAKEFILE=make_solaris.mak
X 		;;
X+	"FreeBSD")
X+                SWT_OS=freebsd
X+                MAKEFILE=make_freebsd.mak
X+               ;;
X 	*)
X 		SWT_OS=`uname -s | tr -s '[:upper:]' '[:lower:]'`
X 		MAKEFILE=make_linux.mak
X@@ -61,7 +65,7 @@
X esac
X 
X # For 64-bit CPUs, we have a switch
X-if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' ]; then
X+if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'amd64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' ]; then
X 	SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
X 	export SWT_PTR_CFLAGS
X 	if [ -d /lib64 ]; then
X@@ -70,32 +74,38 @@
X 	fi
X fi
X 
X-if [ x`pkg-config --exists gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 && echo YES` = "xYES" ]; then
X-	echo "libgnomeui-2.0 found, compiling SWT program support using GNOME"
X-	MAKE_GNOME=make_gnome
X-else
X-	echo "libgnome-2.0 and libgnomeui-2.0 not found:"
X-	echo "    *** SWT Program support for GNOME will not be compiled."
X+if [ ${MAKE_GNOME} != "" ]; then
X+	if [ x`pkg-config --exists gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 && echo YES` = "xYES" ]; then
X+		echo "libgnomeui-2.0 found, compiling SWT program support using GNOME"
X+		MAKE_GNOME=make_gnome
X+	else
X+		echo "libgnome-2.0 and libgnomeui-2.0 not found:"
X+		echo "    *** SWT Program support for GNOME will not be compiled."
X+	fi
X fi
X 
X-if [ x`pkg-config --exists cairo && echo YES` = "xYES" ]; then
X-	echo "Cairo found, compiling SWT support for the cairo graphics library."
X-	MAKE_CAIRO=make_cairo
X-else
X-	echo "Cairo not found:"
X-	echo "    *** Advanced graphics support using cairo will not be compiled."
X+if [ ${MAKE_CAIRO} != "" ]; then
X+	if [ x`pkg-config --exists cairo && echo YES` = "xYES" ]; then
X+		echo "Cairo found, compiling SWT support for the cairo graphics library."
X+		MAKE_CAIRO=make_cairo
X+	else
X+		echo "Cairo not found:"
X+		echo "    *** Advanced graphics support using cairo will not be compiled."
X+	fi
X fi
X 
X-if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then
X-	if [ x`pkg-config --exists mozilla-xpcom && echo YES` = "xYES" ]; then
X-		GECKO_INCLUDES=`pkg-config --cflags mozilla-xpcom`
X-		GECKO_LIBS=`pkg-config --libs mozilla-xpcom`
X-		export GECKO_INCLUDES
X-		export GECKO_LIBS
X-		MAKE_MOZILLA=make_mozilla
X-	else
X-		echo "Mozilla/XPCOM libraries not found:"
X-		echo "    *** Mozilla embedding support will not be compiled."
X+if [ ${MAKE_MOZILLA} != "" ]; then
X+	if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then
X+		if [ x`pkg-config --exists mozilla-xpcom && echo YES` = "xYES" ]; then
X+			GECKO_INCLUDES=`pkg-config --cflags mozilla-xpcom`
X+			GECKO_LIBS=`pkg-config --libs mozilla-xpcom`
X+			export GECKO_INCLUDES
X+			export GECKO_LIBS
X+			MAKE_MOZILLA=make_mozilla
X+		else
X+			echo "Mozilla/XPCOM libraries not found:"
X+			echo "    *** Mozilla embedding support will not be compiled."
X+		fi
X 	fi
X fi
X 
END-of-eclipse32/files/post-patch-plugins-swt-gtk-build.sh
echo x - eclipse32/files/patch-plugins-core-resources-build.xml
sed 's/^X//' >eclipse32/files/patch-plugins-core-resources-build.xml << 'END-of-eclipse32/files/patch-plugins-core-resources-build.xml'
X--- plugins/org.eclipse.core.resources/build.xml.orig	Thu Jul 27 18:44:45 2006
X+++ plugins/org.eclipse.core.resources/build.xml	Tue Jul 25 19:18:21 2006
X@@ -102,6 +102,10 @@
X 			<pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86/@dot"/>
X 			<pathelement path="../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
X 			<pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
X+			<pathelement path="../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
X+                        <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
X+                        <pathelement path="../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
X+                        <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
X 			<pathelement path="../org.eclipse.core.filesystem.macosx/@dot"/>
X 			<pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.macosx/@dot"/>
X 			<pathelement path="../org.eclipse.core.filesystem.qnx.x86/@dot"/>
X@@ -176,6 +180,10 @@
X 			<pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86/@dot"/>
X 			<pathelement path="../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
X 			<pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
X+			<pathelement path="../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
X+                        <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
X+                        <pathelement path="../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
X+                        <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
X 			<pathelement path="../org.eclipse.core.filesystem.macosx/@dot"/>
X 			<pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.macosx/@dot"/>
X 			<pathelement path="../org.eclipse.core.filesystem.qnx.x86/@dot"/>
END-of-eclipse32/files/patch-plugins-core-resources-build.xml
echo x - eclipse32/files/patch-features-platform-source-feature.xml
sed 's/^X//' >eclipse32/files/patch-features-platform-source-feature.xml << 'END-of-eclipse32/files/patch-features-platform-source-feature.xml'
X--- features/org.eclipse.platform.source/feature.xml.orig	Sat Jul 29 21:49:46 2006
X+++ features/org.eclipse.platform.source/feature.xml	Sat Jul 29 21:52:58 2006
X@@ -28,4 +28,6 @@
X 	<plugin ws="gtk"  os="linux" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.gtk.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
X 	<plugin ws="win32"  os="win32" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.win32.win32.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
X 	<plugin ws="motif"  os="linux" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.motif.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
X+	<plugin ws="gtk"  os="freebsd" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.freebsd.gtk.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
X+	<plugin ws="gtk"  os="freebsd" fragment="true" arch="amd64" download-size="0" install-size="0" id="org.eclipse.platform.source.freebsd.gtk.amd64" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
X </feature>
END-of-eclipse32/files/patch-features-platform-source-feature.xml
echo x - eclipse32/files/patch-features-plat-launchers-make_freebsd.mak
sed 's/^X//' >eclipse32/files/patch-features-plat-launchers-make_freebsd.mak << 'END-of-eclipse32/files/patch-features-plat-launchers-make_freebsd.mak'
X--- features/org.eclipse.platform.launchers/library/gtk/make_linux.mak	Thu Jun 29 19:22:13 2006
X+++ features/org.eclipse.platform.launchers/library/gtk/make_freebsd.mak	Wed Jul 26 18:17:24 2006
X@@ -29,7 +29,7 @@
X LIBS = `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgdk-x11-2.0
X CFLAGS = -O -s \
X 	-fpic \
X-	-DLINUX \
X+	-DFREEBSD \
X 	-DMOZILLA_FIX \
X 	-DDEFAULT_OS="\"$(DEFAULT_OS)\"" \
X 	-DDEFAULT_OS_ARCH="\"$(DEFAULT_OS_ARCH)\"" \
END-of-eclipse32/files/patch-features-plat-launchers-make_freebsd.mak
echo x - eclipse32/files/patch-plugins-plat-i-customBuildCallbacks.xml
sed 's/^X//' >eclipse32/files/patch-plugins-plat-i-customBuildCallbacks.xml << 'END-of-eclipse32/files/patch-plugins-plat-i-customBuildCallbacks.xml'
X--- plugins/org.eclipse.platform.doc.isv/customBuildCallbacks.xml.orig	Sun Jul 30 00:30:12 2006
X+++ plugins/org.eclipse.platform.doc.isv/customBuildCallbacks.xml	Sun Jul 30 00:30:38 2006
X@@ -88,6 +88,8 @@
X 	<!-- ===================================================================== -->
X 	<target name="post.gather.bin.parts">
X 	</target>
X+	<target name="pre.gather.bin.parts">
X+        </target>
X 	
X 	<!-- ===================================================================== -->
X 	<!-- Steps to do before the target gather.sources                          -->
END-of-eclipse32/files/patch-plugins-plat-i-customBuildCallbacks.xml
echo x - eclipse32/files/patch-package-sdk-all.xml
sed 's/^X//' >eclipse32/files/patch-package-sdk-all.xml << 'END-of-eclipse32/files/patch-package-sdk-all.xml'
X--- package.org.eclipse.sdk.all.xml.orig	Sun Jul 30 03:12:52 2006
X+++ package.org.eclipse.sdk.all.xml	Sun Jul 30 03:14:02 2006
X@@ -19,6 +19,12 @@
X 		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.gtk.x86_64">
X 			<property name="assembleScriptName" value="package.org.eclipse.sdk.linux.gtk.x86_64.xml"/>
X 		</ant>
X+		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.x86">
X+                        <property name="assembleScriptName" value="package.org.eclipse.sdk.freebsd.gtk.x86.xml"/>  
X+                </ant>
X+		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.amd64">
X+                        <property name="assembleScriptName" value="package.org.eclipse.sdk.freebsd.gtk.amd64.xml"/>  
X+                </ant>
X 		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.gtk.ia64">
X 			<property name="assembleScriptName" value="package.org.eclipse.sdk.linux.gtk.ia64.xml"/>
X 		</ant>
END-of-eclipse32/files/patch-package-sdk-all.xml
echo x - eclipse32/files/eclipse.desktop
sed 's/^X//' >eclipse32/files/eclipse.desktop << 'END-of-eclipse32/files/eclipse.desktop'
X[Desktop Entry]
XComment=Eclipse IDE
XName=Eclipse
XExec=%%PREFIX%%/bin/eclipse
XEncoding=UTF-8
XTerminal=false
XType=Application
XIcon=%%ECLIPSE_HOME%%/icon.xpm
XCategories=Application;Development;
X
END-of-eclipse32/files/eclipse.desktop
echo x - eclipse32/files/patch-assemble-sdk-all.xml
sed 's/^X//' >eclipse32/files/patch-assemble-sdk-all.xml << 'END-of-eclipse32/files/patch-assemble-sdk-all.xml'
X--- assemble.org.eclipse.sdk.all.xml.orig	Sun Jul 30 00:47:29 2006
X+++ assemble.org.eclipse.sdk.all.xml	Sun Jul 30 00:48:52 2006
X@@ -25,6 +25,12 @@
X 		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.motif.x86">
X 			<property name="assembleScriptName" value="assemble.org.eclipse.sdk.linux.motif.x86.xml"/>
X 		</ant>
X+		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.x86">
X+                        <property name="assembleScriptName" value="assemble.org.eclipse.sdk.freebsd.gtk.x86.xml"/>
X+                </ant>
X+		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.amd64">
X+                        <property name="assembleScriptName" value="assemble.org.eclipse.sdk.freebsd.gtk.amd64.xml"/>
X+                </ant>
X 		<ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.solaris.gtk.sparc">
X 			<property name="assembleScriptName" value="assemble.org.eclipse.sdk.solaris.gtk.sparc.xml"/>
X 		</ant>
END-of-eclipse32/files/patch-assemble-sdk-all.xml
echo x - eclipse32/files/patch-build
sed 's/^X//' >eclipse32/files/patch-build << 'END-of-eclipse32/files/patch-build'
X--- build.orig	Fri Jul 28 14:48:47 2006
X+++ build	Tue Jul 25 18:06:18 2006
X@@ -60,7 +60,7 @@
X 	exit 1
X fi
X 
X-if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] || [ "$os-$ws-$arch" = "linux-gtk-ia64" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-x86" ] || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-PA_RISC" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ] || [ "$os-$ws-$arch" = "win32-win32-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] || [ "$os-$ws-$arch" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64_32" ]
X+if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] || [ "$os-$ws-$arch" = "linux-gtk-ia64" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-x86" ] || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-PA_RISC" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ] || [ "$os-$ws-$arch" = "win32-win32-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] || [ "$os-$ws-$arch" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64_32" ] || [ "$os-$ws-$arch" = "freebsd-gtk-x86" ] || [ "$os-$ws-$arch" = "freebsd-gtk-amd64" ]
X then
X 		 ORIGCLASSPATH=$CLASSPATH;export ORIGCLASSPATH		 
X 		 ant -q -buildfile jdtcoresrc/compilejdtcorewithjavac.xml
X@@ -71,4 +71,4 @@
X 		 else
X 		 		 echo "The os-ws-arch combination of $os-$ws-$arch is not valid."
X  		 exit 1
X- fi
X\ No newline at end of file
X+ fi
END-of-eclipse32/files/patch-build
echo x - eclipse32/files/patch-features-plat-library-eclipseShm.c
sed 's/^X//' >eclipse32/files/patch-features-plat-library-eclipseShm.c << 'END-of-eclipse32/files/patch-features-plat-library-eclipseShm.c'
X--- features/org.eclipse.platform.launchers/library/eclipseShm.c.orig	Wed Aug  2 11:32:25 2006
X+++ features/org.eclipse.platform.launchers/library/eclipseShm.c	Wed Aug  2 11:33:30 2006
X@@ -182,11 +182,13 @@
X 
X #else /* Unix like platforms */
X 
X+#include <machine/param.h>
X+#include <sys/types.h>
X+#include <sys/ipc.h>
X #include <sys/shm.h>
X #include <string.h>
X #include <stdlib.h>
X #include <stdio.h>
X-#include <sys/types.h>
X #include <unistd.h>
X 
X int createSharedData(char** id, int size) {
END-of-eclipse32/files/patch-features-plat-library-eclipseShm.c
echo x - eclipse32/files/patch-plugins-plat-u-customBuildCallbacks.xml
sed 's/^X//' >eclipse32/files/patch-plugins-plat-u-customBuildCallbacks.xml << 'END-of-eclipse32/files/patch-plugins-plat-u-customBuildCallbacks.xml'
X--- plugins/org.eclipse.platform.doc.user/customBuildCallbacks.xml.orig	Sun Jul 30 00:26:51 2006
X+++ plugins/org.eclipse.platform.doc.user/customBuildCallbacks.xml	Sun Jul 30 00:28:00 2006
X@@ -82,6 +82,8 @@
X 	<!-- ===================================================================== -->
X 	<target name="post.gather.bin.parts">
X 	</target>
X+	<target name="pre.gather.bin.parts">
X+        </target>
X 
X 	<target name="build.index" description="Builds search index for the plug-in: org.eclipse.platform.doc.user." if="eclipse.running">
X 		<help.buildHelpIndex manifest="plugin.xml" destination="."/>
END-of-eclipse32/files/patch-plugins-plat-u-customBuildCallbacks.xml
echo x - eclipse32/Makefile
sed 's/^X//' >eclipse32/Makefile << 'END-of-eclipse32/Makefile'
X# New ports collection makefile for:	eclipse32
X# Date created:				March 7, 2003
X# Whom:					various members of freebsd-java
X#
X# $FreeBSD$
X#
X
XPORTNAME=	eclipse
XPORTVERSION=	3.2
X#PORTREVISION=	0
XCATEGORIES=	java devel
XMASTER_SITES=	${MASTER_SITE_ECLIPSE}
XMASTER_SITE_SUBDIR=	R-${PORTVERSION}-200606291905
XDISTNAME=	${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION}
XDIST_SUBDIR=	eclipse
X
XMAINTAINER=	dsledge@appriss.com
XCOMMENT=	An open extensible IDE for anything and nothing in particular
X
XBUILD_DEPENDS=	javac:${PORTSDIR}/java/diablo-jdk15 \
X		ant:${PORTSDIR}/devel/apache-ant \
X		zip:${PORTSDIR}/archivers/zip
X
XBUILD_DEPENDS+=	${EXTRACT_DEPENDS}
X
XCONFLICTS=      eclipse-3.1*
X
XONLY_FOR_ARCHS=	i386 amd64
XUSE_GMAKE=	yes
XUSE_ZIP=	yes
XUSE_GCC=	3.4
X
XUSE_JAVA=	yes
XJAVA_VENDOR=	freebsd
XJAVA_VERSION=	1.5+
XJAVA_OS=	native
X
XNO_WRKSUBDIR=	yes
X
XPORTDESTDIR=	${PREFIX}/eclipse
X
XECLIPSE_OS=	freebsd
X
XECLIPSE_WS=	gtk
X
X.if !defined(WITHOUT_MOZILLA)
XMAKE_MOZILLA=	make_mozilla
X.if defined(WITH_MOZILLA) && ${WITH_MOZILLA} != "mozilla"
XBROWSER=	${WITH_MOZILLA}
XBUILD_DEPENDS+=	${BROWSER}:${PORTSDIR}/www/${BROWSER}
X.else
XBUILD_DEPENDS+=	mozilla:${PORTSDIR}/www/mozilla
XBROWSER=	mozilla
X.endif
X.else
XBROWSER=
XMAKE_MOZILLA=
X.endif
X.if defined(WITHOUT_CAIRO)
XMAKE_CAIRO=
X.else
XLIB_DEPENDS=	cairo.2:${PORTSDIR}/graphics/cairo
XMAKE_CAIRO=	make_cairo
X.endif
X
X.if defined(WITHOUT_GNOMEVFS)
XMAKE_GNOME=
XUSE_GNOME=	gtk20 pkgconfig desktopfileutils
X.else
XMAKE_GNOME=	make_gnome
XUSE_GNOME=	gtk20 gnomevfs2 libgnome libgnomeui pkgconfig desktopfileutils
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if (${ARCH} == "amd64")
XECLIPSE_ARCH=	amd64
XECLIPSE_SWT=	gtk64
X.else
XECLIPSE_ARCH=	x86
XECLIPSE_SWT=	gtk
X.endif
X
XMAKE_ENV+=	BROWSER=${BROWSER} \
X		ECLIPSE_ARCH=${ECLIPSE_ARCH} \
X		ECLIPSE_OS=${ECLIPSE_OS} \
X		ECLIPSE_WS=${ECLIPSE_WS} \
X		JAVA_HOME=${JAVA_HOME} \
X		MAKE_GNOME=${MAKE_GNOME} \
X		MAKE_MOZILLA=${MAKE_MOZILLA} \
X		MAKE_CAIRO=${MAKE_CAIRO} \
X		MACHINE_ARCH=${MACHINE_ARCH}
X
XPLIST_FILES=	bin/eclipse share/applications/eclipse.desktop
X
XSWTCAIRO=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library
XSWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library
X
X# Manually patch some files with spaces in the path
Xpost-patch:
X	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/build.sh" ${FILESDIR}/post-patch-plugins-swt-gtk-build.sh
X	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/make_freebsd.mak" ${FILESDIR}/post-patch-plugins-swt-gtk-make_freebsd.mak
X	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/os_custom.h" ${FILESDIR}/post-patch-plugins-swt-gtk-os_custom.h
X
Xdo-build:
X	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
X	  ./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -java5home ${JAVA_HOME} -compilelibs)
X
Xdo-install:
X	@${MKDIR} ${PORTDESTDIR}
X	@${TAR} -xzf ${WRKSRC}/result/*.tar.gz -C ${PREFIX}
X	@${SED} \
X	  -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
X	  -e "s+%%PREFIX%%+${PREFIX}+g" \
X	  -e "s+%%X11BASE%%+${X11BASE}+g" \
X	  -e "s+%%BROWSER%%+${BROWSER}+g" \
X	  -e "s,%%JAVA_VERSION%%,${JAVA_VERSION},g" \
X	  -e "s+%%JAVA_OS%%+${JAVA_OS}+g" \
X	${FILESDIR}/eclipse.in > ${WRKSRC}/eclipse.tmp
X	${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/eclipse
X	@${SED} \
X	  -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
X	  -e "s+%%PREFIX%%+${PREFIX}+g" \
X	${FILESDIR}/eclipse.desktop > ${WRKSRC}/eclipse.desktop.tmp
X	${INSTALL_DATA} ${WRKSRC}/eclipse.desktop.tmp ${PREFIX}/share/applications/eclipse.desktop
X	${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse
X	@-update-desktop-database
X	@(cd ${WRKSRC}; ${FIND} -s eclipse -not -type d) >> ${TMPPLIST}
X	@echo '@exec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
X	@(cd ${WRKSRC}; ${FIND} -s -d eclipse -type d) \
X	  | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
X	@echo '@unexec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
X
X.include <bsd.port.post.mk>
END-of-eclipse32/Makefile
echo x - eclipse32/pkg-descr
sed 's/^X//' >eclipse32/pkg-descr << 'END-of-eclipse32/pkg-descr'
XThe Eclipse Platform is an open extensible IDE for anything and yet
Xnothing in particular. The Eclipse Platform provides building blocks
Xand a foundation for constructing and running integrated software-
Xdevelopment tools. The Eclipse Platform allows tool builders to
Xindependently develop tools that integrate with other people's tools
Xso seamlessly you can't tell where one tool ends and another starts.
X
XWWW: http://www.eclipse.org/
END-of-eclipse32/pkg-descr
echo x - eclipse32/distinfo
sed 's/^X//' >eclipse32/distinfo << 'END-of-eclipse32/distinfo'
XMD5 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.zip) = 67b41802092d4b2f779fb756dcaec85c
XSHA256 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.zip) = e9366fd3046be753f821be786156c472148928101cf6bf8f9d31b455cb6039da
XSIZE (eclipse/eclipse-sourceBuild-srcIncluded-3.2.zip) = 82018640
END-of-eclipse32/distinfo
exit
--- eclipse32.shar ends here ---


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



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