diff options
Diffstat (limited to 'java/eclipse/files')
38 files changed, 1959 insertions, 287 deletions
diff --git a/java/eclipse/files/Makefile b/java/eclipse/files/Makefile index 3a7d02d520ff..6e7eba9f5863 100644 --- a/java/eclipse/files/Makefile +++ b/java/eclipse/files/Makefile @@ -3,127 +3,85 @@ ECHO= /bin/echo FIND= /usr/bin/find MKDIR= /bin/mkdir -p -SED= sed -ANT= ant -Dos=$(ECLIPSE_OS) -Dws=$(ECLIPSE_WS) +SED= /usr/bin/sed +CP= /bin/cp +CSH= /bin/csh +SH= /bin/sh +GMAKE= $(LOCALBASE)/bin/gmake +ANT= $(LOCALBASE)/bin/ant +UNZIP_CMD= $(LOCALBASE)/bin/unzip PORTDESTDIR= $(PREFIX)/eclipse CFLAGS+= -I$(JAVA_HOME)/include \ - -I$(JAVA_HOME)/include/bsd \ - -I$(JAVA_HOME)/include/freebsd + -I$(JAVA_HOME)/include/bsd \ + -I$(JAVA_HOME)/include/freebsd LIBUPDATE= libupdate.so LIBUPDATE_DST= plugins/org.eclipse.update.core.freebsd/os/freebsd/x86 LIBUPDATE_SRC= plugins/org.eclipse.update.core.freebsd/src - + SWT_VERSION= $(ECLIPSE_BUILD) -LIBSWT= libswt-gtk-$(SWT_VERSION).so -LIBSWTPI= libswt-pi-gtk-$(SWT_VERSION).so -LIBSWT_DST= plugins/org.eclipse.swt.gtk/os/freebsd/x86 -LIBSWT_SRC= plugins/org.eclipse.swt/Eclipse_SWT - +LIBSWT= libswt-$(ECLIPSE_WS)-$(SWT_VERSION).so +LIBSWTPI= libswt-pi-$(ECLIPSE_WS)-$(SWT_VERSION).so +LIBSWT_DST= plugins/org.eclipse.swt.$(ECLIPSE_WS)/os/freebsd/x86 +LIBSWT_SRC= plugins/org.eclipse.swt/Eclipse_SWT + LAUNCHER= eclipse -LAUNCHER_DST= plugins/platform-launcher/bin/freebsd/gtk -LAUNCHER_SRC= plugins/platform-launcher/library/gtk +LAUNCHER_DST= plugins/platform-launcher/bin/freebsd/$(ECLIPSE_WS) +LAUNCHER_SRC= plugins/platform-launcher/library/$(ECLIPSE_WS) LAUNCHER_SRCS= $(LAUNCHER_SRC)/../eclipse.c \ $(LAUNCHER_SRC)/../eclipseUtil.c \ + $(LAUNCHER_SRC)/../eclipseShm.c \ $(LAUNCHER_SRC)/eclipseGtk.c LAUNCHER_OBJS= $(LAUNCHER_SRCS:S/.c/.o/g) -LAUNCHER_CFLAGS= -s \ - -DPROGRAM_NAME="\"$(LAUNCHER)\"" \ - -DDEFAULT_OS="\"$(ECLIPSE_OS)\"" \ - -DDEFAULT_OS_ARCH="\"$(ECLIPSE_ARCH)\"" \ - -DDEFAULT_WS="\"$(ECLIPSE_WS)\"" \ - -I$(LAUNCHER_SRC) \ - -I$(LAUNCHER_SRC)/.. \ - `pkg-config --cflags gtk+-2.0` -LAUNCHER_LIBS= `pkg-config --libs gtk+-2.0` - -ECLIPSE_TOPLEVEL_FILES= \ - startup.jar splash.bmp cpl-v10.html \ - install.ini notice.html .eclipseproduct - -all: binaries java - -binaries: libupdate libswt launcher - -libupdate: $(LIBUPDATE_DST)/$(LIBUPDATE) - -$(LIBUPDATE_DST)/$(LIBUPDATE): $(LIBUPDATE_SRC)/update.cpp - @$(ECHO) "===> Building $(LIBUPDATE)." - $(MKDIR) $(LIBUPDATE_DST) - $(CXX) $(CFLAGS) -shared -fpic -fPIC -I$(LIBUPDATE_SRC) -o $(.TARGET) $(.ALLSRC) - -libswt: $(LIBSWT_DST)/$(LIBSWTPI) $(LIBSWT_DST)/$(LIBSWT) - -$(LIBSWT_DST)/$(LIBSWT): $(LIBSWT_SRC)/callback.o - @$(ECHO) "===> Linking $(LIBSWT)." - $(MKDIR) $(LIBSWT_DST) - $(CC) -shared -Wl,-x -o $(.TARGET) $(.ALLSRC) +all: binaries java -$(LIBSWT_DST)/$(LIBSWTPI): $(LIBSWT_SRC)/structs.o $(LIBSWT_SRC)/swt.o - @$(ECHO) "===> Linking $(LIBSWTPI)." - $(MKDIR) $(LIBSWT_DST) - $(CC) -shared -Wl,-x -o $(.TARGET) $(.ALLSRC) \ - `pkg-config --libs gthread-2.0` \ - `pkg-config --libs gtk+-2.0` +binaries: libswt launcher libupdate -.for i in callback.c structs.c swt.c -$(LIBSWT_SRC)/${i:R:S/$/.o/g}: $(LIBSWT_SRC)/$i - @$(ECHO) "===> Compiling $i." - $(CC) $(CFLAGS) -c -s -fpic -fPIC -o $(.TARGET) $(.ALLSRC) \ - `pkg-config --cflags gthread-2.0` \ - `pkg-config --cflags gtk+-2.0` -.endfor +libswt: + @$(ECHO) "===> Building libswt." + cd "plugins/org.eclipse.swt/Eclipse SWT PI/$(ECLIPSE_WS)/library" && \ + $(SH) ./build.sh && \ + $(CP) *.so ../../../../org.eclipse.swt.$(ECLIPSE_WS)/os/freebsd/x86/ -launcher: $(LAUNCHER_DST)/$(LAUNCHER) +launcher: + @$(ECHO) "===> Building Eclipse launcher." + cd plugins/platform-launcher/library/$(ECLIPSE_WS) && \ + $(CSH) build.csh -os freebsd && \ + $(CP) eclipse ../../bin/freebsd/$(ECLIPSE_WS)/eclipse -.for i in $(LAUNCHER_SRCS) -${i:R:S/$/.o/g}: $i - @$(ECHO) "===> Compiling $i." - $(CC) -c $(CFLAGS) $(LAUNCHER_CFLAGS) -o $(.TARGET) $(.ALLSRC) -.endfor +libupdate: + @$(ECHO) "===> Building libupdate." + cd plugins/org.eclipse.update.core.freebsd/src && \ + $(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) && \ + $(CP) *.so ../../org.eclipse.core.resources.freebsd/os/freebsd/x86 -$(LAUNCHER_DST)/$(LAUNCHER):: $(LAUNCHER_OBJS) - @$(ECHO) "===> Linking $(LAUNCHER)." - $(MKDIR) $(LAUNCHER_DST) - $(CXX) -o $(.TARGET) $(.ALLSRC) $(LAUNCHER_LIBS) - -java: build-java build-doc build-install - -build-java: - @$(ECHO) "===> Compiling Java sources." - $(ANT) -f build.xml compile - -build-doc: - @$(ECHO) "===> Building Javadoc." - $(ANT) -f build.xml init buildDoc +java: build-install build-install: - $(ANT) -f build.xml install gatherFeatureBinaries gatherFeatureSources + @$(ECHO) "===> Building Eclipse platform." + ./build -os $(ECLIPSE_OS) -ws $(ECLIPSE_WS) -arch $(ECLIPSE_ARCH) install: - @$(ECHO) "===> Creating destination directory..." + @$(ECHO) "===> Installing Eclipse platform." @$(MKDIR) $(PORTDESTDIR) + $(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" \ - eclipse.in > eclipse.tmp + eclipse.in > eclipse.tmp $(BSD_INSTALL_SCRIPT) eclipse.tmp $(PREFIX)/bin/eclipse - @$(ECHO) "===> Installing Eclipse platform." - @$(MKDIR) $(PORTDESTDIR) - $(BSD_INSTALL_PROGRAM) $(LAUNCHER_DST)/$(LAUNCHER) $(PORTDESTDIR) -.for i in $(ECLIPSE_TOPLEVEL_FILES) - $(BSD_INSTALL_DATA) plugins/org.eclipse.platform/$i $(PORTDESTDIR) -.endfor - @$(FIND) features -name *.zip -exec unzip -o {} -d $(PORTDESTDIR) \; clean: - rm -rf $(LIBUPDATE_DST)/$(LIBUPDATE) + ./build -os $(ECLIPSE_OS) -ws $(ECLIPSE_WS) -arch $(ECLIPSE_ARCH) clean rm -rf $(LIBSWT_DST)/$(LIBSWTPI) $(LIBSWT_DST)/$(LIBSWT) rm -rf $(LAUNCHER_DST)/$(LAUNCHER) - rm -rf $(LAUNCHER_OBJS) rm -rf $(LIBSWT_SRC)/*.o $(LAUNCHER_OBJS) + rm -rf $(LIBUPDATE_DST)/$(LIBUPDATE) diff --git a/java/eclipse/files/assemble.org.eclipse.sdk.freebsd.gtk.x86.xml b/java/eclipse/files/assemble.org.eclipse.sdk.freebsd.gtk.x86.xml new file mode 100644 index 000000000000..7ff6901d82f4 --- /dev/null +++ b/java/eclipse/files/assemble.org.eclipse.sdk.freebsd.gtk.x86.xml @@ -0,0 +1,428 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Assemble org.eclipse.sdk" default="main"> + <property name="archiveName" value="org.eclipse.sdk-${buildId}-freebsd.gtk.x86.zip"/> + <property name="os" value="freebsd"/> + <property name="ws" value="gtk"/> + <property name="arch" value="x86"/> + <property name="assemblyTempDir" value="${buildDirectory}/tmp"/> + <property name="eclipse.base" value="${assemblyTempDir}/${collectingFolder}"/> + <property name="eclipse.plugins" value="${eclipse.base}/plugins"/> + <property name="eclipse.features" value="${eclipse.base}/features"/> + <property name="archiveFullPath" value="${basedir}/${buildLabel}/${archiveName}"/> + <!-- Beginning of the jarUp task --> + <target name="jarUp" description="Create a jar from the given location."> + <available property="${source}/${elementName}_exists" file="${source}/${elementName}"/> + <antcall target="jarIng"> + <param name="source" value="${source}"/> + <param name="elementName" value="${elementName}"/> + </antcall> + </target> + <target name="jarIng" if="${source}/${elementName}_exists"> + <zip zipfile="${source}/${elementName}.jar" basedir="${source}/${elementName}" filesonly="false" whenempty="skip" update="false"/> + <delete dir="${source}/${elementName}"/> + </target> + <!-- End of the jarUp task --> + <target name="main"> + <condition property="pluginArchivePrefix" value="plugins"> + <equals arg1="${archivePrefix}" arg2="" trim="true"/> + </condition> + <property name="pluginArchivePrefix" value="${archivePrefix}/plugins"/> + + <condition property="featureArchivePrefix" value="features"> + <equals arg1="${archivePrefix}" arg2="" trim="true"/> + </condition> + <property name="featureArchivePrefix" value="${archivePrefix}/features"/> + + <delete dir="${assemblyTempDir}"/> + <dirname property="archiveParentFolder" file="${archiveFullPath}"/> + <mkdir dir="${archiveParentFolder}"/> + <mkdir dir="${assemblyTempDir}"/> + <mkdir dir="${buildLabel}"/> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.doc.isv" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.scheduler" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ltk.ui.refactoring" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.doc.user" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.osgi" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.debug.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.intro" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.source" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.junit" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.base" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.osgi.services" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.boot" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.sdk" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.swt.gtk" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.filebuffers" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.apache.lucene" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.workbench" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.runtime.compatibility" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ant.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ant.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.views" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.source" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.doc.user" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.junit.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.expressions" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.source" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.ide" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.externaltools" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ltk.core.refactoring" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.ide" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.ssh" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jface.text" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.compare" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.doc.user" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jface" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.junit" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.resources.freebsd" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.debug.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.resources" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.doc.isv" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.webapp" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.appserver" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.ssh2" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.junit.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.variables" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.search" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.debug" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.console" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.core.freebsd" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.presentations.r21" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.text" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.tomcat" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.launching" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.swt" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.build" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.editors" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.debug.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.osgi.util" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.apache.ant" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.source.freebsd.gtk.x86" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.workbench.texteditor" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.cheatsheets" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.workbench.compatibility" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.configurator" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.forms" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.jdt.source/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.platform.source/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.sdk/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.jdt/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.pde/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.platform/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.doc.isv_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.scheduler_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ltk.ui.refactoring_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.doc.user_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.osgi_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.debug.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.intro_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.source_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.junit_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.base_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.osgi.services_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.boot_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.sdk_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.swt.gtk_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.filebuffers_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.apache.lucene_1.3.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.workbench_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.runtime.compatibility_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ant.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ant.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.views_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.source_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.doc.user_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.junit.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.expressions_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.source_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.ide_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.externaltools_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ltk.core.refactoring_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.ide_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.ssh_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jface.text_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.compare_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.doc.user_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jface_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.junit_3.8.1"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.resources.freebsd_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.debug.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.resources_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.doc.isv_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.webapp_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.appserver_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.ssh2_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.junit.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.variables_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.search_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.debug_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.console_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.core.freebsd_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.presentations.r21_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.text_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.tomcat_4.1.30"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.launching_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.swt_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.build_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.editors_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.debug.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.osgi.util_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.apache.ant_1.6.1"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.source.freebsd.gtk.x86_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.workbench.texteditor_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.cheatsheets_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.workbench.compatibility_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.configurator_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.forms_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${featureArchivePrefix}/org.eclipse.jdt.source_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${featureArchivePrefix}/org.eclipse.platform.source_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.sdk_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.jdt_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.pde_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.platform_3.0.0"/> + </exec> + <exec executable="zip" dir="${eclipse.base}/freebsd.gtk.x86"> + <arg line="-r -q ${zipargs} ${archiveFullPath} . "/> + </exec> + </target> +</project> diff --git a/java/eclipse/files/assemble.org.eclipse.sdk.freebsd.motif.x86.xml b/java/eclipse/files/assemble.org.eclipse.sdk.freebsd.motif.x86.xml new file mode 100644 index 000000000000..5951975fcb28 --- /dev/null +++ b/java/eclipse/files/assemble.org.eclipse.sdk.freebsd.motif.x86.xml @@ -0,0 +1,428 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="Assemble org.eclipse.sdk" default="main"> + <property name="archiveName" value="org.eclipse.sdk-${buildId}-freebsd.motif.x86.zip"/> + <property name="os" value="freebsd"/> + <property name="ws" value="motif"/> + <property name="arch" value="x86"/> + <property name="assemblyTempDir" value="${buildDirectory}/tmp"/> + <property name="eclipse.base" value="${assemblyTempDir}/${collectingFolder}"/> + <property name="eclipse.plugins" value="${eclipse.base}/plugins"/> + <property name="eclipse.features" value="${eclipse.base}/features"/> + <property name="archiveFullPath" value="${basedir}/${buildLabel}/${archiveName}"/> + <!-- Beginning of the jarUp task --> + <target name="jarUp" description="Create a jar from the given location."> + <available property="${source}/${elementName}_exists" file="${source}/${elementName}"/> + <antcall target="jarIng"> + <param name="source" value="${source}"/> + <param name="elementName" value="${elementName}"/> + </antcall> + </target> + <target name="jarIng" if="${source}/${elementName}_exists"> + <zip zipfile="${source}/${elementName}.jar" basedir="${source}/${elementName}" filesonly="false" whenempty="skip" update="false"/> + <delete dir="${source}/${elementName}"/> + </target> + <!-- End of the jarUp task --> + <target name="main"> + <condition property="pluginArchivePrefix" value="plugins"> + <equals arg1="${archivePrefix}" arg2="" trim="true"/> + </condition> + <property name="pluginArchivePrefix" value="${archivePrefix}/plugins"/> + + <condition property="featureArchivePrefix" value="features"> + <equals arg1="${archivePrefix}" arg2="" trim="true"/> + </condition> + <property name="featureArchivePrefix" value="${archivePrefix}/features"/> + + <delete dir="${assemblyTempDir}"/> + <dirname property="archiveParentFolder" file="${archiveFullPath}"/> + <mkdir dir="${archiveParentFolder}"/> + <mkdir dir="${assemblyTempDir}"/> + <mkdir dir="${buildLabel}"/> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.doc.isv" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.scheduler" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ltk.ui.refactoring" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.doc.user" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.osgi" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.debug.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.intro" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.source" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.junit" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.base" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.osgi.services" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.boot" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.sdk" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.filebuffers" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.apache.lucene" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.workbench" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.runtime.compatibility" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ant.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ant.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.views" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.source" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.doc.user" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.junit.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.expressions" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.source" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.ide" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.externaltools" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ltk.core.refactoring" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform.source.freebsd.motif.x86" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.ide" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.ssh" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jface.text" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.compare" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.doc.user" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jface" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.junit" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.resources.freebsd" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.debug.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.resources" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.doc.isv" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.webapp" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.appserver" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.ssh2" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.junit.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.help.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.core.variables" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.search" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.debug" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.console" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.core.freebsd" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.presentations.r21" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.text" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.platform" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.tomcat" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.launching" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.cvs.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.swt" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.build" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.editors" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.jdt.debug.ui" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.osgi.util" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.apache.ant" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.runtime" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.team.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.workbench.texteditor" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.cheatsheets" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.pde.core" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.swt.motif" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.workbench.compatibility" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.update.configurator" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="plugins/org.eclipse.ui.forms" target="gather.bin.parts"> + <property name="destination.temp.folder" value="${eclipse.plugins}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.jdt.source/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.platform.source/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.sdk/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.jdt/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.pde/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <ant antfile="build.xml" dir="features/org.eclipse.platform/" target="gather.bin.parts"> + <property name="feature.base" value="${eclipse.base}"/> + </ant> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.doc.isv_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.scheduler_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ltk.ui.refactoring_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.doc.user_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.osgi_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.debug.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.intro_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.source_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.junit_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.base_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.osgi.services_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.boot_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.sdk_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.filebuffers_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.apache.lucene_1.3.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.workbench_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.runtime.compatibility_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ant.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ant.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.views_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.source_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.doc.user_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.junit.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.expressions_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.source_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.ide_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.externaltools_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ltk.core.refactoring_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform.source.freebsd.motif.x86_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.ide_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.ssh_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jface.text_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.compare_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.doc.user_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jface_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.junit_3.8.1"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.resources.freebsd_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.debug.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.resources_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.doc.isv_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.webapp_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.appserver_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.ssh2_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.junit.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.help.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.core.variables_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.search_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.debug_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.console_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.core.freebsd_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.presentations.r21_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.text_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.platform_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.tomcat_4.1.30"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.launching_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.cvs.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.swt_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.build_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.editors_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.jdt.debug.ui_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.osgi.util_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.apache.ant_1.6.1"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.runtime_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.team.core_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.workbench.texteditor_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.cheatsheets_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.pde.core_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.swt.motif_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.workbench.compatibility_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.update.configurator_3.0.0"/> + <arg line="${pluginArchivePrefix}/org.eclipse.ui.forms_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${featureArchivePrefix}/org.eclipse.jdt.source_3.0.0"/> + </exec> + <exec executable="zip" dir="${assemblyTempDir}"> + <arg line="-r -q ${zipargs} ${archiveFullPath}"/> + <arg line="${featureArchivePrefix}/org.eclipse.platform.source_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.sdk_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.jdt_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.pde_3.0.0"/> + <arg line="${featureArchivePrefix}/org.eclipse.platform_3.0.0"/> + </exec> + <exec executable="zip" dir="${eclipse.base}/freebsd.motif.x86"> + <arg line="-r -q ${zipargs} ${archiveFullPath} . "/> + </exec> + </target> +</project> diff --git a/java/eclipse/files/build.sh b/java/eclipse/files/build.sh new file mode 100644 index 000000000000..f7cd9949b332 --- /dev/null +++ b/java/eclipse/files/build.sh @@ -0,0 +1,16 @@ +#******************************************************************************* +# Copyright (c) 2000, 2004 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Common Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/cpl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +# Kevin Cornell (Rational Software Corporation) +# Tom Tromey (Red Hat, Inc.) +#******************************************************************************* + +#!/bin/sh + +gmake -f make_gtk.mak ${1} ${2} ${3} ${4} diff --git a/java/eclipse/files/make_freebsd.mak b/java/eclipse/files/make_freebsd.mak new file mode 100644 index 000000000000..8515026e3499 --- /dev/null +++ b/java/eclipse/files/make_freebsd.mak @@ -0,0 +1,121 @@ +#******************************************************************************* +# Copyright (c) 2000, 2004 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Common Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/cpl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +#******************************************************************************* + +# Makefile for creating SWT libraries on FreeBSD + +include make_common.mak + +SWT_VERSION=$(maj_ver)$(min_ver) + +# Define the installation directories for various products. +# JAVA_HOME - The JDK > 1.3 +# MOTIF_HOME - Motif includes and libraries +# QT_HOME - identifier namespace package (used by KDE) +MOTIF_HOME = /usr/X11R6 +QT_HOME = /usr/X11R6 + +# Define the various DLL (shared) libraries to be made. + +SWT_PREFIX = swt +WS_PREFIX = motif +SWT_LIB = lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +SWT_OBJS = swt.o callback.o os.o os_structs.o os_custom.o os_stats.o +SWT_LIBS = -L$(MOTIF_HOME)/lib -lXm -L/usr/local/lib -L/usr/X11R6/lib \ + -rpath . -x -shared -lX11 -lm -lXext -lXt -lXp -lXinerama \ + -lXtst -liconv +CFLAGS = -O -s -DSWT_VERSION=$(SWT_VERSION) -DFREEBSD -DMOTIF -fpic -I./ \ + -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/bsd \ + -I$(JAVA_HOME)/include/freebsd -I$(MOTIF_HOME)/include \ + -I/usr/X11R6/include -I/usr/local/include + +GNOME_PREFIX = swt-gnome +GNOME_LIB = lib$(GNOME_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +GNOME_OBJECTS= swt.o gnome.o gnome_structs.o gnome_stats.o +GNOME_CFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` +GNOME_LIBS = -shared -fpic -fPIC `pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` + +KDE_PREFIX = swt-kde +KDE_LIB = lib$(KDE_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +KDE_OBJS = kde.o +KDE_LIBS = -L/usr/local/lib -L$(QT_HOME)/lib -shared -lkdecore -lqt-mt +KDE_CFLAGS = -fno-rtti -c -O -I$(QT_HOME)/include -I$(JAVA_HOME)/include \ + -I$(JAVA_HOME)/include/bsd \ + -I$(JAVA_HOME)/include/freebsd -I/usr/local/include + +AWT_PREFIX = swt-awt +AWT_LIB = lib$(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +AWT_OBJS = swt_awt.o +AWT_LIBS = -L$(JAVA_HOME)/jre/lib/i386 -ljawt -shared + +GTK_PREFIX = swt-gtk +GTK_LIB = lib$(GTK_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +GTK_OBJS = swt.o gtk.o +GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` +GTK_LIBS = -x -shared `pkg-config --libs-only-L gtk+-2.0` `pkg-config --libs-only-l --libs-only-L gtk+-2.0` + +all: make_swt make_awt $(MAKE_GNOME) make_gtk + +kde: make_kde + +make_swt: $(SWT_LIB) + +$(SWT_LIB): $(SWT_OBJS) + $(LD) -o $@ $(SWT_OBJS) $(SWT_LIBS) + +swt.o: swt.c swt.h + $(CC) $(CFLAGS) -c swt.c +os.o: os.c os.h swt.h os_custom.h + $(CC) $(CFLAGS) -c os.c +os_structs.o: os_structs.c os_structs.h os.h swt.h + $(CC) $(CFLAGS) -c os_structs.c +os_custom.o: os_custom.c os_structs.h os.h swt.h + $(CC) $(CFLAGS) -c os_custom.c +os_stats.o: os_stats.c os_structs.h os.h os_stats.h swt.h + $(CC) $(CFLAGS) -c os_stats.c + +make_gnome: $(GNOME_LIB) + +$(GNOME_LIB): $(GNOME_OBJECTS) + gcc -o $@ $(GNOME_OBJECTS) $(GNOME_LIBS) + +gnome.o: gnome.c + gcc -O -Wall -DSWT_VERSION=$(SWT_VERSION) -DFREEBSD -DGTK -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/bsd -I$(JAVA_HOME)/include/freebsd $(GNOME_CFLAGS) -c -o gnome.o gnome.c + +gnome_structs.o: gnome_structs.c + gcc -O -Wall -DSWT_VERSION=$(SWT_VERSION) -DFREEBSD -DGTK -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/bsd -I$(JAVA_HOME)/include/freebsd $(GNOME_CFLAGS) -c -o gnome_structs.o gnome_structs.c + +gnome_stats.o: gnome_stats.c + gcc -O -Wall -DSWT_VERSION=$(SWT_VERSION) -DFREEBSD -DGTK -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/bsd -I$(JAVA_HOME)/include/freebsd $(GNOME_CFLAGS) -c -o gnome_stats.o gnome_stats.c + +make_kde: $(KDE_LIB) + +$(KDE_LIB): $(KDE_OBJS) + ld -o $@ $(KDE_OBJS) $(KDE_LIBS) + +$(KDE_OBJS): kde.cc + g++ $(KDE_CFLAGS) -o kde.o kde.cc + +make_awt: $(AWT_LIB) + +$(AWT_LIB): $(AWT_OBJS) + ld -o $@ $(AWT_OBJS) $(AWT_LIBS) + +make_gtk: $(GTK_LIB) + +$(GTK_LIB): $(GTK_OBJS) + ld -o $@ $(GTK_OBJS) $(GTK_LIBS) + +gtk.o: gtk.c + $(CC) $(CFLAGS) $(GTK_CFLAGS) -c -o gtk.o gtk.c + +clean: + rm -f *.so *.o + diff --git a/java/eclipse/files/make_gtk.mak b/java/eclipse/files/make_gtk.mak new file mode 100644 index 000000000000..fc79ad54c74b --- /dev/null +++ b/java/eclipse/files/make_gtk.mak @@ -0,0 +1,186 @@ +#******************************************************************************* +# Copyright (c) 2000, 2004 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Common Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/cpl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +#******************************************************************************* + +# Makefile for creating SWT libraries for FreeBSD GTK + +include make_common.mak + +CC=gcc +LD=gcc + +SWT_VERSION=$(maj_ver)$(min_ver) + +# Define the installation directories for various products. +# Your system may have these in a different place. +# JAVA_HOME - IBM's version of Java + +#JAVA_HOME = /usr/local/jdk1.4.2 +AWT_LIB_PATH = $(JAVA_HOME)/jre/lib/i386 +XTEST_LIB_PATH = /usr/X11R6/lib + +# mozilla source distribution folder +MOZILLA_HOME = /usr/X11R6 + +# Define the various shared libraries to be build. +WS_PREFIX = gtk +SWT_PREFIX = swt +AWT_PREFIX = swt-awt +SWTPI_PREFIX = swt-pi +ATK_PREFIX = swt-atk +GNOME_PREFIX = swt-gnome +MOZILLA_PREFIX = swt-mozilla +SWT_LIB = lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +AWT_LIB = lib$(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +SWTPI_LIB = lib$(SWTPI_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +ATK_LIB = lib$(ATK_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +GNOME_LIB = lib$(GNOME_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +MOZILLA_LIB = lib$(MOZILLA_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so + +GTKCFLAGS = `pkg-config --cflags gtk+-2.0` +GTKLIBS = `pkg-config --libs gtk+-2.0 gthread-2.0` -L$(XTEST_LIB_PATH) -lXtst + +AWT_LIBS = -L$(AWT_LIB_PATH) -ljawt -shared + +ATKCFLAGS = `pkg-config --cflags atk gtk+-2.0` +ATKLIBS = `pkg-config --libs atk gtk+-2.0` + +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` + +MOZILLACFLAGS = -O \ + -fno-rtti \ + -Wall \ + -I./ \ + -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 +MOZILLALDFLAGS = -s + +SWT_OBJECTS = swt.o callback.o +AWT_OBJECTS = swt_awt.o +SWTPI_OBJECTS = swt.o os.o os_structs.o os_custom.o os_stats.o +ATK_OBJECTS = swt.o atk.o atk_structs.o atk_custom.o atk_stats.o +GNOME_OBJECTS = swt.o gnome.o gnome_structs.o gnome_stats.o +MOZILLA_OBJECTS = xpcom.o + +CFLAGS = -O -Wall \ + -DSWT_VERSION=$(SWT_VERSION) \ + -DFREEBSD -DGTK \ + -I$(JAVA_HOME)/include \ + -I$(JAVA_HOME)/include/bsd \ + -I$(JAVA_HOME)/include/freebsd \ + -I../../../Eclipse_SWT/common/library \ + -I../../../Eclipse_SWT_PI/gtk/library \ + -I/usr/X11R6/include \ + -fpic \ + ${SWT_PTR_CFLAGS} + +LIBS = -shared -fpic + +# +# Target Rules +# + +all: make_swt make_atk $(MAKE_GNOME) make_awt make_mozilla + +all64: make_swt make_atk make_gnome make_awt + +# +# SWT libs +# +make_swt: $(SWT_LIB) $(SWTPI_LIB) + +$(SWT_LIB): $(SWT_OBJECTS) + $(LD) $(LIBS) -o $(SWT_LIB) $(SWT_OBJECTS) + +callback.o: callback.c callback.h + $(CC) $(CFLAGS) -c callback.c + +$(SWTPI_LIB): $(SWTPI_OBJECTS) + $(LD) $(LIBS) $(GTKLIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS) + +swt.o: swt.c swt.h + $(CC) $(CFLAGS) -c swt.c +os.o: os.c os.h swt.h os_custom.h + $(CC) $(CFLAGS) $(GTKCFLAGS) -c os.c +os_structs.o: os_structs.c os_structs.h os.h swt.h + $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_structs.c +os_custom.o: os_custom.c os_structs.h os.h swt.h + $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_custom.c +os_stats.o: os_stats.c os_structs.h os.h os_stats.h swt.h + $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_stats.c + +# +# AWT lib +# +make_awt:$(AWT_LIB) + +$(AWT_LIB): $(AWT_OBJECTS) + $(LD) $(AWT_LIBS) -o $(AWT_LIB) $(AWT_OBJECTS) + +# +# Atk lib +# +make_atk: $(ATK_LIB) + +$(ATK_LIB): $(ATK_OBJECTS) + $(LD) $(LIBS) $(ATKLIBS) -o $(ATK_LIB) $(ATK_OBJECTS) + +atk.o: atk.c atk.h + $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk.c +atk_structs.o: atk_structs.c atk_structs.h atk.h + $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_structs.c +atk_custom.o: atk_custom.c atk_structs.h atk.h + $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_custom.c +atk_stats.o: atk_stats.c atk_structs.h atk_stats.h atk.h + $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_stats.c + +# +# Gnome lib +# +make_gnome: $(GNOME_LIB) + +$(GNOME_LIB): $(GNOME_OBJECTS) + $(LD) $(LIBS) $(GNOMELIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS) + +gnome.o: gnome.c + $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome.c + +gnome_structs.o: gnome_structs.c + $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome_structs.c + +gnome_stats.o: gnome_stats.c gnome_stats.h + $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome_stats.c + +# +# Mozilla lib +# +make_mozilla:$(MOZILLA_LIB) + +$(MOZILLA_LIB): $(MOZILLA_OBJECTS) + $(CXX) $(LIBS) $(MOZILLALDFLAGS) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) + +xpcom.o: xpcom.cpp + $(CXX) $(MOZILLACFLAGS) -c xpcom.cpp + +# +# Clean +# +clean: + rm -f *.o *.so diff --git a/java/eclipse/files/make_gtk.xml b/java/eclipse/files/make_gtk.xml new file mode 100644 index 000000000000..16486806af48 --- /dev/null +++ b/java/eclipse/files/make_gtk.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project default="build_gtk_freebsd_lib" basedir="../../.."> + +<target name="init"> + <tstamp/> + <property name="lib_destdir" value="${basedir}/../org.eclipse.swt.gtk/os/freebsd/x86" /> +</target> + +<!-- Build swt.so for GTK --> +<!-- Output .so for this platform into the org.eclipse.swt.gtk/os directory --> +<target name="build_gtk_freebsd_lib" depends="init"> + <mkdir dir="${lib_destdir}" /> + <exec dir="./bin/library" executable="sh"> + <arg line="${basedir}/bin/library/build.sh"/> + </exec> + <copy todir="${lib_destdir}"> + <fileset dir="${basedir}/bin/library/" includes="*.so"/> + </copy> + <eclipse.refreshLocal resource="org.eclipse.swt.gtk" depth="infinite" /> +</target> + +<target name="clean" depends="init"> + <tstamp/> + <exec dir="./bin/library" executable="sh"> + <arg line="${basedir}/bin/library/build.sh"/> + <arg line="clean"/> + </exec> +</target> + +</project> diff --git a/java/eclipse/files/make_motif.xml b/java/eclipse/files/make_motif.xml new file mode 100644 index 000000000000..9952d3c1974d --- /dev/null +++ b/java/eclipse/files/make_motif.xml @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project default="build_motif_freebsd_lib" basedir="../../.."> + +<target name="init_linux"> + <tstamp/> + <property name="fragment_dir" value="${basedir}/../org.eclipse.swt.motif" /> + <property name="jar_destdir" value="${fragment_dir}/ws/linux" /> + <property name="lib_destdir" value="${fragment_dir}/os/linux/x86" /> + <property name="lib_extension" value=".so"/> + + <mkdir dir="${lib_destdir}" /> +</target> + +<target name="init_freebsd"> + <tstamp/> + <property name="fragment_dir" value="${basedir}/../org.eclipse.swt.motif" /> + <property name="jar_destdir" value="${fragment_dir}/ws/freebsd" /> + <property name="lib_destdir" value="${fragment_dir}/os/freebsd/x86" /> + <property name="lib_extension" value=".so"/> + + <mkdir dir="${lib_destdir}" /> +</target> + +<target name="init_aix"> + <tstamp/> + <property name="fragment_dir" value="${basedir}/../org.eclipse.swt.motif" /> + <property name="jar_destdir" value="${fragment_dir}/ws/aix" /> + <property name="lib_destdir" value="${fragment_dir}/os/aix/ppc" /> + <property name="lib_extension" value=".a"/> + + <mkdir dir="${lib_destdir}" /> +</target> + +<target name="init_hpux_PA_RISC"> + <tstamp/> + <property name="fragment_dir" value="${basedir}/../org.eclipse.swt.motif" /> + <property name="jar_destdir" value="${fragment_dir}/ws/hpux" /> + <property name="lib_destdir" value="${fragment_dir}/os/hpux/PA_RISC" /> + <property name="lib_extension" value=".sl"/> + + <mkdir dir="${lib_destdir}" /> +</target> + +<target name="init_hpux_ia64"> + <tstamp/> + <property name="fragment_dir" value="${basedir}/../org.eclipse.swt.motif" /> + <property name="jar_destdir" value="${fragment_dir}/ws/hpux" /> + <property name="lib_destdir" value="${fragment_dir}/os/hpux/ia64" /> + <property name="lib_extension" value=".so"/> + + <mkdir dir="${lib_destdir}" /> +</target> + +<target name="init_solaris"> + <tstamp/> + <property name="fragment_dir" value="${basedir}/../org.eclipse.swt.motif" /> + <property name="jar_destdir" value="${fragment_dir}/ws/solaris" /> + <property name="lib_destdir" value="${fragment_dir}/os/solaris/sparc" /> + <property name="lib_extension" value=".so"/> + + <mkdir dir="${lib_destdir}" /> +</target> + +<target name="build_file_lib"> + <exec dir="./bin/library" executable="sh"> + <arg line="${basedir}/bin/library/build.sh"/> + </exec> + <copy todir="${lib_destdir}"> + <fileset dir="${basedir}/bin/library/" includes="*${lib_extension}"/> + </copy> + <eclipse.refreshLocal resource="org.eclipse.swt.motif" depth="infinite" /> +</target> + +<!-- Build swt.so for motif linux --> +<!-- Output .so for this platform into the org.eclipse.swt.motif/os directory --> +<target name="build_motif_linux_lib" depends="init_linux,build_file_lib"> +</target> + +<!-- Build swt.so for motif freebsd --> +<!-- Output .so for this platform into the org.eclipse.swt.motif/os directory --> +<target name="build_motif_freebsd_lib" depends="init_freebsd,build_file_lib"> +</target> + +<!-- Build swt.so for aix ppc --> +<!-- Output .so for this platform into the org.eclipse.swt.motif/os directory --> +<target name="build_motif_aix_lib" depends="init_aix,build_file_lib"> +</target> + +<!-- Build swt.so for hpux PA_RISC --> +<!-- Output .sl for this platform into the org.eclipse.swt.motif/os directory --> +<target name="build_motif_hpux_PA_RISC_lib" depends="init_hpux_PA_RISC,build_file_lib"> +</target> + +<!-- Build swt.so for hpux ia64 --> +<!-- Output .so for this platform into the org.eclipse.swt.motif/os directory --> +<target name="build_motif_hpux_ia64_lib" depends="init_hpux_ia64,build_file_lib"> +</target> + +<!-- Build swt.so for solaris sparc --> +<!-- Output .so for this platform into the org.eclipse.swt.motif/os directory --> +<target name="build_motif_solaris_lib" depends="init_solaris,build_file_lib"> +</target> + +<target name="clean"> + <tstamp/> + <exec dir="./bin/library" executable="sh"> + <arg line="${basedir}/bin/library/build.sh"/> + <arg line="clean"/> + </exec> +</target> + +</project> diff --git a/java/eclipse/files/patch-BootLoader.java b/java/eclipse/files/patch-BootLoader.java deleted file mode 100644 index 057397aa2c7a..000000000000 --- a/java/eclipse/files/patch-BootLoader.java +++ /dev/null @@ -1,23 +0,0 @@ ---- plugins/org.eclipse.core.boot/src/org/eclipse/core/boot/BootLoader.java.orig Thu Mar 6 12:13:43 2003 -+++ plugins/org.eclipse.core.boot/src/org/eclipse/core/boot/BootLoader.java Thu Mar 6 12:15:17 2003 -@@ -51,6 +51,12 @@ - public static final String OS_LINUX = "linux";//$NON-NLS-1$ - - /** -+ * Constant string (value "freebsd") indicating the platform is running on a -+ * FreeBSD operating system. -+ */ -+ public static final String OS_FREEBSD = "freebsd";//$NON-NLS-1$ -+ -+ /** - * Constant string (value "aix") indicating the platform is running on an - * AIX-based operating system. - */ -@@ -164,6 +170,7 @@ - OS_AIX, - OS_HPUX, - OS_LINUX, -+ OS_FREEBSD, - OS_MACOSX, - OS_QNX, - OS_SOLARIS, diff --git a/java/eclipse/files/patch-InternalBootLoader.java b/java/eclipse/files/patch-InternalBootLoader.java deleted file mode 100644 index e71270ec1c12..000000000000 --- a/java/eclipse/files/patch-InternalBootLoader.java +++ /dev/null @@ -1,11 +0,0 @@ ---- plugins/org.eclipse.core.boot/src/org/eclipse/core/internal/boot/InternalBootLoader.java.orig Thu Mar 6 12:17:11 2003 -+++ plugins/org.eclipse.core.boot/src/org/eclipse/core/internal/boot/InternalBootLoader.java Thu Mar 6 12:18:11 2003 -@@ -946,6 +946,8 @@ - ws = BootLoader.WS_WIN32; - else if (os.equals(BootLoader.OS_LINUX)) - ws = BootLoader.WS_MOTIF; -+ else if (os.equals(BootLoader.OS_FREEBSD)) -+ ws = BootLoader.WS_GTK; - else if (os.equals(BootLoader.OS_MACOSX)) - ws = BootLoader.WS_CARBON; - else if (os.equals(BootLoader.OS_HPUX)) diff --git a/java/eclipse/files/patch-RuntimeErrorDialog.java b/java/eclipse/files/patch-RuntimeErrorDialog.java deleted file mode 100644 index da93620a419f..000000000000 --- a/java/eclipse/files/patch-RuntimeErrorDialog.java +++ /dev/null @@ -1,21 +0,0 @@ ---- plugins/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/RuntimeErrorDialog.java.orig Thu Mar 6 12:23:58 2003 -+++ plugins/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/RuntimeErrorDialog.java Thu Mar 6 12:25:26 2003 -@@ -68,8 +68,10 @@ - data.widthHint = getMinimumMessageWidth(); - // set the default height on linux. - // Note: on Windows, the default height is fine. -- if (System.getProperty("os.name").startsWith("Linux")) -+ if (System.getProperty("os.name").startsWith("Linux") || -+ System.getProperty("os.name").startsWith("FreeBSD")) - data.heightHint = convertVerticalDLUsToPixels(100); -+ else - text.setLayoutData(data); - text.setFont(parent.getFont()); - text.setBackground(composite.getDisplay().getSystemColor(SWT.COLOR_WHITE)); -@@ -88,4 +90,4 @@ - dialog.open(); - return; - } --} -\ No newline at end of file -+} diff --git a/java/eclipse/files/patch-SelectionDispatchAction.java b/java/eclipse/files/patch-SelectionDispatchAction.java deleted file mode 100644 index b21c1b0d6870..000000000000 --- a/java/eclipse/files/patch-SelectionDispatchAction.java +++ /dev/null @@ -1,32 +0,0 @@ - -$FreeBSD$ - ---- plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SelectionDispatchAction.java.orig Mon Jul 14 20:30:10 2003 -+++ plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SelectionDispatchAction.java Mon Jul 14 20:30:27 2003 -@@ -123,7 +123,7 @@ - * Executes this actions with the given structured selection. This default implementation - * calls <code>run(ISelection selection)</code>. - */ -- protected void run(IStructuredSelection selection) { -+ public void run(IStructuredSelection selection) { - run((ISelection)selection); - } - -@@ -141,7 +141,7 @@ - * Executes this actions with the given text selection. This default implementation - * calls <code>run(ISelection selection)</code>. - */ -- protected void run(ITextSelection selection) { -+ public void run(ITextSelection selection) { - run((ISelection)selection); - } - -@@ -159,7 +159,7 @@ - * Executes this actions with the given selection. This default implementation - * does nothing. - */ -- protected void run(ISelection selection) { -+ public void run(ISelection selection) { - } - - /* (non-Javadoc) diff --git a/java/eclipse/files/patch-UpdateManagerUtils.java b/java/eclipse/files/patch-UpdateManagerUtils.java deleted file mode 100644 index d666ee2fee28..000000000000 --- a/java/eclipse/files/patch-UpdateManagerUtils.java +++ /dev/null @@ -1,18 +0,0 @@ ---- plugins/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java.orig Thu Mar 6 14:43:57 2003 -+++ plugins/org.eclipse.update.core/src/org/eclipse/update/internal/core/UpdateManagerUtils.java Thu Mar 6 14:44:53 2003 -@@ -17,7 +17,7 @@ - */
- public class UpdateManagerUtils {
-
-- private static boolean OS_UNIX = BootLoader.OS_HPUX.equals(BootLoader.getOS()) || BootLoader.OS_AIX.equals(BootLoader.getOS()) || BootLoader.OS_LINUX.equals(BootLoader.getOS()) || BootLoader.OS_SOLARIS.equals(BootLoader.getOS());
-+ private static boolean OS_UNIX = BootLoader.OS_HPUX.equals(BootLoader.getOS()) || BootLoader.OS_AIX.equals(BootLoader.getOS()) || BootLoader.OS_LINUX.equals(BootLoader.getOS()) || BootLoader.OS_FREEBSD.equals(BootLoader.getOS()) || BootLoader.OS_SOLARIS.equals(BootLoader.getOS());
-
- private static Map table;
-
-@@ -735,4 +735,4 @@ - writer.init(file,encoding);
- return writer;
- }
--} -\ No newline at end of file -+} diff --git a/java/eclipse/files/patch-assemble-all b/java/eclipse/files/patch-assemble-all new file mode 100644 index 000000000000..4e31a4f3f878 --- /dev/null +++ b/java/eclipse/files/patch-assemble-all @@ -0,0 +1,15 @@ +--- assemble.org.eclipse.sdk.all.xml.orig Tue Jun 15 21:51:32 2004 ++++ assemble.org.eclipse.sdk.all.xml Tue Jun 15 21:52:22 2004 +@@ -10,6 +10,12 @@ + <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.gtk.x86"> + <property name="assembleScriptName" value="assemble.org.eclipse.sdk.linux.gtk.x86.xml"/> + </ant> ++ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.x86"> ++ <property name="assembleScriptName" value="assemble.org.eclipse.sdk.freebsd.gtk.x86.xml"/> ++ </ant> ++ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.motif.x86"> ++ <property name="assembleScriptName" value="assemble.org.eclipse.sdk.freebsd.motif.x86.xml"/> ++ </ant> + <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.gtk.ppc"> + <property name="assembleScriptName" value="assemble.org.eclipse.sdk.linux.gtk.ppc.xml"/> + </ant> diff --git a/java/eclipse/files/patch-build b/java/eclipse/files/patch-build new file mode 100644 index 000000000000..f4d7dc479d42 --- /dev/null +++ b/java/eclipse/files/patch-build @@ -0,0 +1,11 @@ +--- build.orig Sat Jun 12 01:27:29 2004 ++++ build Mon Jun 14 10:27:59 2004 +@@ -51,7 +51,7 @@ + exit 1 + fi + +-if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-amd64" ] || [ "$os-$ws-$arch" = "solaris-motif-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" = "macosx-carbon-ppc" ] ++if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-amd64" ] || [ "$os-$ws-$arch" = "solaris-motif-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" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "freebsd-gtk-x86" ] || [ "$os-$ws-$arch" = "freebsd-motif-x86" ] + then + ant -buildfile build.xml $target -DinstallOs=$os -DinstallWs=$ws -DinstallArch=$arch -Dbootclasspath=$bootclasspath -DjavacTarget=1.2 + else diff --git a/java/eclipse/files/patch-build.xml b/java/eclipse/files/patch-build.xml deleted file mode 100644 index b3d778945b89..000000000000 --- a/java/eclipse/files/patch-build.xml +++ /dev/null @@ -1,51 +0,0 @@ - -$FreeBSD$ - ---- build.xml.orig Fri Jun 27 22:00:54 2003 -+++ build.xml Fri Jul 11 20:45:22 2003 -@@ -181,7 +181,19 @@ - <equals arg1="${ws}" arg2="photon" /> - </and> - </condition> -- -+ <condition property="launcherBin" value="${install}/plugins/platform-launcher/bin/freebsd/motif"> -+ <and> -+ <equals arg1="${os}" arg2="freebsd" /> -+ <equals arg1="${ws}" arg2="motif" /> -+ </and> -+ </condition> -+ <condition property="launcherBin" value="${install}/plugins/platform-launcher/bin/freebsd/gtk"> -+ <and> -+ <equals arg1="${os}" arg2="freebsd" /> -+ <equals arg1="${ws}" arg2="gtk" /> -+ </and> -+ </condition> -+ - <condition property="win"> - <and> - <os family="windows" /> -@@ -192,6 +204,24 @@ - <os family="unix" /> - </and> - </condition> -+ </target> -+ -+<!-- Gathers all plugins which belong to a feature into a zip, once for -+ the source, once for the bin plugins. Should be called after run --> -+ -+ <target name="gatherFeatureSources" depends="init"> -+ <antcall target="allElements"> -+ <param name="target" value="build.sources" /> -+ </antcall> -+ <antcall target="allElements"> -+ <param name="target" value="zip.sources" /> -+ </antcall> -+ </target> -+ -+ <target name="gatherFeatureBinaries" depends="init"> -+ <antcall target="allElements"> -+ <param name="target" value="zip.distribution" /> -+ </antcall> - </target> - - </project> diff --git a/java/eclipse/files/patch-core.resources::plugin.properties b/java/eclipse/files/patch-core.resources::plugin.properties deleted file mode 100644 index fd9458728651..000000000000 --- a/java/eclipse/files/patch-core.resources::plugin.properties +++ /dev/null @@ -1,7 +0,0 @@ ---- plugins/org.eclipse.core.resources/plugin.properties.orig Thu Mar 6 15:10:52 2003 -+++ plugins/org.eclipse.core.resources/plugin.properties Thu Mar 6 15:11:38 2003 -@@ -15,3 +15,4 @@ - - win32FragmentName = Core Resource Management Win32 Fragment - linuxFragmentName = Core Resource Management Linux Fragment -+freebsdFragmentName = Core Resource Management FreeBSD Fragment diff --git a/java/eclipse/files/patch-eclipseMotif.c b/java/eclipse/files/patch-eclipseMotif.c deleted file mode 100644 index c999493f7458..000000000000 --- a/java/eclipse/files/patch-eclipseMotif.c +++ /dev/null @@ -1,14 +0,0 @@ ---- plugins/platform-launcher/library/motif/eclipseMotif.c.orig Fri Nov 8 05:17:00 2002 -+++ plugins/platform-launcher/library/motif/eclipseMotif.c Fri Nov 29 05:55:57 2002 -@@ -323,7 +323,11 @@ - if (jvmProcess != 0) - { - wait( &exitCode ); -+#if !defined(__FreeBSD__) - jvmExitCode = ((exitCode & 0x00ff) == 0 ? (exitCode >> 8) : exitCode); /* see wait(2) */ -+#else -+ jvmExitCode = WIFEXITED(exitCode) ? WEXITSTATUS(exitCode) : exitCode; /* see wait(2) */ -+#endif - } - - /* Return the exit code from the JVM. */ diff --git a/java/eclipse/files/patch-eclipseShm b/java/eclipse/files/patch-eclipseShm new file mode 100644 index 000000000000..901f8d787326 --- /dev/null +++ b/java/eclipse/files/patch-eclipseShm @@ -0,0 +1,15 @@ +--- plugins/platform-launcher/library/eclipseShm.c.orig Wed Apr 21 03:55:49 2004 ++++ plugins/platform-launcher/library/eclipseShm.c Wed Apr 21 03:55:57 2004 +@@ -178,11 +178,11 @@ + + #else /* Unix like platforms */ + ++#include <sys/types.h> + #include <sys/shm.h> + #include <string.h> + #include <stdlib.h> + #include <stdio.h> +-#include <sys/types.h> + #include <unistd.h> + + int createSharedData(char** id, int size) { diff --git a/java/eclipse/files/patch-features-jdt-build b/java/eclipse/files/patch-features-jdt-build new file mode 100644 index 000000000000..631e5aec9945 --- /dev/null +++ b/java/eclipse/files/patch-features-jdt-build @@ -0,0 +1,21 @@ +--- features/org.eclipse.jdt/build.xml.orig Thu Jun 3 00:23:02 2004 ++++ features/org.eclipse.jdt/build.xml Thu Jun 3 00:24:29 2004 +@@ -162,6 +162,18 @@ + <fileset dir="${basedir}/rootfiles" includes="**" /> + </copy> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ </copy> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ <mkdir dir="${feature.base}/freebsd.motif.x86/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.motif.x86/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ </copy> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + <mkdir dir="${feature.base}/solaris.motif.sparc/${collectingFolder}"/> + <copy todir="${feature.base}/solaris.motif.sparc/${collectingFolder}" failonerror="true"> diff --git a/java/eclipse/files/patch-features-jdt-source-build b/java/eclipse/files/patch-features-jdt-source-build new file mode 100644 index 000000000000..8850c300df93 --- /dev/null +++ b/java/eclipse/files/patch-features-jdt-source-build @@ -0,0 +1,13 @@ +--- features/org.eclipse.jdt.source/build.xml.orig Sat Jun 12 01:24:16 2004 ++++ features/org.eclipse.jdt.source/build.xml Sun Jun 20 02:22:30 2004 +@@ -92,6 +92,10 @@ + </target> + <target name="rootFileslinux_gtk_amd64"> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + </target> + <target name="rootFilesaix_motif_ppc"> diff --git a/java/eclipse/files/patch-features-pde-build b/java/eclipse/files/patch-features-pde-build new file mode 100644 index 000000000000..6977f728ab1b --- /dev/null +++ b/java/eclipse/files/patch-features-pde-build @@ -0,0 +1,13 @@ +--- features/org.eclipse.pde/build.xml.orig Fri May 21 19:15:34 2004 ++++ features/org.eclipse.pde/build.xml Thu Jun 3 00:36:05 2004 +@@ -116,6 +116,10 @@ + </target> + <target name="rootFileslinux_gtk_amd64"> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + </target> + <target name="rootFilesaix_motif_ppc"> diff --git a/java/eclipse/files/patch-features-pde-source-build b/java/eclipse/files/patch-features-pde-source-build new file mode 100644 index 000000000000..6a5184027eba --- /dev/null +++ b/java/eclipse/files/patch-features-pde-source-build @@ -0,0 +1,13 @@ +--- features/org.eclipse.pde.source/build.xml.orig Thu Jun 3 00:40:26 2004 ++++ features/org.eclipse.pde.source/build.xml Thu Jun 3 00:41:41 2004 +@@ -81,6 +81,10 @@ + </target> + <target name="rootFileslinux_gtk_amd64"> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + </target> + <target name="rootFilesaix_motif_ppc"> diff --git a/java/eclipse/files/patch-features-platform-build b/java/eclipse/files/patch-features-platform-build new file mode 100644 index 000000000000..6bb8c8bebc66 --- /dev/null +++ b/java/eclipse/files/patch-features-platform-build @@ -0,0 +1,105 @@ +--- features/org.eclipse.platform/build.xml.orig Sun Jun 20 11:50:43 2004 ++++ features/org.eclipse.platform/build.xml Sun Jun 20 12:10:54 2004 +@@ -59,6 +59,11 @@ + </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk" target="${target}"> + <property name="arch" value="x86"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="gtk"/> ++ </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk" target="${target}"> ++ <property name="arch" value="x86"/> + <property name="os" value="linux"/> + <property name="ws" value="gtk"/> + </ant> +@@ -99,6 +104,11 @@ + </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.motif" target="${target}"> + <property name="arch" value="x86"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="motif"/> ++ </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.motif" target="${target}"> ++ <property name="arch" value="x86"/> + <property name="os" value="linux"/> + <property name="ws" value="motif"/> + </ant> +@@ -187,6 +197,11 @@ + <property name="os" value="win32"/> + <property name="ws" value="win32"/> + </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.update.core.freebsd" target="${target}"> ++ <property name="arch" value="x86"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="motif"/> ++ </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.update.core.linux" target="${target}"> + <property name="arch" value="x86"/> + <property name="os" value="linux"/> +@@ -237,6 +252,11 @@ + <property name="os" value="qnx"/> + <property name="ws" value="photon"/> + </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.core.resources.freebsd" target="${target}"> ++ <property name="arch" value="x86"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="motif"/> ++ </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.core.resources.linux" target="${target}"> + <property name="arch" value="x86"/> + <property name="os" value="linux"/> +@@ -434,7 +454,7 @@ + <copy todir="${feature.base}/features/org.eclipse.platform_3.0.0" failonerror="true"> + <fileset dir="${basedir}" includes="cpl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html" /> + </copy> +- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.0.0/feature.xml" selfVersion="3.0.0" featureIds="" pluginIds="org.apache.ant,1.6.1,org.apache.lucene,1.3.0,org.eclipse.ant.core,3.0.0,org.eclipse.compare,3.0.0,org.eclipse.core.boot,3.0.0,org.eclipse.core.filebuffers,3.0.0,org.eclipse.core.expressions,3.0.0,org.eclipse.core.resources,3.0.0,org.eclipse.core.runtime,3.0.0,org.eclipse.core.runtime.compatibility,3.0.0,org.eclipse.osgi,3.0.0,org.eclipse.osgi.services,3.0.0,org.eclipse.osgi.util,3.0.0,org.eclipse.core.variables,3.0.0,org.eclipse.debug.core,3.0.0,org.eclipse.debug.ui,3.0.0,org.eclipse.help,3.0.0,org.eclipse.help.webapp,3.0.0,org.eclipse.help.base,3.0.0,org.eclipse.help.ui,3.0.0,org.eclipse.help.appserver,3.0.0,org.eclipse.help.ide,3.0.0,org.eclipse.platform,3.0.0,org.eclipse.platform.doc.user,3.0.0,org.eclipse.search,3.0.0,org.eclipse.swt,3.0.0,org.eclipse.team.core,3.0.0,org.eclipse.team.cvs.core,3.0.0,org.eclipse.team.cvs.ssh,3.0.0,org.eclipse.team.cvs.ssh2,3.0.0,org.eclipse.team.cvs.ui,3.0.0,org.eclipse.team.ui,3.0.0,org.eclipse.tomcat,4.1.30,org.eclipse.text,3.0.0,org.eclipse.jface,3.0.0,org.eclipse.jface.text,3.0.0,org.eclipse.ui.console,3.0.0,org.eclipse.ui.presentations.r21,3.0.0,org.eclipse.ui.intro,3.0.0,org.eclipse.ui.cheatsheets,3.0.0,org.eclipse.ui.workbench,3.0.0,org.eclipse.ui.workbench.texteditor,3.0.0,org.eclipse.ui.views,3.0.0,org.eclipse.ui.editors,3.0.0,org.eclipse.ui.forms,3.0.0,org.eclipse.ui,3.0.0,org.eclipse.ui.externaltools,3.0.0,org.eclipse.ui.ide,3.0.0,org.eclipse.update.configurator,3.0.0,org.eclipse.update.core,3.0.0,org.eclipse.update.scheduler,3.0.0,org.eclipse.update.ui,3.0.0,org.eclipse.ui.workbench.compatibility,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.core.resources.hpux,3.0.0,org.eclipse.swt.gtk,3.0.0,org.eclipse.swt.gtk,3.0.0,org.eclipse.core.resources.linux,3.0.0,org.eclipse.update.core.linux,3.0.0,org.eclipse.swt.gtk64,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.core.resources.linux,3.0.0,org.eclipse.update.core.linux,3.0.0,org.eclipse.swt.carbon,3.0.0,org.eclipse.core.resources.macosx,3.0.0,org.eclipse.ui.carbon,3.0.0,org.eclipse.swt.photon,3.0.0,org.eclipse.core.resources.qnx,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.swt.win32,3.0.0,org.eclipse.core.resources.win32,3.0.0,org.eclipse.ui.win32,3.0.0,org.eclipse.update.core.win32,3.0.0,"/> ++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.0.0/feature.xml" selfVersion="3.0.0" featureIds="" pluginIds="org.apache.ant,1.6.1,org.apache.lucene,1.3.0,org.eclipse.ant.core,3.0.0,org.eclipse.compare,3.0.0,org.eclipse.core.boot,3.0.0,org.eclipse.core.filebuffers,3.0.0,org.eclipse.core.expressions,3.0.0,org.eclipse.core.resources,3.0.0,org.eclipse.core.runtime,3.0.0,org.eclipse.core.runtime.compatibility,3.0.0,org.eclipse.osgi,3.0.0,org.eclipse.osgi.services,3.0.0,org.eclipse.osgi.util,3.0.0,org.eclipse.core.variables,3.0.0,org.eclipse.debug.core,3.0.0,org.eclipse.debug.ui,3.0.0,org.eclipse.help,3.0.0,org.eclipse.help.webapp,3.0.0,org.eclipse.help.base,3.0.0,org.eclipse.help.ui,3.0.0,org.eclipse.help.appserver,3.0.0,org.eclipse.help.ide,3.0.0,org.eclipse.platform,3.0.0,org.eclipse.platform.doc.user,3.0.0,org.eclipse.search,3.0.0,org.eclipse.swt,3.0.0,org.eclipse.team.core,3.0.0,org.eclipse.team.cvs.core,3.0.0,org.eclipse.team.cvs.ssh,3.0.0,org.eclipse.team.cvs.ssh2,3.0.0,org.eclipse.team.cvs.ui,3.0.0,org.eclipse.team.ui,3.0.0,org.eclipse.tomcat,4.1.30,org.eclipse.text,3.0.0,org.eclipse.jface,3.0.0,org.eclipse.jface.text,3.0.0,org.eclipse.ui.console,3.0.0,org.eclipse.ui.presentations.r21,3.0.0,org.eclipse.ui.intro,3.0.0,org.eclipse.ui.cheatsheets,3.0.0,org.eclipse.ui.workbench,3.0.0,org.eclipse.ui.workbench.texteditor,3.0.0,org.eclipse.ui.views,3.0.0,org.eclipse.ui.editors,3.0.0,org.eclipse.ui.forms,3.0.0,org.eclipse.ui,3.0.0,org.eclipse.ui.externaltools,3.0.0,org.eclipse.ui.ide,3.0.0,org.eclipse.update.configurator,3.0.0,org.eclipse.update.core,3.0.0,org.eclipse.update.scheduler,3.0.0,org.eclipse.update.ui,3.0.0,org.eclipse.ui.workbench.compatibility,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.core.resources.hpux,3.0.0,org.eclipse.swt.gtk,3.0.0,org.eclipse.swt.gtk,3.0.0,org.eclipse.core.resources.freebsd,3.0.0,org.eclipse.update.core.freebsd,3.0.0,org.eclipse.core.resources.linux,3.0.0,org.eclipse.update.core.linux,3.0.0,org.eclipse.swt.gtk64,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.core.resources.linux,3.0.0,org.eclipse.update.core.linux,3.0.0,org.eclipse.swt.carbon,3.0.0,org.eclipse.core.resources.macosx,3.0.0,org.eclipse.ui.carbon,3.0.0,org.eclipse.swt.photon,3.0.0,org.eclipse.core.resources.qnx,3.0.0,org.eclipse.swt.motif,3.0.0,org.eclipse.swt.win32,3.0.0,org.eclipse.core.resources.win32,3.0.0,org.eclipse.ui.win32,3.0.0,org.eclipse.update.core.win32,3.0.0,"/> + <antcall target="rootFiles${os}_${ws}_${arch}"/> + </target> + <target name="rootFileswin32_win32_x86"> +@@ -447,6 +467,28 @@ + </copy> + <chmod perm="755" dir="${feature.base}/win32.win32.x86/${collectingFolder}" includes="eclipse" /> + </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ <mkdir dir="${feature.base}/freebsd.motif.x86/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.motif.x86/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/../../plugins/platform-launcher/bin/freebsd/motif" includes="**" /> ++ <fileset dir="${basedir}/freebsd.motif" includes="**" /> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar" /> ++ <fileset dir="${basedir}/configuration.files" includes="**" /> ++ </copy> ++ <chmod perm="755" dir="${feature.base}/freebsd.motif.x86/${collectingFolder}" includes="*.so*" /> ++ <chmod perm="755" dir="${feature.base}/freebsd.motif.x86/${collectingFolder}" includes="eclipse" /> ++ <exec executable="ln" dir="${feature.base}/freebsd.motif.x86/${collectingFolder}" os="FreeBSD"> ++ <arg line="-s"/> ++ <arg line="libXm.so.2.1"/> ++ <arg line="libXm.so.2"/> ++ </exec> ++ <exec executable="ln" dir="${feature.base}/freebsd.motif.x86/${collectingFolder}" os="FreeBSD"> ++ <arg line="-s"/> ++ <arg line="libXm.so.2.1"/> ++ <arg line="libXm.so"/> ++ </exec> ++ </target> + <target name="rootFileslinux_motif_x86"> + <mkdir dir="${feature.base}/linux.motif.x86/${collectingFolder}"/> + <copy todir="${feature.base}/linux.motif.x86/${collectingFolder}" failonerror="true"> +@@ -468,6 +510,16 @@ + <arg line="libXm.so.2.1"/> + <arg line="libXm.so"/> + </exec> ++ </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/../../plugins/platform-launcher/bin/freebsd/gtk" includes="**" /> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar" /> ++ <fileset dir="${basedir}/configuration.files" includes="**" /> ++ </copy> ++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="eclipse" /> + </target> + <target name="rootFileslinux_gtk_x86"> + <mkdir dir="${feature.base}/linux.gtk.x86/${collectingFolder}"/> diff --git a/java/eclipse/files/patch-features-platform-source-build b/java/eclipse/files/patch-features-platform-source-build new file mode 100644 index 000000000000..f77583209d9c --- /dev/null +++ b/java/eclipse/files/patch-features-platform-source-build @@ -0,0 +1,46 @@ +--- features/org.eclipse.platform.source/build.xml.orig Sat Jun 12 01:24:16 2004 ++++ features/org.eclipse.platform.source/build.xml Sun Jun 20 12:32:23 2004 +@@ -17,6 +17,11 @@ + <property name="os" value="hpux"/> + <property name="ws" value="motif"/> + </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.freebsd.motif.x86" target="${target}"> ++ <property name="arch" value="x86"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="motif"/> ++ </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.linux.motif.x86" target="${target}"> + <property name="arch" value="x86"/> + <property name="os" value="linux"/> +@@ -62,6 +67,11 @@ + <property name="os" value="linux"/> + <property name="ws" value="gtk"/> + </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.freebsd.gtk.x86" target="${target}"> ++ <property name="arch" value="x86"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="gtk"/> ++ </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.doc.isv" target="${target}"> + <property name="arch" value="x86"/> + <property name="os" value="win32"/> +@@ -124,7 +134,7 @@ + <copy todir="${feature.base}/features/org.eclipse.platform.source_3.0.0" failonerror="true"> + <fileset dir="${basedir}" includes="cpl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html" /> + </copy> +- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.0.0/feature.xml" selfVersion="3.0.0" featureIds="" pluginIds="org.eclipse.platform.doc.isv,3.0.0,org.eclipse.platform.source,3.0.0,org.eclipse.platform.source.macosx.carbon.ppc,3.0.0,org.eclipse.platform.source.qnx.photon.x86,3.0.0,org.eclipse.platform.source.linux.gtk.ppc,3.0.0,org.eclipse.platform.source.hpux.motif.PA_RISC,3.0.0,org.eclipse.platform.source.linux.gtk.x86,3.0.0,org.eclipse.platform.source.aix.motif.ppc,3.0.0,org.eclipse.platform.source.win32.win32.x86,3.0.0,org.eclipse.platform.source.solaris.motif.sparc,3.0.0,org.eclipse.platform.source.linux.gtk.amd64,3.0.0,org.eclipse.platform.source.linux.motif.x86,3.0.0,"/> ++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.0.0/feature.xml" selfVersion="3.0.0" featureIds="" pluginIds="org.eclipse.platform.doc.isv,3.0.0,org.eclipse.platform.source,3.0.0,org.eclipse.platform.source.macosx.carbon.ppc,3.0.0,org.eclipse.platform.source.qnx.photon.x86,3.0.0,org.eclipse.platform.source.linux.gtk.ppc,3.0.0,org.eclipse.platform.source.hpux.motif.PA_RISC,3.0.0,org.eclipse.platform.source.linux.gtk.x86,3.0.0,org.eclipse.platform.source.freebsd.gtk.x86,3.0.0,org.eclipse.platform.source.freebsd.motif.x86,3.0.0,org.eclipse.platform.source.aix.motif.ppc,3.0.0,org.eclipse.platform.source.win32.win32.x86,3.0.0,org.eclipse.platform.source.solaris.motif.sparc,3.0.0,org.eclipse.platform.source.linux.gtk.amd64,3.0.0,org.eclipse.platform.source.linux.motif.x86,3.0.0,"/> + <antcall target="rootFiles${os}_${ws}_${arch}"/> + </target> + <target name="rootFileswin32_win32_x86"> +@@ -132,6 +142,10 @@ + <target name="rootFileslinux_motif_x86"> + </target> + <target name="rootFileslinux_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> + </target> + <target name="rootFileslinux_gtk_ppc"> + </target> diff --git a/java/eclipse/files/patch-features-platform-source-feature b/java/eclipse/files/patch-features-platform-source-feature new file mode 100644 index 000000000000..a7a26d72967a --- /dev/null +++ b/java/eclipse/files/patch-features-platform-source-feature @@ -0,0 +1,11 @@ +--- features/org.eclipse.platform.source/feature.xml.orig Sat May 29 08:14:21 2004 ++++ features/org.eclipse.platform.source/feature.xml Fri Jun 4 11:27:41 2004 +@@ -15,6 +15,8 @@ + <plugin ws="photon" os="qnx" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.qnx.photon.x86" version="3.0.0"/> + <plugin ws="motif" os="hpux" fragment="true" arch="PA_RISC" download-size="0" install-size="0" id="org.eclipse.platform.source.hpux.motif.PA_RISC" version="3.0.0"/> + <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.0.0"/> ++ <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.0.0"/> ++ <plugin ws="motif" os="freebsd" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.freebsd.motif.x86" version="3.0.0"/> + <plugin ws="motif" os="aix" fragment="true" arch="ppc" download-size="0" install-size="0" id="org.eclipse.platform.source.aix.motif.ppc" version="3.0.0"/> + <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.0.0"/> + <plugin ws="motif" os="solaris" fragment="true" arch="sparc" download-size="0" install-size="0" id="org.eclipse.platform.source.solaris.motif.sparc" version="3.0.0"/> diff --git a/java/eclipse/files/patch-features-sdk-build b/java/eclipse/files/patch-features-sdk-build new file mode 100644 index 000000000000..2ac5502e68d2 --- /dev/null +++ b/java/eclipse/files/patch-features-sdk-build @@ -0,0 +1,29 @@ +--- features/org.eclipse.sdk/build.xml.orig Sat Jun 12 01:24:16 2004 ++++ features/org.eclipse.sdk/build.xml Sun Jun 20 12:36:26 2004 +@@ -84,6 +84,13 @@ + <fileset dir="${basedir}/../org.eclipse.platform/configuration.files" includes="**" /> + </copy> + </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ <mkdir dir="${feature.base}/freebsd.motif.x86/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.motif.x86/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/../org.eclipse.platform/rootfiles" includes="**" /> ++ <fileset dir="${basedir}/../org.eclipse.platform/configuration.files" includes="**" /> ++ </copy> ++ </target> + <target name="rootFileslinux_motif_x86"> + <mkdir dir="${feature.base}/linux.motif.x86/${collectingFolder}"/> + <copy todir="${feature.base}/linux.motif.x86/${collectingFolder}" failonerror="true"> +@@ -103,6 +110,12 @@ + <copy todir="${feature.base}/linux.gtk.ppc/${collectingFolder}" failonerror="true"> + <fileset dir="${basedir}/../org.eclipse.platform/rootfiles" includes="**" /> + <fileset dir="${basedir}/../org.eclipse.platform/configuration.files" includes="**" /> ++ </copy> ++ </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/../org.eclipse.platform/rootfiles" includes="**" /> + </copy> + </target> + <target name="rootFileslinux_gtk_amd64"> diff --git a/java/eclipse/files/patch-launcher-gtk-build.csh b/java/eclipse/files/patch-launcher-gtk-build.csh new file mode 100644 index 000000000000..54bdb920dd0b --- /dev/null +++ b/java/eclipse/files/patch-launcher-gtk-build.csh @@ -0,0 +1,17 @@ +--- plugins/platform-launcher/library/gtk/build.csh.orig Sun Jun 13 22:33:13 2004 ++++ plugins/platform-launcher/library/gtk/build.csh Sun Jun 13 22:33:39 2004 +@@ -72,11 +72,11 @@ + # If the OS is supported (a makefile exists) + if ("$makefile" != "") then + if ("$extraArgs" != "") then +- make -f $makefile $extraArgs ++ gmake -f $makefile $extraArgs + else + echo "Building $OS launcher. Defaults: -os $DEFAULT_OS -arch $DEFAULT_OS_ARCH -ws $DEFAULT_WS" +- make -f $makefile clean +- make -f $makefile all ++ gmake -f $makefile clean ++ gmake -f $makefile all + endif + else + echo "Unknown OS ($OS) -- build aborted" diff --git a/java/eclipse/files/patch-launcher-make_gtk.mak b/java/eclipse/files/patch-launcher-make_gtk.mak new file mode 100644 index 000000000000..66533fd3a983 --- /dev/null +++ b/java/eclipse/files/patch-launcher-make_gtk.mak @@ -0,0 +1,11 @@ +--- plugins/platform-launcher/library/gtk/make_gtk.mak.orig Sun Jun 13 22:31:21 2004 ++++ plugins/platform-launcher/library/gtk/make_gtk.mak Sun Jun 13 22:31:38 2004 +@@ -26,7 +26,7 @@ + # Define the object modules to be compiled and flags. + OBJS = eclipse.o eclipseUtil.o eclipseShm.o eclipseGtk.o + EXEC = $(PROGRAM_OUTPUT) +-LIBS = `pkg-config ?libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 ++LIBS = `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 + + CFLAGS = -O -s \ + -DMOZILLA_FIX \ diff --git a/java/eclipse/files/patch-launcher-motif-build.csh b/java/eclipse/files/patch-launcher-motif-build.csh new file mode 100644 index 000000000000..d041278b42d5 --- /dev/null +++ b/java/eclipse/files/patch-launcher-motif-build.csh @@ -0,0 +1,31 @@ +--- plugins/platform-launcher/library/motif/build.csh.orig Sun Jun 20 12:38:06 2004 ++++ plugins/platform-launcher/library/motif/build.csh Sun Jun 20 12:40:27 2004 +@@ -48,6 +48,13 @@ + set defaultWS = "motif" + breaksw + ++ case FreeBSD: ++ set makefile = "make_freebsd.mak" ++ set defaultOS = "freebsd" ++ set defaultOSArch = "x86" ++ set defaultWS = "motif" ++ breaksw ++ + case Linux: + set makefile = "make_linux.mak" + set defaultOS = "linux" +@@ -120,11 +127,11 @@ + # If the OS is supported (a makefile exists) + if ("$makefile" != "") then + if ("$extraArgs" != "") then +- make -f $makefile $extraArgs ++ gmake -f $makefile $extraArgs + else + echo "Building $OS launcher. Defaults: -os $DEFAULT_OS -arch $DEFAULT_OS_ARCH -ws $DEFAULT_WS" +- make -f $makefile clean +- make -f $makefile all ++ gmake -f $makefile clean ++ gmake -f $makefile all + endif + else + echo "Unknown OS ($OS) -- build aborted" diff --git a/java/eclipse/files/patch-launcher-motif-make_linux.mak b/java/eclipse/files/patch-launcher-motif-make_linux.mak new file mode 100644 index 000000000000..949e93722cae --- /dev/null +++ b/java/eclipse/files/patch-launcher-motif-make_linux.mak @@ -0,0 +1,11 @@ +--- plugins/platform-launcher/library/motif/make_linux.mak.orig Sun Jun 20 12:51:29 2004 ++++ plugins/platform-launcher/library/motif/make_linux.mak Sun Jun 20 12:53:01 2004 +@@ -21,7 +21,7 @@ + # X11_HOME - X11 includes and libraries + # MOTIF_HOME - Motif include and libraries if not the same as X11_HOME + X11_HOME = /usr/X11R6 +-MOTIF_HOME = /bluebird/teamswt/swt-builddir/motif21 ++MOTIF_HOME = $(X11_HOME) + + # Define the object modules to be compiled and flags. + OBJS = eclipse.o eclipseUtil.o eclipseShm.o eclipseMotif.o \ diff --git a/java/eclipse/files/patch-plugins-swt-gtk-build b/java/eclipse/files/patch-plugins-swt-gtk-build new file mode 100644 index 000000000000..8fb309c988ff --- /dev/null +++ b/java/eclipse/files/patch-plugins-swt-gtk-build @@ -0,0 +1,18 @@ +--- plugins/org.eclipse.swt.gtk/build.xml.orig Wed Apr 21 00:24:26 2004 ++++ plugins/org.eclipse.swt.gtk/build.xml Wed Apr 21 00:24:39 2004 +@@ -10,7 +10,7 @@ + <property name="build.result.folder" value="${basedir}"/> + <property name="plugindir" value="../org.eclipse.swt"/> + <property name="destination" value="${basedir}"/> +- <property name="os" value="linux"/> ++ <property name="os" value="${os}"/> + <property name="ws" value="gtk"/> + <property name="arch" value="x86"/> + <property name="bootclasspath" value=""/> +@@ -291,4 +291,4 @@ + <delete dir="${temp.folder}"/> + </target> + +-</project> +\ No newline at end of file ++</project> diff --git a/java/eclipse/files/patch-plugins-swt-motif-build b/java/eclipse/files/patch-plugins-swt-motif-build new file mode 100644 index 000000000000..e016d66d6f4f --- /dev/null +++ b/java/eclipse/files/patch-plugins-swt-motif-build @@ -0,0 +1,18 @@ +--- plugins/org.eclipse.swt.motif/build.xml.orig Sun Jun 20 12:55:20 2004 ++++ plugins/org.eclipse.swt.motif/build.xml Sun Jun 20 12:56:39 2004 +@@ -10,7 +10,7 @@ + <property name="build.result.folder" value="${basedir}"/> + <property name="plugindir" value="../org.eclipse.swt"/> + <property name="destination" value="${basedir}"/> +- <property name="os" value="linux"/> ++ <property name="os" value="${os}"/> + <property name="ws" value="motif"/> + <property name="arch" value="x86"/> + <property name="bootclasspath" value=""/> +@@ -315,4 +315,4 @@ + <delete dir="${temp.folder}"/> + </target> + +-</project> +\ No newline at end of file ++</project> diff --git a/java/eclipse/files/patch-update.c b/java/eclipse/files/patch-update.c new file mode 100644 index 000000000000..83b2047bf2b9 --- /dev/null +++ b/java/eclipse/files/patch-update.c @@ -0,0 +1,17 @@ +--- plugins/org.eclipse.update.core.linux/src/update.c.orig Sun Jun 13 22:47:30 2004 ++++ plugins/org.eclipse.update.core.linux/src/update.c Sun Jun 13 22:48:22 2004 +@@ -10,8 +10,14 @@ + *******************************************************************************/
+
+ # include <sys/types.h>
++#ifdef __FreeBSD__ ++# include <sys/param.h> ++# include <sys/mount.h> ++# include "update.h" ++#else + # include <sys/statfs.h>
+ # include <update.h>
++#endif +
+ /*
+ * Class: org_eclipse_update_configuration_LocalSystemInfo
diff --git a/java/eclipse/files/patch-update.core::plugin.properties b/java/eclipse/files/patch-update.core::plugin.properties deleted file mode 100644 index 18227b382169..000000000000 --- a/java/eclipse/files/patch-update.core::plugin.properties +++ /dev/null @@ -1,9 +0,0 @@ ---- plugins/org.eclipse.update.core/plugin.properties.orig Thu Mar 6 15:01:18 2003 -+++ plugins/org.eclipse.update.core/plugin.properties Thu Mar 6 15:01:59 2003 -@@ -2,5 +2,6 @@ - providerName= Eclipse.org
- fragmentNameWin= Install/Update Core for Windows
- fragmentNameLinux= Install/Update Core for Linux
-+fragmentNameFreeBSD= Install/Update Core for FreeBSD
-
-
diff --git a/java/eclipse/files/patch-update.cpp b/java/eclipse/files/patch-update.cpp deleted file mode 100644 index eabdfd542d23..000000000000 --- a/java/eclipse/files/patch-update.cpp +++ /dev/null @@ -1,13 +0,0 @@ ---- plugins/org.eclipse.update.core.linux/src/update.cpp.orig Tue Mar 4 14:18:02 2003 -+++ plugins/org.eclipse.update.core.linux/src/update.cpp Tue Mar 4 14:20:21 2003 -@@ -3,8 +3,8 @@ - * All Rights Reserved.
- */
-
--# include <sys/types.h>
--# include <sys/statfs.h>
-+# include <sys/param.h>
-+# include <sys/mount.h>
- # include <update.h>
-
- /*
diff --git a/java/eclipse/files/swt-motif-build.sh b/java/eclipse/files/swt-motif-build.sh new file mode 100644 index 000000000000..aadb5a2da704 --- /dev/null +++ b/java/eclipse/files/swt-motif-build.sh @@ -0,0 +1,105 @@ +#******************************************************************************* +# Copyright (c) 2000, 2004 IBM Corporation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Common Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/cpl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +# Kevin Cornell (Rational Software Corporation) +# Tom Tromey (Red Hat, Inc.) +# Sridhar Bidigalu (ICS) +#******************************************************************************* + +#!/bin/sh + +# Determine the operating system being built +OS=`uname -s` + +# build according to the operating system +case $OS in + + "AIX") + if [ "$1" = "clean" ]; then + make -f make_aix.mak clean + else + echo "Building AIX version of SWT and CDE DLLs." + make -f make_aix.mak make_swt + make -f make_aix.mak make_cde + fi + ;; + + "FreeBSD") + if [ "$1" = "clean" ]; then + gmake -f make_freebsd.mak clean + else + echo "Building FreeBSD version of SWT and GNOME DLLs." + gmake -f make_freebsd.mak ${1} ${2} ${3} ${4} + build_kde=`pkg_info -xc kdebase | grep "no packages match"` + if [ "$build_kde" = "" ]; then + echo "Building FreeBSD version of KDE DLL." + gmake -f make_freebsd.mak make_kde + fi + fi + ;; + + "Linux") + if [ "$1" = "clean" ]; then + make -f make_linux.mak clean + else + echo "Building Linux version of SWT and GNOME DLLs." + make -f make_linux.mak make_swt make_awt make_gnome make_gtk + + build_kde=`rpm -q kdebase | grep "not installed"` + if [ "$build_kde" = "" ]; then + echo "Building Linux version of KDE DLL." + make -f make_linux.mak make_kde + fi + fi + ;; + + "SunOS") + if [ "$1" = "clean" ]; then + make -f make_solaris.mak clean + else + echo "Building Solaris version of SWT and CDE DLLs." + make -f make_solaris.mak make_swt + make -f make_solaris.mak make_cde + fi + ;; + + "HP-UX") + # Determine the model number system being built + MODEL=`uname -m` + + case $MODEL in + + "ia64") + # ia64 based systems + if [ "$1" = "clean" ]; then + make -f make_hpux_ia64.mak clean + else + echo "Building HP-UX ia64 version of SWT and CDE DLLs." + make -f make_hpux_ia64.mak make_swt + make -f make_hpux_ia64.mak make_cde + fi + ;; + + *) + # PA_RISC based systems + if [ "$1" = "clean" ]; then + make -f make_hpux_PA_RISC.mak clean + else + echo "Building HP-UX PA_RISC version of SWT and CDE DLLs." + make -f make_hpux_PA_RISC.mak make_swt + make -f make_hpux_PA_RISC.mak make_cde + fi + ;; + esac + ;; + + *) + echo "Unknown OS -- build aborted" + ;; +esac diff --git a/java/eclipse/files/update-build.xml b/java/eclipse/files/update-build.xml new file mode 100644 index 000000000000..e38591896af5 --- /dev/null +++ b/java/eclipse/files/update-build.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="buildlibrary" default="run" basedir="."> + + <!-- The properties ${eclipse-home} ${jdk-path} should be passed into this script --> + <!-- Set a meaningful default value for when it is not. --> + <property name="eclipse-home" value="${basedir}/../.."/> + <property name="jdk-path" value="${java.home}"/> + <property name="destination" value="${eclipse-home}/org.eclipse.update.core.freebsd/os/freebsd/x86/"/> + <property name="obj-path" value="${eclipse-home}/org.eclipse.update.core/src/"/> + <property name="src-path" value="${eclipse-home}/org.eclipse.update.core.freebsd/src/"/> + + <!-- sets the properties --> + <property name="library-name" value="libupdate"/> + <property name="library-platform" value="so"/> + <property name="library-file" value="${library-name}.${library-platform}"/> + + <!-- This target holds all initialization code that needs to be done for --> + <!-- all tests that are to be run. Initialization for individual tests --> + <!-- should be done within the body of the suite target. --> + <target name="init"> + <tstamp/> + <delete> + <fileset dir="${obj-path}" includes="${library-file}"/> + <fileset dir="${obj-path}" includes="${library-name}.o"/> + </delete> + </target> + + <!-- This target holds code to cleanup the testing environment after --> + <!-- after all of the tests have been run. You can use this target to --> + <!-- delete temporary files that have been created. --> + <target name="cleanup"> + <delete> + <fileset dir="${obj-path}" includes="${library-file}"/> + <fileset dir="${obj-path}" includes="${library-name}.o"/> + </delete> + </target> + + + <!-- This target runs the build. --> + <target name="run" depends="init,build,cleanup"> + </target> + + <!-- This target build the library --> + <target name="build"> + <echo message="Building ${library-file}"/> + + <property name="header-path" value="${jdk-path}/include"/> + <property name="header-freebsd-path" value="${header-path}/freebsd" /> + + <echo message="gcc33 -o ${library-file} -shared -I${src-path} -I${header-path} -I${header-freebsd-path} ${library-file} -static -lc"/> + + <apply executable="gcc" dest="${eclipse-home}/" parallel="false"> + <arg value="-o"/> + <arg value="${library-file}"/> + <arg value="-shared"/> + <arg value="-I${src-path}"/> + <arg value="-I${header-path}"/> + <arg value="-I${header-freebsd-path}"/> + <srcfile/> + <arg value="-static"/> + <arg value="-lc"/> + <fileset dir="${src-path}" includes="*.c"/> + <mapper type="glob" from="*.c" to="*.o"/> + </apply> + + <move file="${library-file}" todir="${destination}"/> + </target> + + +</project> |