diff options
author | nork <nork@FreeBSD.org> | 2005-05-07 13:00:40 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2005-05-07 13:00:40 +0800 |
commit | 59aaa6f6486dffc344da416cd1e2f5fd37e1da46 (patch) | |
tree | 104a0620cec4d11d48bb7c350b673ffd0c2c1d5b /java/eclipse-devel | |
parent | ea8c47b29595bc67da7aa3fbb2c49a2be0962d34 (diff) | |
download | freebsd-ports-gnome-59aaa6f6486dffc344da416cd1e2f5fd37e1da46.tar.gz freebsd-ports-gnome-59aaa6f6486dffc344da416cd1e2f5fd37e1da46.tar.zst freebsd-ports-gnome-59aaa6f6486dffc344da416cd1e2f5fd37e1da46.zip |
Add eclipse-devel 3.1M6, an open extensible IDE for anything and nothing
in particular.
PR: ports/79917
Submitted by: various members of freebsd-java
Diffstat (limited to 'java/eclipse-devel')
30 files changed, 1103 insertions, 0 deletions
diff --git a/java/eclipse-devel/Makefile b/java/eclipse-devel/Makefile new file mode 100644 index 000000000000..ca648356b1ad --- /dev/null +++ b/java/eclipse-devel/Makefile @@ -0,0 +1,128 @@ +# New ports collection makefile for: eclipse-devel +# Date created: April 9, 2005 +# Whom: various members of freebsd-java +# +# $FreeBSD$ +# + +PORTNAME= eclipse +PORTVERSION= 3.1M6 +CATEGORIES= java devel +MASTER_SITES= ${MASTER_SITE_ECLIPSE} +MASTER_SITE_SUBDIR= S-${PORTVERSION}-200504011645 +DISTNAME= ${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION} +DIST_SUBDIR= eclipse + +MAINTAINER= freebsd-ports@varju.ca +COMMENT= An open extensible IDE for anything and nothing in particular + +BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \ + zip:${PORTSDIR}/archivers/zip +BUILD_DEPENDS+= ${EXTRACT_DEPENDS} + +CONFLICTS= eclipse-3.0* + +ONLY_FOR_ARCHS= i386 amd64 +USE_GMAKE= yes +USE_ZIP= yes +USE_GCC= 3.4 + +USE_JAVA= yes +JAVA_VERSION= 1.4+ +JAVA_OS= native + +USE_REINPLACE= yes +NO_WRKSUBDIR= yes + +PORTDESTDIR= ${PREFIX}/eclipse + +ECLIPSE_OS= freebsd + +.if defined(WITH_MOTIF) +ECLIPSE_WS= motif +USE_ICONV= yes +USE_MOTIF= yes +.else +ECLIPSE_WS= gtk +.if defined(WITH_MOZILLA) +BROWSER= ${WITH_MOZILLA} +BUILD_DEPENDS+= ${BROWSER}:${PORTSDIR}/www/${BROWSER} +.else +BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla +BROWSER= mozilla +.endif +.endif + +.if defined(WITHOUT_GNOMEVFS) +MAKE_GNOME= +USE_GNOME= gtk20 pkgconfig +.else +MAKE_GNOME= make_gnome +USE_GNOME= gtk20 gnomevfs2 libgnome libgnomeui pkgconfig +.endif + +.include <bsd.port.pre.mk> + +.if defined(WITH_MOTIF) +BROKEN= No motif support yet +.endif + +.if (${ARCH} == "amd64") +ECLIPSE_ARCH= amd64 +ECLIPSE_SWT= gtk64 +.else +ECLIPSE_ARCH= x86 +ECLIPSE_SWT= gtk +.endif + +.if (${BROWSER} == "firefox") +BROKEN= Firefox integration doesn\'t work yet +.endif + +MAKE_ENV+= BROWSER=${BROWSER} \ + ECLIPSE_ARCH=${ECLIPSE_ARCH} \ + ECLIPSE_OS=${ECLIPSE_OS} \ + ECLIPSE_WS=${ECLIPSE_WS} \ + JAVA_HOME=${JAVA_HOME} \ + MAKE_GNOME=${MAKE_GNOME} \ + MOTIF_HOME=${X11_HOME} \ + QT_HOME=${X11_HOME} + +PLIST_FILES= bin/eclipse + +SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library +SWTMOTIF=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/motif/library + +# Manually patch some files with spaces in the path +post-patch: + @${PATCH} ${PATCH_DIST_ARGS} "${SWTMOTIF}/build.sh" \ + ${FILESDIR}/manualpatch-plugins-swt-motif-build.sh + @${PATCH} ${PATCH_DIST_ARGS} "${SWTMOTIF}/make_freebsd.mak" \ + ${FILESDIR}/manualpatch-plugins-swt-motif-make_freebsd.mak + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/make_freebsd.mak" \ + ${FILESDIR}/manualpatch-plugins-swt-gtk-make_freebsd.mak + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/build.sh" \ + ${FILESDIR}/manualpatch-plugins-swt-gtk-build.sh + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/os_custom.h" \ + ${FILESDIR}/manualpatch-plugins-swt-gtk-os_custom.h + +do-build: + @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \ + ./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -compilelibs) + +do-install: + @${MKDIR} ${PORTDESTDIR} + @${TAR} -xvzf ${WRKSRC}/result/*.tar.gz -C ${PREFIX} + @${SED} \ + -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \ + -e "s+%%JAVA_HOME%%+${JAVA_HOME}+g" \ + -e "s+%%X11BASE%%+${X11BASE}+g" \ + -e "s+%%BROWSER%%+${BROWSER}+g" \ + ${FILESDIR}/eclipse.in > ${WRKSRC}/eclipse.tmp + ${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/eclipse + ${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse + @(cd ${WRKSRC}/tmp; ${FIND} -s eclipse -not -type d | ${GREP} -v tmp.tar) >> ${TMPPLIST} + @(cd ${WRKSRC}/tmp; ${FIND} -s -d eclipse -type d) \ + | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST} + +.include <bsd.port.post.mk> diff --git a/java/eclipse-devel/distinfo b/java/eclipse-devel/distinfo new file mode 100644 index 000000000000..fef7bc6d7cb9 --- /dev/null +++ b/java/eclipse-devel/distinfo @@ -0,0 +1,2 @@ +MD5 (eclipse/eclipse-sourceBuild-srcIncluded-3.1M6.zip) = 51d81345d2fa0e8aa0b455f6cf4c447f +SIZE (eclipse/eclipse-sourceBuild-srcIncluded-3.1M6.zip) = 59038692 diff --git a/java/eclipse-devel/files/eclipse.in b/java/eclipse-devel/files/eclipse.in new file mode 100644 index 000000000000..1edf7be3bdbb --- /dev/null +++ b/java/eclipse-devel/files/eclipse.in @@ -0,0 +1,49 @@ +#!/bin/sh +# +# FreeBSD-specific startup script for Eclipse Platform +# +# See: http://www.eclipse.org +# +# $FreeBSD$ +# + +DEFAULT_JAVA_HOME=%%JAVA_HOME%% +ECLIPSE_HOME=%%ECLIPSE_HOME%% +DEFAULT_JAVA_CMD=java +MOZILLA_FIVE_HOME=%%X11BASE%%/lib/%%BROWSER%% +LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH + + +#----------------------------------------------------------------------------- +# Determine configuration settings +#----------------------------------------------------------------------------- + +# Determine the JDK home directory +if [ -z "${JAVA_HOME}" ]; then + JAVA_HOME=${DEFAULT_JAVA_HOME} +fi + +# Determine 'java' executable +if [ -z "${JAVACMD}" ]; then + if [ -n "${JAVA_HOME}" ]; then + JAVACMD="${JAVA_HOME}/bin/java" + else + JAVACMD=${DEFAULT_JAVACMD} + fi +fi + +# Check if 'java' executable can be found +if [ ! -x "$JAVACMD" ]; then + echo "Error: JAVA_HOME is not defined correctly: ${JAVA_HOME}" + echo " Unable to find ${JAVACMD}" + exit 1 +fi + +# Check if 'eclipse' executable can be found +if [ ! -x "${ECLIPSE_HOME}/eclipse" ]; then + echo "Error: ECLIPSE_HOME is not defined correctly: ${ECLIPSE_HOME}" + echo " Unable to find eclipse launcher binary" + exit 1 +fi + +PATH=${JAVA_HOME}/bin:$PATH exec "${ECLIPSE_HOME}/eclipse" $@ diff --git a/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-build.sh b/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-build.sh new file mode 100644 index 000000000000..0f69a64d40ee --- /dev/null +++ b/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-build.sh @@ -0,0 +1,54 @@ +--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig Fri Apr 1 13:56:58 2005 ++++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh Sat Apr 9 16:27:29 2005 +@@ -110,6 +110,36 @@ + ;; + esac + ;; ++ "FreeBSD") ++ CC=gcc ++ LD=gcc ++ XTEST_LIB_PATH=$X11BASE/lib ++ KDE_LIB_PATH=$PREFIX/lib ++ KDE_INCLUDE_PATH=$PREFIX/include ++ QT_HOME=$X11BASE ++ GECKO_I=${X11BASE}/include/${BROWSER} ++ GECKO_INCLUDES="-I${GECKO_I} -I${GECKO_I}/nspr -I${GECKO_I}/xpcom -I${GECKO_I}/string -I${GECKO_I}/embed_base -I${GECKO_I}/embedstring" ++ GECKO_L=${X11BASE}/lib/${BROWSER} ++ GECKO_LIBS="-L${GECKO_L} -lxpcom -lnspr4 -lplds4 -lplc4 -lgtkembedmoz" ++ case $MODEL in ++ "amd64") ++ AWT_LIB_PATH=$JAVA_HOME/jre/lib/amd64 ++ SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64 ++ OUTPUT_DIR=../../../org.eclipse.swt.gtk64/os/freebsd/amd64 ++ makefile="make_freebsd.mak" ++ echo "Building FreeBSD GTK AMD64 version of SWT" ++ ;; ++ i?86) ++ AWT_LIB_PATH=$JAVA_HOME/jre/lib/i386 ++ OUTPUT_DIR=../../../org.eclipse.swt.gtk/os/freebsd/x86 ++ makefile="make_freebsd.mak" ++ echo "Building FreeBSD GTK x86 version of SWT" ++ ;; ++ *) ++ echo "*** Unknown MODEL <${MODEL}>" ++ ;; ++ esac ++ ;; + "SunOS") + CC=gcc + LD=gcc +@@ -138,4 +168,13 @@ + + export CC LD JAVA_HOME QT_HOME AWT_LIB_PATH XTEST_LIB_PATH GECKO_SDK GECKO_INCLUDES GECKO_LIBS SWT_PTR_CFLAGS CDE_HOME KDE_LIB_PATH KDE_INCLUDE_PATH OUTPUT_DIR + +-make -f $makefile ${1} ${2} ${3} ${4} ++gmake -f $makefile ${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 $makefile make_kde ++fi ++ ++cp -p library/xpcom* . ++gmake -f $makefile make_mozilla diff --git a/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-make_freebsd.mak b/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-make_freebsd.mak new file mode 100644 index 000000000000..2aeab21323ce --- /dev/null +++ b/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-make_freebsd.mak @@ -0,0 +1,41 @@ +--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak Fri Apr 1 13:55:11 2005 ++++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak Sat Apr 9 13:48:50 2005 +@@ -49,8 +49,8 @@ + GNOMECFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` + GNOMELIBS = `pkg-config --libs-only-L gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` -lgnomevfs-2 -lgnome-2 -lgnomeui-2 + +-KDE_LIBS = -shared -L$(KDE_LIB_PATH) -lkdecore -lkparts -L$(QT_HOME)/lib -lqt +-KDE_CFLAGS = -fno-rtti -c -O -I$(KDE_INCLUDE_PATH) -I$(QT_HOME)/include -I$(JAVA_HOME)/include ++KDE_LIBS = -shared -L$(KDE_LIB_PATH) -lkdecore -lkparts -L$(QT_HOME)/lib -lqt-mt ++KDE_CFLAGS = -fno-rtti -c -O -I$(KDE_INCLUDE_PATH) -I$(QT_HOME)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd + + # Uncomment for Native Stats tool + #NATIVE_STATS = -DNATIVE_STATS +@@ -65,6 +65,7 @@ + -Wno-non-virtual-dtor \ + -fPIC \ + -I./ \ ++ -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd \ + ${GECKO_INCLUDES} \ + ${SWT_PTR_CFLAGS} + +@@ -82,14 +83,14 @@ + CFLAGS = -O -Wall \ + -DSWT_VERSION=$(SWT_VERSION) \ + $(NATIVE_STATS) \ +- -DLINUX -DGTK \ +- -I$(JAVA_HOME)/include \ +- -fpic \ ++ -DFREEBSD -DGTK \ ++ -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -I$(X11BASE)/include \ ++ -fpic -fPIC \ + ${SWT_PTR_CFLAGS} +-LIBS = -shared -fpic ++LIBS = -shared -fpic -fPIC + + +-all: make_swt make_atk make_gnome make_awt make_kde ++all: make_swt make_atk $(MAKE_GNOME) make_awt + + # + # SWT libs diff --git a/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-os_custom.h b/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-os_custom.h new file mode 100644 index 000000000000..525c5ccdc80f --- /dev/null +++ b/java/eclipse-devel/files/manualpatch-plugins-swt-gtk-os_custom.h @@ -0,0 +1,57 @@ +--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h Fri Apr 1 13:55:23 2005 ++++ ../files/plugins-swt-gtk-os_custom.h Wed Mar 30 22:55:24 2005 +@@ -21,30 +23,30 @@ + #define PTR_sizeof() sizeof(void *) + + /* Libraries for dynamic loaded functions */ +-#define gtk_file_chooser_add_filter_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_dialog_new_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_get_current_folder_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_get_filename_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_get_filenames_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_set_current_folder_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_set_current_name_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_set_extra_widget_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_set_filename_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_chooser_set_select_multiple_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_filter_add_pattern_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_filter_new_LIB "libgtk-x11-2.0.so.0" +-#define gtk_file_filter_set_name_LIB "libgtk-x11-2.0.so.0" +-#define gtk_tree_selection_get_selected_rows_LIB "libgtk-x11-2.0.so.0" +-#define gtk_tree_view_column_cell_get_position_LIB "libgtk-x11-2.0.so.0" +-#define gtk_entry_set_alignment_LIB "libgtk-x11-2.0.so.0" +-#define gdk_draw_pixbuf_LIB "libgdk-x11-2.0.so.0" +-#define gdk_screen_get_default_LIB "libgdk-x11-2.0.so.0" +-#define gdk_screen_get_monitor_at_window_LIB "libgdk-x11-2.0.so.0" +-#define gdk_screen_get_monitor_geometry_LIB "libgdk-x11-2.0.so.0" +-#define gdk_screen_get_n_monitors_LIB "libgdk-x11-2.0.so.0" +-#define gdk_screen_get_number_LIB "libgdk-x11-2.0.so.0" +-#define gdk_window_set_keep_above_LIB "libgdk-x11-2.0.so.0" +-#define gdk_window_set_accept_focus_LIB "libgdk-x11-2.0.so.0" ++#define gtk_file_chooser_add_filter_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_dialog_new_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_get_current_folder_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_get_filename_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_get_filenames_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_set_current_folder_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_set_current_name_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_set_extra_widget_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_set_filename_LIB "libgtk-x11-2.0.so" ++#define gtk_file_chooser_set_select_multiple_LIB "libgtk-x11-2.0.so" ++#define gtk_file_filter_add_pattern_LIB "libgtk-x11-2.0.so" ++#define gtk_file_filter_new_LIB "libgtk-x11-2.0.so" ++#define gtk_file_filter_set_name_LIB "libgtk-x11-2.0.so" ++#define gtk_tree_selection_get_selected_rows_LIB "libgtk-x11-2.0.so" ++#define gtk_tree_view_column_cell_get_position_LIB "libgtk-x11-2.0.so" ++#define gtk_entry_set_alignment_LIB "libgtk-x11-2.0.so" ++#define gdk_draw_pixbuf_LIB "libgdk-x11-2.0.so" ++#define gdk_screen_get_default_LIB "libgdk-x11-2.0.so" ++#define gdk_screen_get_monitor_at_window_LIB "libgdk-x11-2.0.so" ++#define gdk_screen_get_monitor_geometry_LIB "libgdk-x11-2.0.so" ++#define gdk_screen_get_n_monitors_LIB "libgdk-x11-2.0.so" ++#define gdk_screen_get_number_LIB "libgdk-x11-2.0.so" ++#define gdk_window_set_keep_above_LIB "libgdk-x11-2.0.so" ++#define gdk_window_set_accept_focus_LIB "libgdk-x11-2.0.so" + + /* Field accessors */ + #define GTK_ACCEL_LABEL_SET_ACCEL_STRING(arg0, arg1) (arg0)->accel_string = arg1 diff --git a/java/eclipse-devel/files/manualpatch-plugins-swt-motif-build.sh b/java/eclipse-devel/files/manualpatch-plugins-swt-motif-build.sh new file mode 100644 index 000000000000..bfc5582b1349 --- /dev/null +++ b/java/eclipse-devel/files/manualpatch-plugins-swt-motif-build.sh @@ -0,0 +1,21 @@ +--- plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/build.sh Fri Apr 1 13:55:27 2005 ++++ ../files/plugins-swt-motif-build.sh Sun Apr 3 16:38:13 2005 +@@ -57,6 +57,18 @@ + echo "Building Linux motif x86 version of SWT" + esac + ;; ++ "FreeBSD") ++ case $MODEL in ++ i?86) ++ OUTPUT_DIR=../../../org.eclipse.swt.motif/os/freebsd/x86 ++ makefile="make_freebsd.mak" ++ echo "Building FreeBSD motif x86 version of SWT" ++ ;; ++ *) ++ echo "*** Unknown MODEL <${MODEL}>" ++ ;; ++ esac ++ ;; + "SunOS") + case $MODEL in + *) diff --git a/java/eclipse-devel/files/manualpatch-plugins-swt-motif-make_freebsd.mak b/java/eclipse-devel/files/manualpatch-plugins-swt-motif-make_freebsd.mak new file mode 100644 index 000000000000..24d68e89db03 --- /dev/null +++ b/java/eclipse-devel/files/manualpatch-plugins-swt-motif-make_freebsd.mak @@ -0,0 +1,73 @@ +--- plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/make_linux.mak.orig Fri Apr 1 13:57:23 2005 ++++ plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/make_linux.mak Sat Apr 9 14:20:28 2005 +@@ -26,32 +26,32 @@ + 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/lib -L/usr/X11R6/lib \ +- -rpath . -x -shared -lX11 -lm -lXext -lXt -lXp -ldl -lXinerama -lXtst ++SWT_LIBS = -L$(MOTIF_HOME)/lib -lXm -L$(PREFIX)/lib -L$(X11BASE)/lib \ ++ -rpath . -x -shared -lX11 -lm -lXext -lXt -lXp -lXinerama + + # Uncomment for Native Stats tool + #NATIVE_STATS = -DNATIVE_STATS + +-CFLAGS = -O -s -Wall -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -DLINUX -DMOTIF -fpic -I./ \ +- -I$(JAVA_HOME)/include -I$(MOTIF_HOME)/include -I/usr/X11R6/include ++CFLAGS = -O -g -s -Wall -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -DFREEBSD -DMOTIF -fpic -fPIC -I./ \ ++ -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -I$(MOTIF_HOME)/include -I$(X11BASE)/include -I$(PREFIX)/include + + # Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0) + 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 = -O -Wall -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -DLINUX -DGTK -I$(JAVA_HOME)/include `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` ++GNOME_CFLAGS = -O -g -Wall -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -DFREEBSD -DGTK -fpic -fPIC -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` + GNOME_LIBS = -shared -fpic -fPIC `pkg-config --libs-only-L gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` -lgnomevfs-2 -lgnome-2 -lgnomeui-2 + + KDE_PREFIX = swt-kde + KDE_LIB = lib$(KDE_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so + KDE_OBJS = swt.o kde.o kde_stats.o +-KDE_LIBS = -L/usr/lib -L$(QT_HOME)/lib -shared -lkdecore -lqt -lkparts +-KDE_CFLAGS = -fno-rtti -c -O -I/usr/include/kde -I$(QT_HOME)/include -I$(JAVA_HOME)/include ++KDE_LIBS = -L$(PREFIX)/lib -L$(QT_HOME)/lib -shared -lkdecore -lqt -lkparts ++KDE_CFLAGS = -fno-rtti -c -O -I/usr/include/kde -I$(QT_HOME)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd + + 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/bin -ljawt -shared ++AWT_LIBS = -L$(JAVA_HOME)/jre/lib/$(MACHINE_ARCH) -ljawt -shared + + GTK_PREFIX = swt-gtk + GTK_LIB = lib$(GTK_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so +@@ -59,7 +59,7 @@ + GTK_CFLAGS = `pkg-config --cflags gtk+-2.0` + GTK_LIBS = -x -shared `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 + +-all: make_swt make_awt make_gnome make_gtk make_kde ++all: make_swt make_awt $(MAKE_GNOME) make_gtk + + make_swt: $(SWT_LIB) + +@@ -80,16 +80,16 @@ + make_gnome: $(GNOME_LIB) + + $(GNOME_LIB): $(GNOME_OBJECTS) +- gcc -o $@ $(GNOME_OBJECTS) $(GNOME_LIBS) ++ $(CC) -o $@ $(GNOME_OBJECTS) $(GNOME_LIBS) + + gnome.o: gnome.c +- gcc $(GNOME_CFLAGS) -c -o gnome.o gnome.c ++ $(CC) $(GNOME_CFLAGS) -c -o gnome.o gnome.c + + gnome_structs.o: gnome_structs.c +- gcc $(GNOME_CFLAGS) -c -o gnome_structs.o gnome_structs.c ++ $(CC) $(GNOME_CFLAGS) -c -o gnome_structs.o gnome_structs.c + + gnome_stats.o: gnome_stats.c +- gcc $(GNOME_CFLAGS) -c -o gnome_stats.o gnome_stats.c ++ $(CC) $(GNOME_CFLAGS) -c -o gnome_stats.o gnome_stats.c + + make_kde: $(KDE_LIB) + diff --git a/java/eclipse-devel/files/patch-assemble b/java/eclipse-devel/files/patch-assemble new file mode 100644 index 000000000000..6226a7416af8 --- /dev/null +++ b/java/eclipse-devel/files/patch-assemble @@ -0,0 +1,39 @@ +--- assemble.org.eclipse.sdk.freebsd.motif.x86.xml~ Sat Apr 9 14:40:56 2005 ++++ assemble.org.eclipse.sdk.freebsd.motif.x86.xml Sat Apr 9 15:05:35 2005 +@@ -419,10 +419,5 @@ + </exec> + <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/> + <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/> +- <exec executable="rm"> +- <arg line="-rf"/> +- <arg line="${assemblyTempDir}"/> +- </exec> +- <delete dir="${assemblyTempDir}"/> + </target> + </project> +--- assemble.org.eclipse.sdk.freebsd.gtk.x86.xml~ Sat Apr 9 14:40:56 2005 ++++ assemble.org.eclipse.sdk.freebsd.gtk.x86.xml Sat Apr 9 15:05:42 2005 +@@ -419,10 +419,5 @@ + </exec> + <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/> + <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/> +- <exec executable="rm"> +- <arg line="-rf"/> +- <arg line="${assemblyTempDir}"/> +- </exec> +- <delete dir="${assemblyTempDir}"/> + </target> + </project> +--- assemble.org.eclipse.sdk.freebsd.gtk.amd64.xml~ Sat Apr 9 14:40:56 2005 ++++ assemble.org.eclipse.sdk.freebsd.gtk.amd64.xml Sat Apr 9 15:04:59 2005 +@@ -419,10 +419,5 @@ + </exec> + <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/> + <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/> +- <exec executable="rm"> +- <arg line="-rf"/> +- <arg line="${assemblyTempDir}"/> +- </exec> +- <delete dir="${assemblyTempDir}"/> + </target> + </project> diff --git a/java/eclipse-devel/files/patch-browser-src-ExternalBrowserInstance.java b/java/eclipse-devel/files/patch-browser-src-ExternalBrowserInstance.java new file mode 100644 index 000000000000..7cf29b859995 --- /dev/null +++ b/java/eclipse-devel/files/patch-browser-src-ExternalBrowserInstance.java @@ -0,0 +1,13 @@ +--- plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java.orig Sun Apr 3 15:44:23 2005 ++++ plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/ExternalBrowserInstance.java Sun Apr 3 15:44:47 2005 + +@@ -74,7 +74,7 @@ + public void run() { + try { + process.waitFor(); +- DefaultBrowserSupport.getInstance().removeBrowser(getId()); ++ DefaultBrowserSupport.getInstance().removeBrowser(ExternalBrowserInstance.this.getId()); + } catch (Exception e) { + // ignore + } + diff --git a/java/eclipse-devel/files/patch-build b/java/eclipse-devel/files/patch-build new file mode 100644 index 000000000000..0b3ac7f120a0 --- /dev/null +++ b/java/eclipse-devel/files/patch-build @@ -0,0 +1,11 @@ +--- build.orig Fri Apr 1 13:58:26 2005 ++++ build Sun Apr 3 23:33:46 2005 +@@ -52,7 +52,7 @@ + exit 1 + fi + +-if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] || [ "$os-$ws-$arch" = "linux-gtk-ia64" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-PA_RISC" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ] || [ "$os-$ws-$arch" = "win32-win32-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] || [ "$os-$ws-$arch" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64" ] ++if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] || [ "$os-$ws-$arch" = "linux-gtk-ia64" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-PA_RISC" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ] || [ "$os-$ws-$arch" = "win32-win32-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] || [ "$os-$ws-$arch" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64" ] || [ "$os-$ws-$arch" = "freebsd-gtk-x86" ] || [ "$os-$ws-$arch" = "freebsd-motif-x86" ] || [ "$os-$ws-$arch" = "freebsd-gtk-amd64" ] + then + ORIGCLASSPATH=$CLASSPATH;export ORIGCLASSPATH + ant -q -buildfile jdtcoresrc/compilejdtcorewithjavac.xml diff --git a/java/eclipse-devel/files/patch-build.xml b/java/eclipse-devel/files/patch-build.xml new file mode 100644 index 000000000000..a2419ca04c7b --- /dev/null +++ b/java/eclipse-devel/files/patch-build.xml @@ -0,0 +1,41 @@ +--- build.xml.orig Fri Apr 1 13:58:26 2005 ++++ build.xml Sat Apr 9 17:03:28 2005 +@@ -48,17 +48,20 @@ + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-ppc64"/> + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-ia64"/> + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-x86_64"/> ++ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="freebsd-gtk-amd64"/> + </or> + </condition> + <condition property="wsType" value="gtk"> + <or> + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-ppc"/> + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-x86"/> ++ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="freebsd-gtk-x86"/> + </or> + </condition> + <condition property="wsType" value="motif"> + <or> + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-motif-x86"/> ++ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="freebsd-motif-x86"/> + <equals arg1="${installOs}-${installWs}-${installArch}" arg2="hpux-motif-ia64"/> + </or> + </condition> +@@ -82,12 +85,12 @@ + <!--unzip launcher --> + <property name="launcherlibs" value="${buildDirectory}/launchertmp"/> + <mkdir dir="${launcherlibs}"/> +- <unzip dest="${launcherlibs}"> +- <fileset dir="${buildDirectory}/plugins/org.eclipse.platform.source/src/"> +- <include name ="org.eclipse.platform_*/launchersrc.zip"/> ++ <copy todir="${launcherlibs}"> ++ <fileset dir="${buildDirectory}/features/org.eclipse.launchers"> ++ <include name ="**"/> + </fileset> +- </unzip> +- <exec dir="${launcherlibs}/library/${installWs}/" executable="sh" os="Linux" failonerror="true"> ++ </copy> ++ <exec dir="${launcherlibs}/library/${installWs}/" executable="sh" os="FreeBSD" failonerror="true"> + <arg line="build.sh"/> + </exec> + <move file="${launcherlibs}/library/${installWs}/eclipse" todir="${launcherlibs}/"/> diff --git a/java/eclipse-devel/files/patch-features-jdt-build.xml b/java/eclipse-devel/files/patch-features-jdt-build.xml new file mode 100644 index 000000000000..34f2074cc7b1 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-jdt-build.xml @@ -0,0 +1,27 @@ +--- features/org.eclipse.jdt/build.xml.orig Sat Feb 19 12:09:29 2005 ++++ features/org.eclipse.jdt/build.xml Sat Mar 26 18:30:33 2005 +@@ -179,6 +179,24 @@ + <fileset dir="${basedir}/rootfiles" includes="**" /> + </copy> + </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true"> ++ <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-devel/files/patch-features-jdt-source-build.xml b/java/eclipse-devel/files/patch-features-jdt-source-build.xml new file mode 100644 index 000000000000..28af8014b52f --- /dev/null +++ b/java/eclipse-devel/files/patch-features-jdt-source-build.xml @@ -0,0 +1,15 @@ +--- features/org.eclipse.jdt.source/build.xml.orig Sat Feb 19 12:09:34 2005 ++++ features/org.eclipse.jdt.source/build.xml Sat Mar 26 18:31:36 2005 +@@ -96,6 +96,12 @@ + </target> + <target name="rootFileslinux_motif_x86"> + </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + </target> + <target name="rootFilessolaris_gtk_sparc"> diff --git a/java/eclipse-devel/files/patch-features-launchers-gtk-build.sh b/java/eclipse-devel/files/patch-features-launchers-gtk-build.sh new file mode 100644 index 000000000000..64ddeff2cf81 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-launchers-gtk-build.sh @@ -0,0 +1,41 @@ +--- features/org.eclipse.launchers/library/gtk/build.sh.orig Fri Apr 1 13:57:19 2005 ++++ features/org.eclipse.launchers/library/gtk/build.sh Sun Apr 3 11:37:51 2005 +@@ -67,6 +67,23 @@ + ;; + esac + ;; ++ "FreeBSD") ++ makefile="make_freebsd.mak" ++ defaultOS="freebsd" ++ case $MODEL in ++ amd64) ++ defaultOSArch="amd64" ++ OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch" ++ ;; ++ i?86) ++ defaultOSArch="x86" ++ OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch" ++ ;; ++ *) ++ echo "*** Unknown MODEL <${MODEL}>" ++ ;; ++ esac ++ ;; + "SunOS") + makefile="make_solaris.mak" + defaultOS="solaris" +@@ -112,11 +129,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 + fi + else + echo "Unknown OS ($OS) -- build aborted" diff --git a/java/eclipse-devel/files/patch-features-launchers-gtk-make_freebsd.mak b/java/eclipse-devel/files/patch-features-launchers-gtk-make_freebsd.mak new file mode 100644 index 000000000000..ad80cd3542ee --- /dev/null +++ b/java/eclipse-devel/files/patch-features-launchers-gtk-make_freebsd.mak @@ -0,0 +1,11 @@ +--- features/org.eclipse.launchers/library/gtk/make_freebsd.mak.orig Sun Apr 17 20:24:58 2005 ++++ features/org.eclipse.launchers/library/gtk/make_freebsd.mak Sun Apr 17 20:25:45 2005 +@@ -26,7 +26,7 @@ + CC=gcc + OBJS = eclipse.o eclipseUtil.o eclipseShm.o eclipseConfig.o eclipseGtk.o + EXEC = $(PROGRAM_OUTPUT) +-LIBS = `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgdk-x11-2.0 ++LIBS = `pkg-config --libs gtk+-2.0` + CFLAGS = -O -s \ + -fpic \ + -DMOZILLA_FIX \ diff --git a/java/eclipse-devel/files/patch-features-launchers-library-eclipseShm.c b/java/eclipse-devel/files/patch-features-launchers-library-eclipseShm.c new file mode 100644 index 000000000000..735606309168 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-launchers-library-eclipseShm.c @@ -0,0 +1,17 @@ +--- features/org.eclipse.launchers/library/eclipseShm.c.orig Fri Apr 1 13:55:58 2005 ++++ features/org.eclipse.launchers/library/eclipseShm.c Sun Apr 3 11:34:02 2005 +@@ -182,11 +182,13 @@ + + #else /* Unix like platforms */ + ++#include <machine/param.h> ++#include <sys/types.h> ++#include <sys/ipc.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-devel/files/patch-features-launchers-motif-build.sh b/java/eclipse-devel/files/patch-features-launchers-motif-build.sh new file mode 100644 index 000000000000..ffa0d5301234 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-launchers-motif-build.sh @@ -0,0 +1,33 @@ +--- features/org.eclipse.launchers/library/motif/build.sh~ Sat Feb 19 12:13:49 2005 ++++ features/org.eclipse.launchers/library/motif/build.sh Sun Mar 20 15:27:04 2005 +@@ -55,6 +55,15 @@ + MOTIF_HOME=/bluebird/teamswt/swt-builddir/motif21 + OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch" + ;; ++ "FreeBSD") ++ makefile="make_freebsd.mak" ++ defaultOS="freebsd" ++ defaultOSArch="x86" ++ defaultWS="motif" ++ X11_HOME=$X11BASE ++ MOTIF_HOME=$X11BASE ++ OUTPUT_DIR="../../bin/$defaultWS/$defaultOS/$defaultOSArch" ++ ;; + "SunOS") + makefile="make_solaris.mak" + defaultOS="solaris" +@@ -122,11 +131,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 + fi + else + echo "Unknown OS ($OS) -- build aborted" diff --git a/java/eclipse-devel/files/patch-features-pde-build.xml b/java/eclipse-devel/files/patch-features-pde-build.xml new file mode 100644 index 000000000000..9e18780543c7 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-pde-build.xml @@ -0,0 +1,15 @@ +--- features/org.eclipse.pde/build.xml.orig Sat Feb 19 12:09:30 2005 ++++ features/org.eclipse.pde/build.xml Sat Mar 26 18:33:49 2005 +@@ -116,6 +116,12 @@ + </target> + <target name="rootFileslinux_motif_x86"> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + </target> + <target name="rootFilessolaris_gtk_sparc"> diff --git a/java/eclipse-devel/files/patch-features-pde-source-build.xml b/java/eclipse-devel/files/patch-features-pde-source-build.xml new file mode 100644 index 000000000000..7318f68c0dee --- /dev/null +++ b/java/eclipse-devel/files/patch-features-pde-source-build.xml @@ -0,0 +1,15 @@ +--- features/org.eclipse.pde.source/build.xml.orig Sat Feb 19 12:09:29 2005 ++++ features/org.eclipse.pde.source/build.xml Sat Mar 26 18:34:22 2005 +@@ -86,6 +86,12 @@ + </target> + <target name="rootFileslinux_motif_x86"> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> + <target name="rootFilessolaris_motif_sparc"> + </target> + <target name="rootFilessolaris_gtk_sparc"> diff --git a/java/eclipse-devel/files/patch-features-platform-build.xml b/java/eclipse-devel/files/patch-features-platform-build.xml new file mode 100644 index 000000000000..62ac0573f2bd --- /dev/null +++ b/java/eclipse-devel/files/patch-features-platform-build.xml @@ -0,0 +1,127 @@ +--- features/org.eclipse.platform/build.xml.orig Fri Apr 1 13:54:42 2005 ++++ features/org.eclipse.platform/build.xml Sat Apr 2 13:43:10 2005 +@@ -44,6 +44,16 @@ + </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="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="gtk"/> + </ant> +@@ -63,6 +73,11 @@ + <property name="ws" value="gtk"/> + </ant> + <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk64" target="${target}"> ++ <property name="arch" value="amd64"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="gtk"/> ++ </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk64" target="${target}"> + <property name="arch" value="ia64"/> + <property name="os" value="linux"/> + <property name="ws" value="gtk"/> +@@ -182,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"/> +@@ -222,6 +242,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"/> +@@ -449,7 +474,7 @@ + <copy todir="${feature.base}/features/org.eclipse.platform_3.1.0" failonerror="true"> + <fileset dir="${basedir}" includes="epl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html" /> + </copy> +- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.1.0/feature.xml" selfVersion="3.1.0" featureIds="" pluginIds="org.apache.ant,1.6.2,org.apache.lucene,1.4.3,org.eclipse.ant.core,3.1.0,org.eclipse.compare,3.1.0,org.eclipse.core.boot,3.0.0,org.eclipse.core.commands,3.1.0,org.eclipse.core.filebuffers,3.1.0,org.eclipse.core.expressions,3.1.0,org.eclipse.core.resources,3.1.0,org.eclipse.core.resources.compatibility,3.1.0,org.eclipse.core.runtime,3.1.0,org.eclipse.core.runtime.compatibility,3.1.0,org.eclipse.osgi,3.1.0,org.eclipse.osgi.services,3.0.0,org.eclipse.osgi.util,3.0.0,org.eclipse.core.variables,3.1.0,org.eclipse.debug.core,3.1.0,org.eclipse.debug.ui,3.1.0,org.eclipse.help,3.1.0,org.eclipse.help.webapp,3.1.0,org.eclipse.help.base,3.1.0,org.eclipse.help.ui,3.1.0,org.eclipse.help.appserver,3.1.0,org.eclipse.platform,3.1.0,org.eclipse.platform.doc.user,3.1.0,org.eclipse.search,3.1.0,org.eclipse.swt,3.1.0,org.eclipse.team.core,3.1.0,org.eclipse.team.cvs.core,3.1.0,org.eclipse.team.cvs.ssh,3.1.0,org.eclipse.team.cvs.ssh2,3.1.0,org.eclipse.team.cvs.ui,3.1.0,org.eclipse.team.ui,3.1.0,org.eclipse.tomcat,4.1.30.1,org.eclipse.text,3.1.0,org.eclipse.jface,3.1.0,org.eclipse.jface.text,3.1.0,org.eclipse.ui.console,3.1.0,org.eclipse.ui.presentations.r21,3.1.0,org.eclipse.ui.intro,3.1.0,org.eclipse.ui.cheatsheets,3.0.0,org.eclipse.ui.browser,3.1.0,org.eclipse.ui.workbench,3.1.0,org.eclipse.ui.workbench.texteditor,3.1.0,org.eclipse.ui.views,3.1.0,org.eclipse.ui.editors,3.1.0,org.eclipse.ui.forms,3.1.0,org.eclipse.ui,3.1.0,org.eclipse.ui.externaltools,3.1.0,org.eclipse.ui.ide,3.1.0,org.eclipse.update.configurator,3.1.0,org.eclipse.update.core,3.1.0,org.eclipse.update.scheduler,3.1.0,org.eclipse.update.ui,3.1.0,org.eclipse.ui.workbench.compatibility,3.1.0,org.eclipse.swt.motif,3.1.0,org.eclipse.swt.motif,3.1.0,org.eclipse.core.resources.hpux,3.0.0,org.eclipse.swt.gtk,3.1.0,org.eclipse.swt.gtk,3.1.0,org.eclipse.core.resources.linux,3.0.0,org.eclipse.update.core.linux,3.1.0,org.eclipse.swt.gtk64,3.1.0,org.eclipse.swt.gtk64,3.1.0,org.eclipse.swt.gtk64,3.1.0,org.eclipse.swt.motif,3.1.0,org.eclipse.swt.carbon,3.1.0,org.eclipse.core.resources.macosx,3.0.0,org.eclipse.ui.carbon,3.1.0,org.eclipse.swt.photon,3.1.0,org.eclipse.core.resources.qnx,3.0.0,org.eclipse.swt.motif,3.1.0,org.eclipse.swt.gtk,3.1.0,org.eclipse.swt.win32,3.1.0,org.eclipse.core.resources.win32,3.0.0,org.eclipse.ui.win32,3.1.0,org.eclipse.update.core.win32,3.1.0,"/> ++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.1.0/feature.xml" selfVersion="3.1.0" featureIds="" pluginIds="org.apache.ant,1.6.2,org.apache.lucene,1.4.3,org.eclipse.ant.core,3.1.0,org.eclipse.compare,3.1.0,org.eclipse.core.boot,3.0.0,org.eclipse.core.commands,3.1.0,org.eclipse.core.filebuffers,3.1.0,org.eclipse.core.expressions,3.1.0,org.eclipse.core.resources,3.1.0,org.eclipse.core.resources.compatibility,3.1.0,org.eclipse.core.runtime,3.1.0,org.eclipse.core.runtime.compatibility,3.1.0,org.eclipse.osgi,3.1.0,org.eclipse.osgi.services,3.0.0,org.eclipse.osgi.util,3.0.0,org.eclipse.core.variables,3.1.0,org.eclipse.debug.core,3.1.0,org.eclipse.debug.ui,3.1.0,org.eclipse.help,3.1.0,org.eclipse.help.webapp,3.1.0,org.eclipse.help.base,3.1.0,org.eclipse.help.ui,3.1.0,org.eclipse.help.appserver,3.1.0,org.eclipse.platform,3.1.0,org.eclipse.platform.doc.user,3.1.0,org.eclipse.search,3.1.0,org.eclipse.swt,3.1.0,org.eclipse.team.core,3.1.0,org.eclipse.team.cvs.core,3.1.0,org.eclipse.team.cvs.ssh,3.1.0,org.eclipse.team.cvs.ssh2,3.1.0,org.eclipse.team.cvs.ui,3.1.0,org.eclipse.team.ui,3.1.0,org.eclipse.tomcat,4.1.30.1,org.eclipse.text,3.1.0,org.eclipse.jface,3.1.0,org.eclipse.jface.text,3.1.0,org.eclipse.ui.console,3.1.0,org.eclipse.ui.presentations.r21,3.1.0,org.eclipse.ui.intro,3.1.0,org.eclipse.ui.cheatsheets,3.0.0,org.eclipse.ui.browser,3.1.0,org.eclipse.ui.workbench,3.1.0,org.eclipse.ui.workbench.texteditor,3.1.0,org.eclipse.ui.views,3.1.0,org.eclipse.ui.editors,3.1.0,org.eclipse.ui.forms,3.1.0,org.eclipse.ui,3.1.0,org.eclipse.ui.externaltools,3.1.0,org.eclipse.ui.ide,3.1.0,org.eclipse.update.configurator,3.1.0,org.eclipse.update.core,3.1.0,org.eclipse.update.scheduler,3.1.0,org.eclipse.update.ui,3.1.0,org.eclipse.ui.workbench.compatibility,3.1.0,org.eclipse.swt.motif,3.1.0,org.eclipse.swt.motif,3.1.0,org.eclipse.core.resources.hpux,3.0.0,org.eclipse.swt.gtk,3.1.0,org.eclipse.swt.gtk,3.1.0,org.eclipse.core.resources.linux,3.0.0,org.eclipse.core.resources.freebsd,3.0.0,org.eclipse.update.core.linux,3.1.0,org.eclipse.update.core.freebsd,3.1.0,org.eclipse.swt.gtk64,3.1.0,org.eclipse.swt.gtk64,3.1.0,org.eclipse.swt.gtk64,3.1.0,org.eclipse.swt.motif,3.1.0,org.eclipse.swt.carbon,3.1.0,org.eclipse.core.resources.macosx,3.0.0,org.eclipse.ui.carbon,3.1.0,org.eclipse.swt.photon,3.1.0,org.eclipse.core.resources.qnx,3.0.0,org.eclipse.swt.motif,3.1.0,org.eclipse.swt.gtk,3.1.0,org.eclipse.swt.win32,3.1.0,org.eclipse.core.resources.win32,3.0.0,org.eclipse.ui.win32,3.1.0,org.eclipse.update.core.win32,3.1.0,"/> + <antcall target="rootFiles${os}_${ws}_${arch}"/> + </target> + <target name="rootFileswin32_win32_x86"> +@@ -472,6 +497,16 @@ + </copy> + <chmod perm="755" dir="${feature.base}/linux.gtk.x86/${collectingFolder}" includes="eclipse" /> + </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}/../../features/org.eclipse.launchers/bin/gtk/freebsd/x86" includes="**" /> ++ <fileset dir="${basedir}/gtk" includes="**" /> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar" /> ++ </copy> ++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="eclipse" /> ++ </target> + <target name="rootFileslinux_gtk_ppc"> + <mkdir dir="${feature.base}/linux.gtk.ppc/${collectingFolder}"/> + <copy todir="${feature.base}/linux.gtk.ppc/${collectingFolder}" failonerror="true"> +@@ -512,6 +547,16 @@ + </copy> + <chmod perm="755" dir="${feature.base}/linux.gtk.x86_64/${collectingFolder}" includes="eclipse" /> + </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/> ++ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true"> ++ <fileset dir="${basedir}/../../features/org.eclipse.launchers/bin/gtk/freebsd/amd64" includes="**" /> ++ <fileset dir="${basedir}/gtk" includes="**" /> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar" /> ++ </copy> ++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="eclipse" /> ++ </target> + <target name="rootFileslinux_motif_x86"> + <mkdir dir="${feature.base}/linux.motif.x86/${collectingFolder}"/> + <copy todir="${feature.base}/linux.motif.x86/${collectingFolder}" failonerror="true"> +@@ -523,6 +568,28 @@ + </copy> + <chmod perm="755" dir="${feature.base}/linux.motif.x86/${collectingFolder}" includes="eclipse" /> + <chmod perm="755" dir="${feature.base}/linux.motif.x86/${collectingFolder}" includes="*.so*" /> ++ </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}/../../features/org.eclipse.launchers/bin/motif/freebsd/x86" includes="**" /> ++ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.motif/os/freebsd/x86" includes="libXm.so.2.1" /> ++ <fileset dir="${basedir}/motif" includes="**" /> ++ <fileset dir="${basedir}/rootfiles" includes="**" /> ++ <fileset dir="${basedir}/../../plugins/org.eclipse.platform" includes="startup.jar" /> ++ </copy> ++ <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> ++ <chmod perm="755" dir="${feature.base}/freebsd.motif.x86/${collectingFolder}" includes="*.so*" /> + </target> + <target name="rootFilessolaris_motif_sparc"> + <mkdir dir="${feature.base}/solaris.motif.sparc/${collectingFolder}"/> diff --git a/java/eclipse-devel/files/patch-features-platform-source-build.xml b/java/eclipse-devel/files/patch-features-platform-source-build.xml new file mode 100644 index 000000000000..143ff8f73e79 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-platform-source-build.xml @@ -0,0 +1,61 @@ +--- features/org.eclipse.platform.source/build.xml.orig Fri Apr 1 13:54:41 2005 ++++ features/org.eclipse.platform.source/build.xml Sat Apr 2 14:33:00 2005 +@@ -42,6 +42,11 @@ + <property name="os" value="linux"/> + <property name="ws" value="gtk"/> + </ant> ++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.platform.source.freebsd.gtk.amd64" target="${target}"> ++ <property name="arch" value="amd64"/> ++ <property name="os" value="freebsd"/> ++ <property name="ws" value="gtk"/> ++ </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"/> +@@ -72,6 +77,16 @@ + <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.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.macosx.carbon.ppc" target="${target}"> + <property name="arch" value="ppc"/> + <property name="os" value="macosx"/> +@@ -144,7 +159,7 @@ + <copy todir="${feature.base}/features/org.eclipse.platform.source_3.1.0" failonerror="true"> + <fileset dir="${basedir}" includes="epl-v10.html,eclipse_update_120.jpg,feature.xml,feature.properties,license.html" /> + </copy> +- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.1.0/feature.xml" selfVersion="3.1.0" featureIds="" pluginIds="org.eclipse.platform.doc.isv,3.1.0,org.eclipse.platform.source,3.1.0,org.eclipse.platform.source.linux.gtk.ia64,3.1.0,org.eclipse.platform.source.qnx.photon.x86,3.1.0,org.eclipse.platform.source.linux.gtk.ppc,3.1.0,org.eclipse.platform.source.hpux.motif.PA_RISC,3.1.0,org.eclipse.platform.source.hpux.motif.ia64,3.1.0,org.eclipse.platform.source.linux.gtk.x86_64,3.1.0,org.eclipse.platform.source.linux.gtk.ppc64,3.1.0,org.eclipse.platform.source.solaris.gtk.sparc,3.1.0,org.eclipse.platform.source.macosx.carbon.ppc,3.1.0,org.eclipse.platform.source.linux.gtk.x86,3.1.0,org.eclipse.platform.source.aix.motif.ppc,3.1.0,org.eclipse.platform.source.win32.win32.x86,3.1.0,org.eclipse.platform.source.solaris.motif.sparc,3.1.0,org.eclipse.platform.source.linux.motif.x86,3.1.0,"/> ++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.1.0/feature.xml" selfVersion="3.1.0" featureIds="" pluginIds="org.eclipse.platform.doc.isv,3.1.0,org.eclipse.platform.source,3.1.0,org.eclipse.platform.source.linux.gtk.ia64,3.1.0,org.eclipse.platform.source.qnx.photon.x86,3.1.0,org.eclipse.platform.source.linux.gtk.ppc,3.1.0,org.eclipse.platform.source.hpux.motif.PA_RISC,3.1.0,org.eclipse.platform.source.hpux.motif.ia64,3.1.0,org.eclipse.platform.source.linux.gtk.x86_64,3.1.0,org.eclipse.platform.source.freebsd.gtk.amd64,3.1.0,org.eclipse.platform.source.linux.gtk.ppc64,3.1.0,org.eclipse.platform.source.solaris.gtk.sparc,3.1.0,org.eclipse.platform.source.macosx.carbon.ppc,3.1.0,org.eclipse.platform.source.linux.gtk.x86,3.1.0,org.eclipse.platform.source.freebsd.gtk.x86,3.0.1,org.eclipse.platform.source.aix.motif.ppc,3.1.0,org.eclipse.platform.source.win32.win32.x86,3.1.0,org.eclipse.platform.source.solaris.motif.sparc,3.1.0,org.eclipse.platform.source.linux.motif.x86,3.1.0,org.eclipse.platform.source.freebsd.motif.x86,3.0.1,"/> + <antcall target="rootFiles${os}_${ws}_${arch}"/> + </target> + <target name="rootFileswin32_win32_x86"> +@@ -159,6 +174,8 @@ + </target> + <target name="rootFileslinux_gtk_x86_64"> + </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ </target> + <target name="rootFileslinux_motif_x86"> + </target> + <target name="rootFilessolaris_motif_sparc"> +@@ -175,6 +192,11 @@ + </target> + <target name="rootFilesqnx_photon_x86"> + </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> ++ + + <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: org.eclipse.platform.source."> + <delete dir="${feature.temp.folder}"/> diff --git a/java/eclipse-devel/files/patch-features-platform-source-feature.xml b/java/eclipse-devel/files/patch-features-platform-source-feature.xml new file mode 100644 index 000000000000..39639fecd988 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-platform-source-feature.xml @@ -0,0 +1,17 @@ +--- features/org.eclipse.platform.source/feature.xml.orig Sat Feb 19 12:09:25 2005 ++++ features/org.eclipse.platform.source/feature.xml Sat Mar 26 18:40:15 2005 +@@ -18,11 +18,14 @@ + <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.1.0"/> + <plugin ws="motif" os="hpux" fragment="true" arch="ia64" download-size="0" install-size="0" id="org.eclipse.platform.source.hpux.motif.ia64" version="3.1.0"/> + <plugin ws="gtk" os="linux" fragment="true" arch="x86_64" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.gtk.x86_64" version="3.1.0"/> ++ <plugin ws="gtk" os="freebsd" fragment="true" arch="amd64" download-size="0" install-size="0" id="org.eclipse.platform.source.freebsd.gtk.amd64" version="3.1.0"/> + <plugin ws="gtk" os="linux" fragment="true" arch="ppc64" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.gtk.ppc64" version="3.1.0"/> + <plugin ws="gtk" os="solaris" fragment="true" arch="sparc" download-size="0" install-size="0" id="org.eclipse.platform.source.solaris.gtk.sparc" version="3.1.0"/> + <plugin ws="carbon" os="macosx" fragment="true" arch="ppc" download-size="0" install-size="0" id="org.eclipse.platform.source.macosx.carbon.ppc" version="3.1.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.1.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.1.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.1"/> ++ <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.1"/> + <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.1.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.1.0"/> + <plugin ws="motif" os="linux" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.motif.x86" version="3.1.0"/> diff --git a/java/eclipse-devel/files/patch-features-sdk-build.xml b/java/eclipse-devel/files/patch-features-sdk-build.xml new file mode 100644 index 000000000000..2217569febc1 --- /dev/null +++ b/java/eclipse-devel/files/patch-features-sdk-build.xml @@ -0,0 +1,15 @@ +--- features/org.eclipse.sdk/build.xml.orig Sat Feb 19 12:09:35 2005 ++++ features/org.eclipse.sdk/build.xml Sat Mar 26 18:40:52 2005 +@@ -90,6 +90,12 @@ + </target> + <target name="rootFileslinux_gtk_x86_64"> + </target> ++ <target name="rootFilesfreebsd_gtk_amd64"> ++ </target> ++ <target name="rootFilesfreebsd_gtk_x86"> ++ </target> ++ <target name="rootFilesfreebsd_motif_x86"> ++ </target> + <target name="rootFileslinux_motif_x86"> + </target> + <target name="rootFilessolaris_motif_sparc"> diff --git a/java/eclipse-devel/files/patch-plugins-swt-gtk-build.xml b/java/eclipse-devel/files/patch-plugins-swt-gtk-build.xml new file mode 100644 index 000000000000..0ccbb4cba94b --- /dev/null +++ b/java/eclipse-devel/files/patch-plugins-swt-gtk-build.xml @@ -0,0 +1,11 @@ +--- 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=""/> diff --git a/java/eclipse-devel/files/patch-plugins-swt-gtk64-build.xml b/java/eclipse-devel/files/patch-plugins-swt-gtk64-build.xml new file mode 100644 index 000000000000..c5a5da0cfd57 --- /dev/null +++ b/java/eclipse-devel/files/patch-plugins-swt-gtk64-build.xml @@ -0,0 +1,15 @@ +--- plugins/org.eclipse.swt.gtk64/build.xml.orig Fri Apr 1 13:54:42 2005 ++++ plugins/org.eclipse.swt.gtk64/build.xml Mon Apr 4 00:11:23 2005 +@@ -11,9 +11,9 @@ + <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="ws" value="gtk"/> +- <property name="arch" value="x86_64"/> ++ <property name="os" value="${os}"/> ++ <property name="ws" value="${ws}"/> ++ <property name="arch" value="${arch}"/> + <property name="bootclasspath" value=""/> + <property name="toolsplugindir" value="../org.eclipse.swt.tools"/> + </target> diff --git a/java/eclipse-devel/files/patch-plugins-update-src-build.xml b/java/eclipse-devel/files/patch-plugins-update-src-build.xml new file mode 100644 index 000000000000..1fa5cb7ccbd2 --- /dev/null +++ b/java/eclipse-devel/files/patch-plugins-update-src-build.xml @@ -0,0 +1,31 @@ +--- plugins/org.eclipse.update.core.freebsd/src/build.xml Sat Apr 9 14:03:21 2005 ++++ ../files/plugins-update-src-build.xml Tue Feb 15 23:41:47 2005 +@@ -6,7 +6,7 @@ + <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.freebsd/src/"/> ++ <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 --> +@@ -44,15 +44,16 @@ + <target name="build"> + <echo message="Building ${library-file}"/> + +- <property name="header-path" value="${jdk-path}/../include"/> ++ <property name="header-path" value="${jdk-path}/include"/> + <property name="header-freebsd-path" value="${header-path}/freebsd" /> + +- <echo message="gcc -o ${library-file} -shared -I${src-path} -I${header-freebsd-path} ${library-file} -static -lc"/> ++ <echo message="${CC} -o ${library-file} -shared -fPIC -I${src-path} -I${header-path} -I${header-freebsd-path} ${library-file} -static -lc"/> + +- <apply executable="gcc" dest="${eclipse-home}/" parallel="false"> ++ <apply executable="${CC}" dest="${eclipse-home}/" parallel="false"> + <arg value="-o"/> + <arg value="${library-file}"/> + <arg value="-shared"/> ++ <arg value="-fPIC"/> + <arg value="-I${src-path}"/> + <arg value="-I${header-path}"/> + <arg value="-I${header-freebsd-path}"/> diff --git a/java/eclipse-devel/files/patch-plugins-update-src-update.c b/java/eclipse-devel/files/patch-plugins-update-src-update.c new file mode 100644 index 000000000000..532fbdb5758e --- /dev/null +++ b/java/eclipse-devel/files/patch-plugins-update-src-update.c @@ -0,0 +1,18 @@ +--- plugins/org.eclipse.update.core.linux/src/update.c.orig Thu Sep 16 08:48:27 2004 ++++ plugins/org.eclipse.update.core.linux/src/update.c Fri Feb 18 20:27:34 2005 +@@ -10,8 +10,15 @@ + *******************************************************************************/
+
+ # include <sys/types.h>
++#ifdef __FreeBSD__ ++# include <stdlib.h> ++# 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-devel/pkg-descr b/java/eclipse-devel/pkg-descr new file mode 100644 index 000000000000..fa504efd8669 --- /dev/null +++ b/java/eclipse-devel/pkg-descr @@ -0,0 +1,8 @@ +The Eclipse Platform is an open extensible IDE for anything and yet +nothing in particular. The Eclipse Platform provides building blocks +and a foundation for constructing and running integrated software- +development tools. The Eclipse Platform allows tool builders to +independently develop tools that integrate with other people's tools +so seamlessly you can't tell where one tool ends and another starts. + +WWW: http://www.eclipse.org/ diff --git a/java/eclipse-devel/scripts/pre-patch b/java/eclipse-devel/scripts/pre-patch new file mode 100644 index 000000000000..f358624ca142 --- /dev/null +++ b/java/eclipse-devel/scripts/pre-patch @@ -0,0 +1,97 @@ +#!/bin/sh +# $FreeBSD$ + +copy_file() +{ + srcfile="$1" + dstfile="$2" + + rm -f $dstfile + cat "$srcfile" | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g' > "$dstfile" +} + +copy_dir() +{ + srcdir="$1" + dstdir="$2" + + rm -rf "$dstdir" + cp -r "$srcdir" "$dstdir" || exit 1 + + if [ -d "$dstdir" ] + then + find "$dstdir" -name \*.so -delete + find "$dstdir" -name \*.so.\* -delete + find "$dstdir" -type f -print0 | \ + xargs -0 sed -i '.bak' 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g' + find "$dstdir" -name \*.bak -delete + fi +} + +prepare_files() +{ + mkdir ${WRKSRC}/features/org.eclipse.launchers/bin/gtk/freebsd + + # Copy the files and rename/change them appropriately + for src in $COPY_LIST + do + dst=`echo $src | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'` + echo Copying $src into $dst + if [ -d ${WRKSRC}/$src ] + then + copy_dir ${WRKSRC}/$src ${WRKSRC}/$dst + else + copy_file ${WRKSRC}/$src ${WRKSRC}/$dst + fi + done + + # Files with spaces in their path... + src="${SWTGTK}/make_linux.mak" + dst=`echo $src | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'` + echo Copying $src into $dst + copy_file "${WRKSRC}/$src" "${WRKSRC}/$dst" + + src="${SWTMOTIF}/make_linux.mak" + dst=`echo $src | sed 's/linux/freebsd/g; s/Linux/FreeBSD/g; s/x86_64/amd64/g'` + echo Copying $src into $dst + copy_file "${WRKSRC}/$src" "${WRKSRC}/$dst" + + find ${WRKSRC} -name \*.so -delete + find ${WRKSRC} -name \*.so.\* -delete +} + +COPY_LIST=" +assemble.org.eclipse.sdk.linux.gtk.x86.xml +assemble.org.eclipse.sdk.linux.gtk.x86_64.xml +assemble.org.eclipse.sdk.linux.motif.x86.xml +features/org.eclipse.launchers/bin/gtk/linux/x86 +features/org.eclipse.launchers/bin/gtk/linux/x86_64 +features/org.eclipse.launchers/bin/motif/linux +features/org.eclipse.launchers/library/gtk/make_linux.mak +features/org.eclipse.launchers/library/motif/make_linux.mak +plugins/org.eclipse.core.resources.linux +plugins/org.eclipse.core.resources.linux/os/linux +plugins/org.eclipse.jdt.source.linux.gtk.x86 +plugins/org.eclipse.jdt.source.linux.gtk.x86_64 +plugins/org.eclipse.jdt.source.linux.motif.x86 +plugins/org.eclipse.jface/src/org/eclipse/jface/resource/jfacefonts_linux.properties +plugins/org.eclipse.jface/src/org/eclipse/jface/resource/jfacefonts_linux_gtk.properties +plugins/org.eclipse.pde.source.linux.gtk.x86 +plugins/org.eclipse.pde.source.linux.gtk.x86_64 +plugins/org.eclipse.pde.source.linux.motif.x86 +plugins/org.eclipse.platform.source.linux.gtk.x86 +plugins/org.eclipse.platform.source.linux.gtk.x86_64 +plugins/org.eclipse.platform.source.linux.motif.x86 +plugins/org.eclipse.swt.gtk/os/linux +plugins/org.eclipse.swt.gtk64/os/linux +plugins/org.eclipse.swt.motif/os/linux +plugins/org.eclipse.swt.motif/os/linux +plugins/org.eclipse.update.core.linux +plugins/org.eclipse.update.core.linux/os/linux +" + +SWTGTK="plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library" +SWTMOTIF="plugins/org.eclipse.swt/Eclipse SWT PI/motif/library" + +prepare_files +exit 0 |