aboutsummaryrefslogtreecommitdiff
path: root/java/eclipse
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2006-11-04 02:06:50 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2006-11-04 02:06:50 +0000
commit7247b8444b4b73aa6377ff52829b6f93b9f1d91f (patch)
tree37b69444d02f24a708e07b15f5fd74d16a42c710 /java/eclipse
parent2073c8ae015cc3f4a65754d5f2b17b63b7f9d290 (diff)
downloadports-7247b8444b4b73aa6377ff52829b6f93b9f1d91f.tar.gz
ports-7247b8444b4b73aa6377ff52829b6f93b9f1d91f.zip
Notes
Diffstat (limited to 'java/eclipse')
-rw-r--r--java/eclipse/Makefile75
-rw-r--r--java/eclipse/distinfo7
-rw-r--r--java/eclipse/files/eclipse.in5
-rw-r--r--java/eclipse/files/manualpatch-plugins-swt-cairo-library2432
-rw-r--r--java/eclipse/files/manualpatch-plugins-swt-gtk-build.sh42
-rw-r--r--java/eclipse/files/manualpatch-plugins-swt-gtk-make_freebsd.mak41
-rw-r--r--java/eclipse/files/manualpatch-plugins-swt-motif-build.sh28
-rw-r--r--java/eclipse/files/manualpatch-plugins-swt-motif-make_freebsd.mak44
-rw-r--r--java/eclipse/files/patch-assemble39
-rw-r--r--java/eclipse/files/patch-assemble-freebsd-amd64.xml23
-rw-r--r--java/eclipse/files/patch-assemble-freebsd-x86.xml22
-rw-r--r--java/eclipse/files/patch-assemble-sdk-all.xml15
-rw-r--r--java/eclipse/files/patch-build17
-rw-r--r--java/eclipse/files/patch-build.bat12
-rw-r--r--java/eclipse/files/patch-build.xml55
-rw-r--r--java/eclipse/files/patch-features-jdt-build.xml49
-rw-r--r--java/eclipse/files/patch-features-jdt-source-build.xml25
-rw-r--r--java/eclipse/files/patch-features-launchers-gtk-build.sh41
-rw-r--r--java/eclipse/files/patch-features-launchers-gtk-make_freebsd.mak11
-rw-r--r--java/eclipse/files/patch-features-launchers-motif-build.sh33
-rw-r--r--java/eclipse/files/patch-features-pde-build.xml25
-rw-r--r--java/eclipse/files/patch-features-pde-source-build.xml25
-rw-r--r--java/eclipse/files/patch-features-plat-launchers-make_freebsd.mak11
-rw-r--r--java/eclipse/files/patch-features-plat-library-eclipseShm.c (renamed from java/eclipse/files/patch-features-launchers-library-eclipseShm.c)4
-rw-r--r--java/eclipse/files/patch-features-platform-build.xml136
-rw-r--r--java/eclipse/files/patch-features-platform-launchers-build.sh26
-rw-r--r--java/eclipse/files/patch-features-platform-source-build.xml73
-rw-r--r--java/eclipse/files/patch-features-platform-source-feature.xml17
-rw-r--r--java/eclipse/files/patch-features-rcp-build.xml127
-rw-r--r--java/eclipse/files/patch-features-rcp-source-build.xml69
-rw-r--r--java/eclipse/files/patch-features-sdk-build.xml41
-rw-r--r--java/eclipse/files/patch-package-freebsd-amd64.xml23
-rw-r--r--java/eclipse/files/patch-package-freebsd-x86.xml23
-rw-r--r--java/eclipse/files/patch-package-sdk-all.xml15
-rw-r--r--java/eclipse/files/patch-plugins-core-build.xml53
-rw-r--r--java/eclipse/files/patch-plugins-core-resources-build.xml24
-rw-r--r--java/eclipse/files/patch-plugins-plat-i-customBuildCallbacks.xml11
-rw-r--r--java/eclipse/files/patch-plugins-plat-u-customBuildCallbacks.xml11
-rw-r--r--java/eclipse/files/patch-plugins-update-src-build.xml31
-rw-r--r--java/eclipse/files/patch-plugins-update-src-update.c15
-rw-r--r--java/eclipse/files/post-patch-plugins-swt-gtk-build.sh83
-rw-r--r--java/eclipse/files/post-patch-plugins-swt-gtk-make_freebsd.mak32
-rw-r--r--java/eclipse/files/post-patch-plugins-swt-gtk-os_custom.h (renamed from java/eclipse/files/manualpatch-plugins-swt-gtk-os_custom.h)50
-rw-r--r--java/eclipse/scripts/pre-patch25
44 files changed, 774 insertions, 3192 deletions
diff --git a/java/eclipse/Makefile b/java/eclipse/Makefile
index 3c818b7d0b4f..a265f04d84ba 100644
--- a/java/eclipse/Makefile
+++ b/java/eclipse/Makefile
@@ -6,28 +6,29 @@
#
PORTNAME= eclipse
-PORTVERSION= 3.1.2
-PORTREVISION= 0
+PORTVERSION= 3.2.1
+#PORTREVISION= 0
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_ECLIPSE}
-MASTER_SITE_SUBDIR= R-${PORTVERSION}-200601181600
+MASTER_SITE_SUBDIR= R-${PORTVERSION}-200609210945
DISTNAME= ${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION}
DIST_SUBDIR= eclipse
-MAINTAINER= freebsd-eclipse@FreeBSD.org
+MAINTAINER= dsledge@appriss.com
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}
ONLY_FOR_ARCHS= i386 amd64
USE_GMAKE= yes
USE_ZIP= yes
-USE_GCC= 3.4
+USE_GCC= 3.4+
USE_JAVA= yes
-JAVA_VERSION= 1.4+
+JAVA_VERSION= 1.5+
JAVA_OS= native
NO_WRKSUBDIR= yes
@@ -36,19 +37,27 @@ 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(WITHOUT_MOZILLA)
+MAKE_MOZILLA= make_mozilla
+.if defined(WITH_MOZILLA) && ${WITH_MOZILLA} != "mozilla"
+BROWSER= ${WITH_MOZILLA}
+BUILD_DEPENDS+= ${BROWSER}:${PORTSDIR}/www/${BROWSER}
+.else
+BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla
+BROWSER= mozilla
+.endif
+.else
+BROWSER=
+MAKE_MOZILLA=
+.endif
.if defined(WITHOUT_CAIRO)
MAKE_CAIRO=
.else
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
MAKE_CAIRO= make_cairo
.endif
-.endif
.if defined(WITHOUT_GNOMEVFS)
MAKE_GNOME=
@@ -68,17 +77,6 @@ ECLIPSE_ARCH= x86
ECLIPSE_SWT= gtk
.endif
-.if !defined(WITHOUT_MOZILLA)
-MAKE_MOZILLA= make_mozilla
-USE_GECKO= firefox mozilla seamonkey xulrunner
-.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
-BROWSER= ${GECKO}
-USE_LDCONFIG= yes
-.else
-BROWSER=
-MAKE_MOZILLA=
-.endif
-
MAKE_ENV+= BROWSER=${BROWSER} \
ECLIPSE_ARCH=${ECLIPSE_ARCH} \
ECLIPSE_OS=${ECLIPSE_OS} \
@@ -87,43 +85,26 @@ MAKE_ENV+= BROWSER=${BROWSER} \
MAKE_GNOME=${MAKE_GNOME} \
MAKE_MOZILLA=${MAKE_MOZILLA} \
MAKE_CAIRO=${MAKE_CAIRO} \
- MACHINE_ARCH=${MACHINE_ARCH} \
- MOTIF_HOME=${X11_HOME} \
- GECKO_CONFIG=${GECKO_CONFIG}
+ MACHINE_ARCH=${MACHINE_ARCH}
PLIST_FILES= bin/eclipse share/applications/eclipse.desktop
SWTCAIRO=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library
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} \
- "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c" \
- ${FILESDIR}/manualpatch-plugins-swt-cairo-library \
- + "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.h" \
- + "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.c" \
- + "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_stats.c" \
- + "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_stats.h" \
- + "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_structs.c" \
- + "plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_structs.h"
-
+ @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/build.sh" ${FILESDIR}/post-patch-plugins-swt-gtk-build.sh
+ @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/make_freebsd.mak" ${FILESDIR}/post-patch-plugins-swt-gtk-make_freebsd.mak
+ @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/os_custom.h" ${FILESDIR}/post-patch-plugins-swt-gtk-os_custom.h
+
do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
- ./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -compilelibs)
+ ./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -java5home ${JAVA_HOME} -compilelibs)
do-install:
@${MKDIR} ${PORTDESTDIR}
- @${TAR} -xzf ${WRKSRC}/result/*.tar.gz -C ${PREFIX}
+ @${CP} -R ${WRKSRC}/eclipse ${PREFIX}
@${SED} \
-e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
-e "s+%%PREFIX%%+${PREFIX}+g" \
diff --git a/java/eclipse/distinfo b/java/eclipse/distinfo
index 8ae795ce941b..f4aced74f712 100644
--- a/java/eclipse/distinfo
+++ b/java/eclipse/distinfo
@@ -1,3 +1,4 @@
-MD5 (eclipse/eclipse-sourceBuild-srcIncluded-3.1.2.zip) = f2c8066151de14c5ccdf420266ce9f39
-SHA256 (eclipse/eclipse-sourceBuild-srcIncluded-3.1.2.zip) = 31233332f205a197a42aafdc4f15a4f38eb5e4be19ac8a7192492ab8a21324a4
-SIZE (eclipse/eclipse-sourceBuild-srcIncluded-3.1.2.zip) = 66630673
+MD5 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 0fe89e9c7cf07a56c4fe8e2d7f5a394b
+SHA256 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 2d6a0628333d068b6ab678c42f925d71df1c003035543830a30e3ee80fb855c7
+SIZE (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 82433420
+
diff --git a/java/eclipse/files/eclipse.in b/java/eclipse/files/eclipse.in
index 91873ea14ba1..588c8815dce5 100644
--- a/java/eclipse/files/eclipse.in
+++ b/java/eclipse/files/eclipse.in
@@ -10,9 +10,8 @@
DEFAULT_JAVA_HOME=%%PREFIX%%
ECLIPSE_HOME=%%ECLIPSE_HOME%%
DEFAULT_JAVA_CMD=java
-export MOZILLA_FIVE_HOME=%%LOCALBASE%%/lib/%%BROWSER%%
-export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
-
+MOZILLA_FIVE_HOME=%%LOCALBASE%%/include/%%BROWSER%%
+export MOZILLA_FIVE_HOME
#-----------------------------------------------------------------------------
# Determine configuration settings
diff --git a/java/eclipse/files/manualpatch-plugins-swt-cairo-library b/java/eclipse/files/manualpatch-plugins-swt-cairo-library
deleted file mode 100644
index e0c57e25ef15..000000000000
--- a/java/eclipse/files/manualpatch-plugins-swt-cairo-library
+++ /dev/null
@@ -1,2432 +0,0 @@
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo.c plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo.c Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.c Thu Aug 18 12:35:19 2005
-@@ -25,6 +25,16 @@
-
- #define Cairo_NATIVE(func) Java_org_eclipse_swt_internal_cairo_Cairo_##func
-
-+#ifndef NO_cairo_1append_1path
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1append_1path)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1append_1path_FUNC);
-+ cairo_append_path((cairo_t *)arg0, (cairo_path_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1append_1path_FUNC);
-+}
-+#endif
-+
- #ifndef NO_cairo_1arc
- JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1arc)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
-@@ -55,6 +65,16 @@
- }
- #endif
-
-+#ifndef NO_cairo_1clip_1preserve
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1clip_1preserve)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1clip_1preserve_FUNC);
-+ cairo_clip_preserve((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1clip_1preserve_FUNC);
-+}
-+#endif
-+
- #ifndef NO_cairo_1close_1path
- JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1close_1path)
- (JNIEnv *env, jclass that, jint arg0)
-@@ -65,353 +85,403 @@
- }
- #endif
-
--#ifndef NO_cairo_1concat_1matrix
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1concat_1matrix)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1copy_1page
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1copy_1page)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1concat_1matrix_FUNC);
-- cairo_concat_matrix((cairo_t *)arg0, (cairo_matrix_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1concat_1matrix_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1copy_1page_FUNC);
-+ cairo_copy_page((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1copy_1page_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1copy
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1copy)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1copy_1path
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1copy_1path)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1copy_FUNC);
-- cairo_copy((cairo_t *)arg0, (cairo_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1copy_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1copy_1path_FUNC);
-+ rc = (jint)cairo_copy_path((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1copy_1path_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1copy_1page
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1copy_1page)
-+#ifndef NO_cairo_1copy_1path_1flat
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1copy_1path_1flat)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1copy_1page_FUNC);
-- cairo_copy_page((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1copy_1page_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1copy_1path_1flat_FUNC);
-+ rc = (jint)cairo_copy_path_flat((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1copy_1path_1flat_FUNC);
-+ return rc;
- }
- #endif
-
- #ifndef NO_cairo_1create
- JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1create)
-- (JNIEnv *env, jclass that)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1create_FUNC);
-- rc = (jint)cairo_create();
-+ rc = (jint)cairo_create((cairo_surface_t *)arg0);
- Cairo_NATIVE_EXIT(env, that, cairo_1create_FUNC);
- return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1alpha
--JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1current_1alpha)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1curve_1to
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1curve_1to)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
- {
-- jdouble rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1alpha_FUNC);
-- rc = (jdouble)cairo_current_alpha((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1alpha_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1curve_1to_FUNC);
-+ cairo_curve_to((cairo_t *)arg0, arg1, arg2, arg3, arg4, arg5, arg6);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1curve_1to_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1fill_1rule
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1fill_1rule)
-+#ifndef NO_cairo_1destroy
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1destroy)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1fill_1rule_FUNC);
-- rc = (jint)cairo_current_fill_rule((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1fill_1rule_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1destroy_FUNC);
-+ cairo_destroy((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1destroy_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1font
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1font)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1device_1to_1user
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1device_1to_1user)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1font_FUNC);
-- rc = (jint)cairo_current_font((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1font_FUNC);
-- return rc;
-+ jdouble *lparg1=NULL;
-+ jdouble *lparg2=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1device_1to_1user_FUNC);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-+ cairo_device_to_user((cairo_t *)arg0, lparg1, lparg2);
-+fail:
-+ if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1device_1to_1user_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1font_1extents
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1current_1font_1extents)
-- (JNIEnv *env, jclass that, jint arg0, jobject arg1)
-+#ifndef NO_cairo_1device_1to_1user_1distance
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1device_1to_1user_1distance)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
-- cairo_font_extents_t _arg1, *lparg1=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1font_1extents_FUNC);
-- if (arg1) if ((lparg1 = getcairo_font_extents_tFields(env, arg1, &_arg1)) == NULL) goto fail;
-- cairo_current_font_extents((cairo_t *)arg0, (cairo_font_extents_t *)lparg1);
-+ jdouble *lparg1=NULL;
-+ jdouble *lparg2=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1device_1to_1user_1distance_FUNC);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-+ cairo_device_to_user_distance((cairo_t *)arg0, lparg1, lparg2);
- fail:
-- if (arg1 && lparg1) setcairo_font_extents_tFields(env, arg1, lparg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1font_1extents_FUNC);
-+ if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1device_1to_1user_1distance_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1line_1cap
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1line_1cap)
-+#ifndef NO_cairo_1fill
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1fill)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1line_1cap_FUNC);
-- rc = (jint)cairo_current_line_cap((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1line_1cap_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1fill_FUNC);
-+ cairo_fill((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1fill_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1line_1join
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1line_1join)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1fill_1extents
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1fill_1extents)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1line_1join_FUNC);
-- rc = (jint)cairo_current_line_join((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1line_1join_FUNC);
-- return rc;
-+ jdouble *lparg1=NULL;
-+ jdouble *lparg2=NULL;
-+ jdouble *lparg3=NULL;
-+ jdouble *lparg4=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1fill_1extents_FUNC);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-+ if (arg3) if ((lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL)) == NULL) goto fail;
-+ if (arg4) if ((lparg4 = (*env)->GetDoubleArrayElements(env, arg4, NULL)) == NULL) goto fail;
-+ cairo_fill_extents((cairo_t *)arg0, lparg1, lparg2, lparg3, lparg4);
-+fail:
-+ if (arg4 && lparg4) (*env)->ReleaseDoubleArrayElements(env, arg4, lparg4, 0);
-+ if (arg3 && lparg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
-+ if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1fill_1extents_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1line_1width
--JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1current_1line_1width)
-+#ifndef NO_cairo_1fill_1preserve
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1fill_1preserve)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- jdouble rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1line_1width_FUNC);
-- rc = (jdouble)cairo_current_line_width((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1line_1width_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1fill_1preserve_FUNC);
-+ cairo_fill_preserve((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1fill_1preserve_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1matrix
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1current_1matrix)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1font_1extents
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1font_1extents)
-+ (JNIEnv *env, jclass that, jint arg0, jobject arg1)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1matrix_FUNC);
-- cairo_current_matrix((cairo_t *)arg0, (cairo_matrix_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1matrix_FUNC);
-+ cairo_font_extents_t _arg1, *lparg1=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1font_1extents_FUNC);
-+ if (arg1) if ((lparg1 = getcairo_font_extents_tFields(env, arg1, &_arg1)) == NULL) goto fail;
-+ cairo_font_extents((cairo_t *)arg0, lparg1);
-+fail:
-+ if (arg1 && lparg1) setcairo_font_extents_tFields(env, arg1, lparg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1font_1extents_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1miter_1limit
--JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1current_1miter_1limit)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1font_1extents_1t_1sizeof
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1font_1extents_1t_1sizeof)
-+ (JNIEnv *env, jclass that)
- {
-- jdouble rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1miter_1limit_FUNC);
-- rc = (jdouble)cairo_current_miter_limit((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1miter_1limit_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1font_1extents_1t_1sizeof_FUNC);
-+ rc = (jint)cairo_font_extents_t_sizeof();
-+ Cairo_NATIVE_EXIT(env, that, cairo_1font_1extents_1t_1sizeof_FUNC);
- return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1operator
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1operator)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1font_1options_1create
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1font_1options_1create)
-+ (JNIEnv *env, jclass that)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1operator_FUNC);
-- rc = (jint)cairo_current_operator((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1operator_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1font_1options_1create_FUNC);
-+ rc = (jint)cairo_font_options_create();
-+ Cairo_NATIVE_EXIT(env, that, cairo_1font_1options_1create_FUNC);
- return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1path
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1current_1path)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5)
-+#ifndef NO_cairo_1font_1options_1destroy
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1font_1options_1destroy)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1path_FUNC);
-- cairo_current_path((cairo_t *)arg0, (cairo_move_to_func_t *)arg1, (cairo_line_to_func_t *)arg2, (cairo_curve_to_func_t *)arg3, (cairo_close_path_func_t *)arg4, (void *)arg5);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1path_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1font_1options_1destroy_FUNC);
-+ cairo_font_options_destroy((cairo_font_options_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1font_1options_1destroy_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1path_1flat
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1current_1path_1flat)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
-+#ifndef NO_cairo_1font_1options_1get_1antialias
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1font_1options_1get_1antialias)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1path_1flat_FUNC);
-- cairo_current_path_flat((cairo_t *)arg0, (cairo_move_to_func_t *)arg1, (cairo_line_to_func_t *)arg2, (cairo_close_path_func_t *)arg3, (void *)arg4);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1path_1flat_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1font_1options_1get_1antialias_FUNC);
-+ rc = (jint)cairo_font_options_get_antialias((cairo_font_options_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1font_1options_1get_1antialias_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1pattern
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1pattern)
-+#ifndef NO_cairo_1font_1options_1set_1antialias
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1font_1options_1set_1antialias)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1font_1options_1set_1antialias_FUNC);
-+ cairo_font_options_set_antialias((cairo_font_options_t *)arg0, arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1font_1options_1set_1antialias_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1get_1antialias
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1antialias)
- (JNIEnv *env, jclass that, jint arg0)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1pattern_FUNC);
-- rc = (jint)cairo_current_pattern((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1pattern_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1antialias_FUNC);
-+ rc = (jint)cairo_get_antialias((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1antialias_FUNC);
- return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1point
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1current_1point)
-+#ifndef NO_cairo_1get_1current_1point
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1get_1current_1point)
- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
- jdouble *lparg1=NULL;
- jdouble *lparg2=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1point_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1current_1point_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- cairo_current_point((cairo_t *)arg0, lparg1, lparg2);
-+ cairo_get_current_point((cairo_t *)arg0, lparg1, lparg2);
- fail:
- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1point_FUNC);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1current_1point_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1current_1rgb_1color
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1current_1rgb_1color)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3)
-+#ifndef NO_cairo_1get_1fill_1rule
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1fill_1rule)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
-- jdouble *lparg1=NULL;
-- jdouble *lparg2=NULL;
-- jdouble *lparg3=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1rgb_1color_FUNC);
-- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- if (arg3) if ((lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL)) == NULL) goto fail;
-- cairo_current_rgb_color((cairo_t *)arg0, lparg1, lparg2, lparg3);
--fail:
-- if (arg3 && lparg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
-- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1rgb_1color_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1fill_1rule_FUNC);
-+ rc = (jint)cairo_get_fill_rule((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1fill_1rule_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1target_1surface
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1current_1target_1surface)
-+#ifndef NO_cairo_1get_1font_1face
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1font_1face)
- (JNIEnv *env, jclass that, jint arg0)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1target_1surface_FUNC);
-- rc = (jint)cairo_current_target_surface((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1target_1surface_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1font_1face_FUNC);
-+ rc = (jint)cairo_get_font_face((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1font_1face_FUNC);
- return rc;
- }
- #endif
-
--#ifndef NO_cairo_1current_1tolerance
--JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1current_1tolerance)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1get_1font_1matrix
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1get_1font_1matrix)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
- {
-- jdouble rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1current_1tolerance_FUNC);
-- rc = (jdouble)cairo_current_tolerance((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1current_1tolerance_FUNC);
-- return rc;
-+ jdouble *lparg1=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1font_1matrix_FUNC);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ cairo_get_font_matrix((cairo_t *)arg0, (cairo_matrix_t *)lparg1);
-+fail:
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1font_1matrix_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1curve_1to
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1curve_1to)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
-+#ifndef NO_cairo_1get_1font_1options
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1get_1font_1options)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1curve_1to_FUNC);
-- cairo_curve_to((cairo_t *)arg0, arg1, arg2, arg3, arg4, arg5, arg6);
-- Cairo_NATIVE_EXIT(env, that, cairo_1curve_1to_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1font_1options_FUNC);
-+ cairo_get_font_options((cairo_t *)arg0, (cairo_font_options_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1font_1options_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1default_1matrix
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1default_1matrix)
-+#ifndef NO_cairo_1get_1line_1cap
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1line_1cap)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1default_1matrix_FUNC);
-- cairo_default_matrix((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1default_1matrix_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1line_1cap_FUNC);
-+ rc = (jint)cairo_get_line_cap((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1line_1cap_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1destroy
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1destroy)
-+#ifndef NO_cairo_1get_1line_1join
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1line_1join)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1destroy_FUNC);
-- cairo_destroy((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1destroy_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1line_1join_FUNC);
-+ rc = (jint)cairo_get_line_join((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1line_1join_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1fill
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1fill)
-+#ifndef NO_cairo_1get_1line_1width
-+JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1get_1line_1width)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1fill_FUNC);
-- cairo_fill((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1fill_FUNC);
-+ jdouble rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1line_1width_FUNC);
-+ rc = (jdouble)cairo_get_line_width((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1line_1width_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1fill_1extents
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1fill_1extents)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4)
-+#ifndef NO_cairo_1get_1matrix
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1get_1matrix)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
- {
- jdouble *lparg1=NULL;
-- jdouble *lparg2=NULL;
-- jdouble *lparg3=NULL;
-- jdouble *lparg4=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1fill_1extents_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1matrix_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- if (arg3) if ((lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL)) == NULL) goto fail;
-- if (arg4) if ((lparg4 = (*env)->GetDoubleArrayElements(env, arg4, NULL)) == NULL) goto fail;
-- cairo_fill_extents((cairo_t *)arg0, lparg1, lparg2, lparg3, lparg4);
-+ cairo_get_matrix((cairo_t *)arg0, (cairo_matrix_t *)lparg1);
- fail:
-- if (arg4 && lparg4) (*env)->ReleaseDoubleArrayElements(env, arg4, lparg4, 0);
-- if (arg3 && lparg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
-- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1fill_1extents_FUNC);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1matrix_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1font_1destroy
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1font_1destroy)
-+#ifndef NO_cairo_1get_1miter_1limit
-+JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1get_1miter_1limit)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1font_1destroy_FUNC);
-- cairo_font_destroy((cairo_font_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1font_1destroy_FUNC);
-+ jdouble rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1miter_1limit_FUNC);
-+ rc = (jdouble)cairo_get_miter_limit((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1miter_1limit_FUNC);
-+ return rc;
- }
- #endif
-
--#ifndef NO_cairo_1font_1extents_1t_1sizeof
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1font_1extents_1t_1sizeof)
-- (JNIEnv *env, jclass that)
-+#ifndef NO_cairo_1get_1operator
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1operator)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1font_1extents_1t_1sizeof_FUNC);
-- rc = (jint)cairo_font_extents_t_sizeof();
-- Cairo_NATIVE_EXIT(env, that, cairo_1font_1extents_1t_1sizeof_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1operator_FUNC);
-+ rc = (jint)cairo_get_operator((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1operator_FUNC);
-+ return rc;
-+}
-+#endif
-+
-+#ifndef NO_cairo_1get_1source
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1source)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1source_FUNC);
-+ rc = (jint)cairo_get_source((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1source_FUNC);
- return rc;
- }
- #endif
-
--#ifndef NO_cairo_1font_1reference
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1font_1reference)
-+#ifndef NO_cairo_1get_1target
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1get_1target)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1font_1reference_FUNC);
-- cairo_font_reference((cairo_font_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1font_1reference_FUNC);
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1target_FUNC);
-+ rc = (jint)cairo_get_target((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1target_FUNC);
-+ return rc;
-+}
-+#endif
-+
-+#ifndef NO_cairo_1get_1tolerance
-+JNIEXPORT jdouble JNICALL Cairo_NATIVE(cairo_1get_1tolerance)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ jdouble rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1get_1tolerance_FUNC);
-+ rc = (jdouble)cairo_get_tolerance((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1get_1tolerance_FUNC);
-+ return rc;
- }
- #endif
-
-@@ -469,6 +539,30 @@
- }
- #endif
-
-+#ifndef NO_cairo_1image_1surface_1get_1height
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1image_1surface_1get_1height)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1image_1surface_1get_1height_FUNC);
-+ rc = (jint)cairo_image_surface_get_height((cairo_surface_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1image_1surface_1get_1height_FUNC);
-+ return rc;
-+}
-+#endif
-+
-+#ifndef NO_cairo_1image_1surface_1get_1width
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1image_1surface_1get_1width)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1image_1surface_1get_1width_FUNC);
-+ rc = (jint)cairo_image_surface_get_width((cairo_surface_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1image_1surface_1get_1width_FUNC);
-+ return rc;
-+}
-+#endif
-+
- #ifndef NO_cairo_1in_1fill
- JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1in_1fill)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
-@@ -493,244 +587,221 @@
- }
- #endif
-
--#ifndef NO_cairo_1init_1clip
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1init_1clip)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1line_1to
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1line_1to)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1init_1clip_FUNC);
-- cairo_init_clip((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1init_1clip_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1line_1to_FUNC);
-+ cairo_line_to((cairo_t *)arg0, arg1, arg2);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1line_1to_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1inverse_1transform_1distance
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1inverse_1transform_1distance)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
-+#ifndef NO_cairo_1mask
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1mask)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- jdouble *lparg1=NULL;
-- jdouble *lparg2=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1inverse_1transform_1distance_FUNC);
-- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- cairo_inverse_transform_distance((cairo_t *)arg0, lparg1, lparg2);
--fail:
-- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1inverse_1transform_1distance_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1mask_FUNC);
-+ cairo_mask((cairo_t *)arg0, (cairo_pattern_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1mask_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1inverse_1transform_1point
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1inverse_1transform_1point)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
-+#ifndef NO_cairo_1mask_1surface
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1mask_1surface)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2, jdouble arg3)
- {
-- jdouble *lparg1=NULL;
-- jdouble *lparg2=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1inverse_1transform_1point_FUNC);
-- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- cairo_inverse_transform_point((cairo_t *)arg0, lparg1, lparg2);
--fail:
-- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1inverse_1transform_1point_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1mask_1surface_FUNC);
-+ cairo_mask_surface((cairo_t *)arg0, (cairo_surface_t *)arg1, arg2, arg3);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1mask_1surface_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1line_1to
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1line_1to)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
-+#ifndef NO_cairo_1matrix_1init
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1init)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1line_1to_FUNC);
-- cairo_line_to((cairo_t *)arg0, arg1, arg2);
-- Cairo_NATIVE_EXIT(env, that, cairo_1line_1to_FUNC);
-+ jdouble *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1init_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_init((cairo_matrix_t *)lparg0, arg1, arg2, arg3, arg4, arg5, arg6);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1init_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1matrix_1copy
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1copy)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1matrix_1init_1identity
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1init_1identity)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1copy_FUNC);
-- rc = (jint)cairo_matrix_copy((cairo_matrix_t *)arg0, (cairo_matrix_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1copy_FUNC);
-- return rc;
-+ jdouble *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1init_1identity_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_init_identity((cairo_matrix_t *)lparg0);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1init_1identity_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1matrix_1create
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1create)
-- (JNIEnv *env, jclass that)
-+#ifndef NO_cairo_1matrix_1init_1rotate
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1init_1rotate)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1create_FUNC);
-- rc = (jint)cairo_matrix_create();
-- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1create_FUNC);
-- return rc;
-+ jdouble *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1init_1rotate_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_init_rotate((cairo_matrix_t *)lparg0, arg1);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1init_1rotate_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1matrix_1destroy
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1destroy)
-- (JNIEnv *env, jclass that, jint arg0)
-+#ifndef NO_cairo_1matrix_1init_1scale
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1init_1scale)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1, jdouble arg2)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1destroy_FUNC);
-- cairo_matrix_destroy((cairo_matrix_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1destroy_FUNC);
-+ jdouble *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1init_1scale_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_init_scale((cairo_matrix_t *)lparg0, arg1, arg2);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1init_1scale_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1matrix_1get_1affine
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1get_1affine)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4, jdoubleArray arg5, jdoubleArray arg6)
-+#ifndef NO_cairo_1matrix_1init_1translate
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1init_1translate)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1, jdouble arg2)
- {
-- jdouble *lparg1=NULL;
-- jdouble *lparg2=NULL;
-- jdouble *lparg3=NULL;
-- jdouble *lparg4=NULL;
-- jdouble *lparg5=NULL;
-- jdouble *lparg6=NULL;
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1get_1affine_FUNC);
-- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- if (arg3) if ((lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL)) == NULL) goto fail;
-- if (arg4) if ((lparg4 = (*env)->GetDoubleArrayElements(env, arg4, NULL)) == NULL) goto fail;
-- if (arg5) if ((lparg5 = (*env)->GetDoubleArrayElements(env, arg5, NULL)) == NULL) goto fail;
-- if (arg6) if ((lparg6 = (*env)->GetDoubleArrayElements(env, arg6, NULL)) == NULL) goto fail;
-- rc = (jint)cairo_matrix_get_affine((cairo_matrix_t *)arg0, lparg1, lparg2, lparg3, lparg4, lparg5, lparg6);
-+ jdouble *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1init_1translate_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_init_translate((cairo_matrix_t *)lparg0, arg1, arg2);
- fail:
-- if (arg6 && lparg6) (*env)->ReleaseDoubleArrayElements(env, arg6, lparg6, 0);
-- if (arg5 && lparg5) (*env)->ReleaseDoubleArrayElements(env, arg5, lparg5, 0);
-- if (arg4 && lparg4) (*env)->ReleaseDoubleArrayElements(env, arg4, lparg4, 0);
-- if (arg3 && lparg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
-- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1get_1affine_FUNC);
-- return rc;
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1init_1translate_FUNC);
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1invert
- JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1invert)
-- (JNIEnv *env, jclass that, jint arg0)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0)
- {
-+ jdouble *lparg0=NULL;
- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1invert_FUNC);
-- rc = (jint)cairo_matrix_invert((cairo_matrix_t *)arg0);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ rc = (jint)cairo_matrix_invert((cairo_matrix_t *)lparg0);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1invert_FUNC);
- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1multiply
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1multiply)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1multiply)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
-- jint rc = 0;
-+ jdouble *lparg0=NULL;
-+ jdouble *lparg1=NULL;
-+ jdouble *lparg2=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1multiply_FUNC);
-- rc = (jint)cairo_matrix_multiply((cairo_matrix_t *)arg0, (cairo_matrix_t *)arg1, (cairo_matrix_t *)arg2);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-+ cairo_matrix_multiply((cairo_matrix_t *)lparg0, (cairo_matrix_t *)lparg1, (cairo_matrix_t *)lparg2);
-+fail:
-+ if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1multiply_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1rotate
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1rotate)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1rotate)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1)
- {
-- jint rc = 0;
-+ jdouble *lparg0=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1rotate_FUNC);
-- rc = (jint)cairo_matrix_rotate((cairo_matrix_t *)arg0, arg1);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_rotate((cairo_matrix_t *)lparg0, arg1);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1rotate_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1scale
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1scale)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1scale)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1, jdouble arg2)
- {
-- jint rc = 0;
-+ jdouble *lparg0=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1scale_FUNC);
-- rc = (jint)cairo_matrix_scale((cairo_matrix_t *)arg0, arg1, arg2);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_scale((cairo_matrix_t *)lparg0, arg1, arg2);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1scale_FUNC);
-- return rc;
--}
--#endif
--
--#ifndef NO_cairo_1matrix_1set_1affine
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1set_1affine)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
--{
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1set_1affine_FUNC);
-- rc = (jint)cairo_matrix_set_affine((cairo_matrix_t *)arg0, arg1, arg2, arg3, arg4, arg5, arg6);
-- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1set_1affine_FUNC);
-- return rc;
--}
--#endif
--
--#ifndef NO_cairo_1matrix_1set_1identity
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1set_1identity)
-- (JNIEnv *env, jclass that, jint arg0)
--{
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1set_1identity_FUNC);
-- rc = (jint)cairo_matrix_set_identity((cairo_matrix_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1set_1identity_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1transform_1distance
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1transform_1distance)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1transform_1distance)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
-+ jdouble *lparg0=NULL;
- jdouble *lparg1=NULL;
- jdouble *lparg2=NULL;
-- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1transform_1distance_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- rc = (jint)cairo_matrix_transform_distance((cairo_matrix_t *)arg0, lparg1, lparg2);
-+ cairo_matrix_transform_distance((cairo_matrix_t *)lparg0, lparg1, lparg2);
- fail:
- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1transform_1distance_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1transform_1point
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1transform_1point)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1transform_1point)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
-+ jdouble *lparg0=NULL;
- jdouble *lparg1=NULL;
- jdouble *lparg2=NULL;
-- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1transform_1point_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- rc = (jint)cairo_matrix_transform_point((cairo_matrix_t *)arg0, lparg1, lparg2);
-+ cairo_matrix_transform_point((cairo_matrix_t *)lparg0, lparg1, lparg2);
- fail:
- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1transform_1point_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1matrix_1translate
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1matrix_1translate)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1matrix_1translate)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jdouble arg1, jdouble arg2)
- {
-- jint rc = 0;
-+ jdouble *lparg0=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1matrix_1translate_FUNC);
-- rc = (jint)cairo_matrix_translate((cairo_matrix_t *)arg0, arg1, arg2);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ cairo_matrix_translate((cairo_matrix_t *)lparg0, arg1, arg2);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1matrix_1translate_FUNC);
-- return rc;
- }
- #endif
-
-@@ -754,18 +825,80 @@
- }
- #endif
-
--#ifndef NO_cairo_1pattern_1add_1color_1stop
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1pattern_1add_1color_1stop)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
-+#ifndef NO_cairo_1paint
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1paint)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1paint_FUNC);
-+ cairo_paint((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1paint_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1paint_1with_1alpha
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1paint_1with_1alpha)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1paint_1with_1alpha_FUNC);
-+ cairo_paint_with_alpha((cairo_t *)arg0, arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1paint_1with_1alpha_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1path_1data_1t_1sizeof
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1path_1data_1t_1sizeof)
-+ (JNIEnv *env, jclass that)
-+{
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1path_1data_1t_1sizeof_FUNC);
-+ rc = (jint)cairo_path_data_t_sizeof();
-+ Cairo_NATIVE_EXIT(env, that, cairo_1path_1data_1t_1sizeof_FUNC);
-+ return rc;
-+}
-+#endif
-+
-+#ifndef NO_cairo_1path_1destroy
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1path_1destroy)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1path_1destroy_FUNC);
-+ cairo_path_destroy((cairo_path_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1path_1destroy_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1path_1t_1sizeof
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1path_1t_1sizeof)
-+ (JNIEnv *env, jclass that)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1add_1color_1stop_FUNC);
-- rc = (jint)cairo_pattern_add_color_stop((cairo_pattern_t *)arg0, arg1, arg2, arg3, arg4, arg5);
-- Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1add_1color_1stop_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1path_1t_1sizeof_FUNC);
-+ rc = (jint)cairo_path_t_sizeof();
-+ Cairo_NATIVE_EXIT(env, that, cairo_1path_1t_1sizeof_FUNC);
- return rc;
- }
- #endif
-
-+#ifndef NO_cairo_1pattern_1add_1color_1stop_1rgb
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1pattern_1add_1color_1stop_1rgb)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1add_1color_1stop_1rgb_FUNC);
-+ cairo_pattern_add_color_stop_rgb((cairo_pattern_t *)arg0, arg1, arg2, arg3, arg4);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1add_1color_1stop_1rgb_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1pattern_1add_1color_1stop_1rgba
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1pattern_1add_1color_1stop_1rgba)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1add_1color_1stop_1rgba_FUNC);
-+ cairo_pattern_add_color_stop_rgba((cairo_pattern_t *)arg0, arg1, arg2, arg3, arg4, arg5);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1add_1color_1stop_1rgba_FUNC);
-+}
-+#endif
-+
- #ifndef NO_cairo_1pattern_1create_1for_1surface
- JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1pattern_1create_1for_1surface)
- (JNIEnv *env, jclass that, jint arg0)
-@@ -837,14 +970,16 @@
- #endif
-
- #ifndef NO_cairo_1pattern_1get_1matrix
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1pattern_1get_1matrix)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1pattern_1get_1matrix)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
- {
-- jint rc = 0;
-+ jdouble *lparg1=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1get_1matrix_FUNC);
-- rc = (jint)cairo_pattern_get_matrix((cairo_pattern_t *)arg0, (cairo_matrix_t *)arg1);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ cairo_pattern_get_matrix((cairo_pattern_t *)arg0, (cairo_matrix_t *)lparg1);
-+fail:
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1get_1matrix_FUNC);
-- return rc;
- }
- #endif
-
-@@ -859,38 +994,36 @@
- #endif
-
- #ifndef NO_cairo_1pattern_1set_1extend
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1pattern_1set_1extend)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1pattern_1set_1extend)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1set_1extend_FUNC);
-- rc = (jint)cairo_pattern_set_extend((cairo_pattern_t *)arg0, arg1);
-+ cairo_pattern_set_extend((cairo_pattern_t *)arg0, arg1);
- Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1set_1extend_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1pattern_1set_1filter
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1pattern_1set_1filter)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1pattern_1set_1filter)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1set_1filter_FUNC);
-- rc = (jint)cairo_pattern_set_filter((cairo_pattern_t *)arg0, arg1);
-+ cairo_pattern_set_filter((cairo_pattern_t *)arg0, arg1);
- Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1set_1filter_FUNC);
-- return rc;
- }
- #endif
-
- #ifndef NO_cairo_1pattern_1set_1matrix
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1pattern_1set_1matrix)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1pattern_1set_1matrix)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
- {
-- jint rc = 0;
-+ jdouble *lparg1=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1pattern_1set_1matrix_FUNC);
-- rc = (jint)cairo_pattern_set_matrix((cairo_pattern_t *)arg0, (cairo_matrix_t *)arg1);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ cairo_pattern_set_matrix((cairo_pattern_t *)arg0, (cairo_matrix_t *)lparg1);
-+fail:
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1pattern_1set_1matrix_FUNC);
-- return rc;
- }
- #endif
-
-@@ -905,12 +1038,14 @@
- #endif
-
- #ifndef NO_cairo_1reference
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1reference)
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1reference)
- (JNIEnv *env, jclass that, jint arg0)
- {
-+ jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1reference_FUNC);
-- cairo_reference((cairo_t *)arg0);
-+ rc = (jint)cairo_reference((cairo_t *)arg0);
- Cairo_NATIVE_EXIT(env, that, cairo_1reference_FUNC);
-+ return rc;
- }
- #endif
-
-@@ -944,6 +1079,16 @@
- }
- #endif
-
-+#ifndef NO_cairo_1reset_1clip
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1reset_1clip)
-+ (JNIEnv *env, jclass that, jint arg0)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1reset_1clip_FUNC);
-+ cairo_reset_clip((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1reset_1clip_FUNC);
-+}
-+#endif
-+
- #ifndef NO_cairo_1restore
- JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1restore)
- (JNIEnv *env, jclass that, jint arg0)
-@@ -984,37 +1129,27 @@
- }
- #endif
-
--#ifndef NO_cairo_1scale_1font
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1scale_1font)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
--{
-- Cairo_NATIVE_ENTER(env, that, cairo_1scale_1font_FUNC);
-- cairo_scale_font((cairo_t *)arg0, arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1scale_1font_FUNC);
--}
--#endif
--
--#ifndef NO_cairo_1select_1font
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1select_1font)
-+#ifndef NO_cairo_1select_1font_1face
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1select_1font_1face)
- (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3)
- {
- jbyte *lparg1=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1select_1font_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1select_1font_1face_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- cairo_select_font((cairo_t *)arg0, lparg1, arg2, arg3);
-+ cairo_select_font_face((cairo_t *)arg0, lparg1, arg2, arg3);
- fail:
- if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1select_1font_FUNC);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1select_1font_1face_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1set_1alpha
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1alpha)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
-+#ifndef NO_cairo_1set_1antialias
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1antialias)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1alpha_FUNC);
-- cairo_set_alpha((cairo_t *)arg0, arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1alpha_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1antialias_FUNC);
-+ cairo_set_antialias((cairo_t *)arg0, arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1antialias_FUNC);
- }
- #endif
-
-@@ -1042,13 +1177,47 @@
- }
- #endif
-
--#ifndef NO_cairo_1set_1font
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1font)
-+#ifndef NO_cairo_1set_1font_1face
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1font_1face)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1font_FUNC);
-- cairo_set_font((cairo_t *)arg0, (cairo_font_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1font_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1font_1face_FUNC);
-+ cairo_set_font_face((cairo_t *)arg0, (cairo_font_face_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1font_1face_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1set_1font_1matrix
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1font_1matrix)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
-+{
-+ jdouble *lparg1=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1font_1matrix_FUNC);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ cairo_set_font_matrix((cairo_t *)arg0, (cairo_matrix_t *)lparg1);
-+fail:
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1font_1matrix_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1set_1font_1options
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1font_1options)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1font_1options_FUNC);
-+ cairo_set_font_options((cairo_t *)arg0, (cairo_font_options_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1font_1options_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_cairo_1set_1font_1size
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1font_1size)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1font_1size_FUNC);
-+ cairo_set_font_size((cairo_t *)arg0, arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1font_1size_FUNC);
- }
- #endif
-
-@@ -1084,10 +1253,14 @@
-
- #ifndef NO_cairo_1set_1matrix
- JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1matrix)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
- {
-+ jdouble *lparg1=NULL;
- Cairo_NATIVE_ENTER(env, that, cairo_1set_1matrix_FUNC);
-- cairo_set_matrix((cairo_t *)arg0, (cairo_matrix_t *)arg1);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ cairo_set_matrix((cairo_t *)arg0, (cairo_matrix_t *)lparg1);
-+fail:
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- Cairo_NATIVE_EXIT(env, that, cairo_1set_1matrix_FUNC);
- }
- #endif
-@@ -1112,53 +1285,43 @@
- }
- #endif
-
--#ifndef NO_cairo_1set_1pattern
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1pattern)
-+#ifndef NO_cairo_1set_1source
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1source)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1pattern_FUNC);
-- cairo_set_pattern((cairo_t *)arg0, (cairo_pattern_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1pattern_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1source_FUNC);
-+ cairo_set_source((cairo_t *)arg0, (cairo_pattern_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1source_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1set_1rgb_1color
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1rgb_1color)
-+#ifndef NO_cairo_1set_1source_1rgb
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1source_1rgb)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1rgb_1color_FUNC);
-- cairo_set_rgb_color((cairo_t *)arg0, arg1, arg2, arg3);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1rgb_1color_FUNC);
--}
--#endif
--
--#ifndef NO_cairo_1set_1target_1drawable
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1target_1drawable)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
--{
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1target_1drawable_FUNC);
-- cairo_set_target_drawable((cairo_t *)arg0, (Display *)arg1, (Drawable)arg2);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1target_1drawable_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1source_1rgb_FUNC);
-+ cairo_set_source_rgb((cairo_t *)arg0, arg1, arg2, arg3);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1source_1rgb_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1set_1target_1image
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1target_1image)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5)
-+#ifndef NO_cairo_1set_1source_1rgba
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1source_1rgba)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1target_1image_FUNC);
-- cairo_set_target_image((cairo_t *)arg0, (char *)arg1, arg2, arg3, arg4, arg5);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1target_1image_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1source_1rgba_FUNC);
-+ cairo_set_source_rgba((cairo_t *)arg0, arg1, arg2, arg3, arg4);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1source_1rgba_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1set_1target_1surface
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1target_1surface)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1set_1source_1surface
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1set_1source_1surface)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2, jdouble arg3)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1set_1target_1surface_FUNC);
-- cairo_set_target_surface((cairo_t *)arg0, (cairo_surface_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1set_1target_1surface_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1set_1source_1surface_FUNC);
-+ cairo_set_source_surface((cairo_t *)arg0, (cairo_surface_t *)arg1, arg2, arg3);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1set_1source_1surface_FUNC);
- }
- #endif
-
-@@ -1192,16 +1355,6 @@
- }
- #endif
-
--#ifndef NO_cairo_1show_1surface
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1show_1surface)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
--{
-- Cairo_NATIVE_ENTER(env, that, cairo_1show_1surface_FUNC);
-- cairo_show_surface((cairo_t *)arg0, (cairo_surface_t *)arg1, arg2, arg3);
-- Cairo_NATIVE_EXIT(env, that, cairo_1show_1surface_FUNC);
--}
--#endif
--
- #ifndef NO_cairo_1show_1text
- JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1show_1text)
- (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1)
-@@ -1228,14 +1381,14 @@
- }
- #endif
-
--#ifndef NO_cairo_1status_1string
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1status_1string)
-+#ifndef NO_cairo_1status_1to_1string
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1status_1to_1string)
- (JNIEnv *env, jclass that, jint arg0)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1status_1string_FUNC);
-- rc = (jint)cairo_status_string((cairo_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1status_1string_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1status_1to_1string_FUNC);
-+ rc = (jint)cairo_status_to_string(arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1status_1to_1string_FUNC);
- return rc;
- }
- #endif
-@@ -1273,15 +1426,13 @@
- }
- #endif
-
--#ifndef NO_cairo_1surface_1create_1for_1image
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1create_1for_1image)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
-+#ifndef NO_cairo_1stroke_1preserve
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1stroke_1preserve)
-+ (JNIEnv *env, jclass that, jint arg0)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1surface_1create_1for_1image_FUNC);
-- rc = (jint)cairo_surface_create_for_image((char *)arg0, arg1, arg2, arg3, arg4);
-- Cairo_NATIVE_EXIT(env, that, cairo_1surface_1create_1for_1image_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1stroke_1preserve_FUNC);
-+ cairo_stroke_preserve((cairo_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1stroke_1preserve_FUNC);
- }
- #endif
-
-@@ -1307,26 +1458,24 @@
- }
- #endif
-
--#ifndef NO_cairo_1surface_1get_1filter
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1get_1filter)
-+#ifndef NO_cairo_1surface_1finish
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1surface_1finish)
- (JNIEnv *env, jclass that, jint arg0)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1surface_1get_1filter_FUNC);
-- rc = (jint)cairo_surface_get_filter((cairo_surface_t *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1surface_1get_1filter_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1surface_1finish_FUNC);
-+ cairo_surface_finish((cairo_surface_t *)arg0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1surface_1finish_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1surface_1get_1matrix
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1get_1matrix)
-+#ifndef NO_cairo_1surface_1get_1user_1data
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1get_1user_1data)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1surface_1get_1matrix_FUNC);
-- rc = (jint)cairo_surface_get_matrix((cairo_surface_t *)arg0, (cairo_matrix_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1surface_1get_1matrix_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1surface_1get_1user_1data_FUNC);
-+ rc = (jint)cairo_surface_get_user_data((cairo_surface_t *)arg0, (cairo_user_data_key_t *)arg1);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1surface_1get_1user_1data_FUNC);
- return rc;
- }
- #endif
-@@ -1341,38 +1490,24 @@
- }
- #endif
-
--#ifndef NO_cairo_1surface_1set_1filter
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1set_1filter)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
--{
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1surface_1set_1filter_FUNC);
-- rc = (jint)cairo_surface_set_filter((cairo_surface_t *)arg0, arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1surface_1set_1filter_FUNC);
-- return rc;
--}
--#endif
--
--#ifndef NO_cairo_1surface_1set_1matrix
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1set_1matrix)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1surface_1set_1device_1offset
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1surface_1set_1device_1offset)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
- {
-- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1surface_1set_1matrix_FUNC);
-- rc = (jint)cairo_surface_set_matrix((cairo_surface_t *)arg0, (cairo_matrix_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1surface_1set_1matrix_FUNC);
-- return rc;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1surface_1set_1device_1offset_FUNC);
-+ cairo_surface_set_device_offset((cairo_surface_t *)arg0, arg1, arg2);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1surface_1set_1device_1offset_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1surface_1set_1repeat
--JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1set_1repeat)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1surface_1set_1user_1data
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1surface_1set_1user_1data)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
- {
- jint rc = 0;
-- Cairo_NATIVE_ENTER(env, that, cairo_1surface_1set_1repeat_FUNC);
-- rc = (jint)cairo_surface_set_repeat((cairo_surface_t *)arg0, arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1surface_1set_1repeat_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1surface_1set_1user_1data_FUNC);
-+ rc = (jint)cairo_surface_set_user_data((cairo_surface_t *)arg0, (cairo_user_data_key_t *)arg1, (void *)arg2, (cairo_destroy_func_t)arg3);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1surface_1set_1user_1data_FUNC);
- return rc;
- }
- #endif
-@@ -1405,57 +1540,61 @@
- }
- #endif
-
--#ifndef NO_cairo_1transform_1distance
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1transform_1distance)
-- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
-+#ifndef NO_cairo_1transform
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1transform)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
- {
- jdouble *lparg1=NULL;
-- jdouble *lparg2=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1transform_1distance_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1transform_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- cairo_transform_distance((cairo_t *)arg0, lparg1, lparg2);
-+ cairo_transform((cairo_t *)arg0, (cairo_matrix_t *)lparg1);
- fail:
-- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1transform_1distance_FUNC);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1transform_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1transform_1font
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1transform_1font)
-- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-+#ifndef NO_cairo_1translate
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1translate)
-+ (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1transform_1font_FUNC);
-- cairo_transform_font((cairo_t *)arg0, (cairo_matrix_t *)arg1);
-- Cairo_NATIVE_EXIT(env, that, cairo_1transform_1font_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1translate_FUNC);
-+ cairo_translate((cairo_t *)arg0, arg1, arg2);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1translate_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1transform_1point
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1transform_1point)
-+#ifndef NO_cairo_1user_1to_1device
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1user_1to_1device)
- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
- jdouble *lparg1=NULL;
- jdouble *lparg2=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1transform_1point_FUNC);
-+ Cairo_NATIVE_ENTER(env, that, cairo_1user_1to_1device_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
- if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- cairo_transform_point((cairo_t *)arg0, lparg1, lparg2);
-+ cairo_user_to_device((cairo_t *)arg0, lparg1, lparg2);
- fail:
- if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1transform_1point_FUNC);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1user_1to_1device_FUNC);
- }
- #endif
-
--#ifndef NO_cairo_1translate
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1translate)
-- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
-+#ifndef NO_cairo_1user_1to_1device_1distance
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1user_1to_1device_1distance)
-+ (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
- {
-- Cairo_NATIVE_ENTER(env, that, cairo_1translate_FUNC);
-- cairo_translate((cairo_t *)arg0, arg1, arg2);
-- Cairo_NATIVE_EXIT(env, that, cairo_1translate_FUNC);
-+ jdouble *lparg1=NULL;
-+ jdouble *lparg2=NULL;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1user_1to_1device_1distance_FUNC);
-+ if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-+ if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail;
-+ cairo_user_to_device_distance((cairo_t *)arg0, lparg1, lparg2);
-+fail:
-+ if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
-+ if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1user_1to_1device_1distance_FUNC);
- }
- #endif
-
-@@ -1465,9 +1604,73 @@
- {
- jint rc = 0;
- Cairo_NATIVE_ENTER(env, that, cairo_1xlib_1surface_1create_FUNC);
-- rc = (jint)cairo_xlib_surface_create((Display *)arg0, (Drawable)arg1, (Visual *)arg2, arg3, (Colormap)arg4);
-+ rc = (jint)cairo_xlib_surface_create((Display *)arg0, (Drawable)arg1, (Visual *)arg2, arg3, arg4);
- Cairo_NATIVE_EXIT(env, that, cairo_1xlib_1surface_1create_FUNC);
- return rc;
-+}
-+#endif
-+
-+#ifndef NO_cairo_1xlib_1surface_1create_1for_1bitmap
-+JNIEXPORT jint JNICALL Cairo_NATIVE(cairo_1xlib_1surface_1create_1for_1bitmap)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
-+{
-+ jint rc = 0;
-+ Cairo_NATIVE_ENTER(env, that, cairo_1xlib_1surface_1create_1for_1bitmap_FUNC);
-+ rc = (jint)cairo_xlib_surface_create_for_bitmap((Display *)arg0, (Pixmap)arg1, (Screen *)arg2, arg3, arg4);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1xlib_1surface_1create_1for_1bitmap_FUNC);
-+ return rc;
-+}
-+#endif
-+
-+#ifndef NO_cairo_1xlib_1surface_1set_1size
-+JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1xlib_1surface_1set_1size)
-+ (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-+{
-+ Cairo_NATIVE_ENTER(env, that, cairo_1xlib_1surface_1set_1size_FUNC);
-+ cairo_xlib_surface_set_size((cairo_surface_t *)arg0, arg1, arg2);
-+ Cairo_NATIVE_EXIT(env, that, cairo_1xlib_1surface_1set_1size_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II
-+JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II)
-+ (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
-+{
-+ cairo_path_data_t _arg0, *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II_FUNC);
-+ if (arg0) if ((lparg0 = getcairo_path_data_tFields(env, arg0, &_arg0)) == NULL) goto fail;
-+ memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
-+fail:
-+ if (arg0 && lparg0) setcairo_path_data_tFields(env, arg0, lparg0);
-+ Cairo_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II
-+JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II)
-+ (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
-+{
-+ cairo_path_t _arg0, *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II_FUNC);
-+ if (arg0) if ((lparg0 = getcairo_path_tFields(env, arg0, &_arg0)) == NULL) goto fail;
-+ memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
-+fail:
-+ if (arg0 && lparg0) setcairo_path_tFields(env, arg0, lparg0);
-+ Cairo_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II_FUNC);
-+}
-+#endif
-+
-+#ifndef NO_memmove___3DII
-+JNIEXPORT void JNICALL Cairo_NATIVE(memmove___3DII)
-+ (JNIEnv *env, jclass that, jdoubleArray arg0, jint arg1, jint arg2)
-+{
-+ jdouble *lparg0=NULL;
-+ Cairo_NATIVE_ENTER(env, that, memmove___3DII_FUNC);
-+ if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
-+ memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
-+fail:
-+ if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
-+ Cairo_NATIVE_EXIT(env, that, memmove___3DII_FUNC);
- }
- #endif
-
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo.h plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.h
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo.h Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo.h Thu Aug 18 12:35:19 2005
-@@ -24,5 +24,6 @@
-
- #include <cairo.h>
- #include <cairo-xlib.h>
-+#include <string.h>
-
- #endif /* INC_cairo_H */
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_custom.c plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.c
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_custom.c Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_custom.c Thu Jan 1 01:00:00 1970
-@@ -1,179 +0,0 @@
--/* ***** BEGIN LICENSE BLOCK *****
-- * Version: MPL 1.1
-- *
-- * The contents of this file are subject to the Mozilla Public License Version
-- * 1.1 (the "License"); you may not use this file except in compliance with
-- * the License. You may obtain a copy of the License at
-- * http://www.mozilla.org/MPL/
-- *
-- * Software distributed under the License is distributed on an "AS IS" basis,
-- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-- * for the specific language governing rights and limitations under the
-- * License.
-- *
-- * Contributor(s):
-- *
-- * IBM
-- * - Binding to permit interfacing between Cairo and SWT
-- * - Copyright (C) 2005 IBM Corp. All Rights Reserved.
-- *
-- * ***** END LICENSE BLOCK ***** */
--
--#include "swt.h"
--#include "cairo_structs.h"
--#include "cairo_stats.h"
--
--#define Cairo_NATIVE(func) Java_org_eclipse_swt_internal_cairo_Cairo_##func
--
--#ifndef NO_cairo_1add_1path
--static void moveTo(cairo_t *cairo, double x, double y) {
-- cairo_move_to(cairo, x, y);
--}
--
--static void lineTo(cairo_t *cairo, double x, double y) {
-- cairo_line_to(cairo, x, y);
--}
--
--static void curveTo(cairo_t *cairo, double x1, double y1, double x2, double y2, double x3, double y3) {
-- cairo_curve_to(cairo, x1, y1, x2, y2, x3, y3);
--}
--
--static void closePath(cairo_t *cairo) {
-- cairo_close_path(cairo);
--}
--
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1add_1path)
-- (JNIEnv *env, jclass that, SWT_PTR arg0, SWT_PTR arg1)
--{
-- Cairo_NATIVE_ENTER(env, that, cairo_1add_1path_FUNC);
-- cairo_new_path((cairo_t *)arg0);
-- cairo_current_path((cairo_t *)arg1, (cairo_move_to_func_t *)moveTo, (cairo_line_to_func_t *)lineTo, (cairo_curve_to_func_t *)curveTo, (cairo_close_path_func_t *)closePath, (void *)arg0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1add_1path_FUNC);
--}
--#endif
--
--#ifndef NO_cairo_1extents
--#include <float.h>
--#define EXTENTS(x, y, extents) \
-- if (x < extents[0]) extents[0] = x; \
-- if (y < extents[1]) extents[1] = y; \
-- if (x > extents[2]) extents[2] = x; \
-- if (y > extents[3]) extents[3] = y;
--
--static void extentsMoveTo(jdouble *extents, double x, double y) {
-- EXTENTS(x, y, extents)
--}
--
--static void extentsLineTo(jdouble *extents, double x, double y) {
-- EXTENTS(x, y, extents)
--}
--
--static void extentsCurveTo(jdouble *extents, double x1, double y1, double x2, double y2, double x3, double y3) {
-- EXTENTS(x1, y1, extents)
-- EXTENTS(x2, y2, extents)
-- EXTENTS(x3, y3, extents)
--}
--
--static void extentsClosePath(jdouble *extents) {
--}
--
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1extents)
-- (JNIEnv *env, jclass that, SWT_PTR arg0, jdoubleArray arg1)
--{
-- jdouble *lparg1=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1extents_FUNC);
-- if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- lparg1[0] = lparg1[1] = DBL_MAX;
-- lparg1[2] = lparg1[3] = DBL_MIN;
-- cairo_current_path((cairo_t *)arg0, (cairo_move_to_func_t *)extentsMoveTo, (cairo_line_to_func_t *)extentsLineTo, (cairo_curve_to_func_t *)extentsCurveTo, (cairo_close_path_func_t *)extentsClosePath, (void *)lparg1);
-- if (lparg1[0] == lparg1[1] && lparg1[0] == DBL_MAX) lparg1[0] = lparg1[1] = 0;
-- if (lparg1[2] == lparg1[3] && lparg1[2] == DBL_MAX) lparg1[2] = lparg1[3] = 0;
--fail:
-- if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1extents_FUNC);
--}
--#endif
--
--#ifndef NO_cairo_1points
--#define PATH_MOVE_TO 1
--#define PATH_LINE_TO 2
--#define PATH_QUAD_TO 3
--#define PATH_CUBIC_TO 4
--#define PATH_CLOSE 5
--typedef struct _points_data {
-- jint *n_types;
-- jint *n_points;
-- jbyte *types;
-- jfloat *points;
--} points_data;
--
--static void pointsMoveTo(points_data *data, double x, double y) {
-- if (data->types != NULL) data->types[data->n_types[0]] = PATH_MOVE_TO;
-- if (data->points != NULL) {
-- int offset = data->n_points[0] * 2;
-- data->points[offset] = x;
-- data->points[offset + 1] = y;
-- }
-- data->n_types[0]++;
-- data->n_points[0]++;
--}
--
--static void pointsLineTo(points_data *data, double x, double y) {
-- if (data->types != NULL) data->types[data->n_types[0]] = PATH_LINE_TO;
-- if (data->points != NULL) {
-- int offset = data->n_points[0] * 2;
-- data->points[offset] = x;
-- data->points[offset + 1] = y;
-- }
-- data->n_types[0]++;
-- data->n_points[0]++;
--}
--
--static void pointsCurveTo(points_data *data, double x1, double y1, double x2, double y2, double x3, double y3) {
-- if (data->types != NULL) data->types[data->n_types[0]] = PATH_CUBIC_TO;
-- if (data->points != NULL) {
-- int offset = data->n_points[0] * 2;
-- data->points[offset] = x1;
-- data->points[offset + 1] = y1;
-- data->points[offset + 2] = x2;
-- data->points[offset + 3] = y2;
-- data->points[offset + 4] = x3;
-- data->points[offset + 5] = y3;
-- }
-- data->n_types[0]++;
-- data->n_points[0] += 3;
--}
--
--static void pointsClosePath(points_data *data) {
-- if (data->types != NULL) data->types[data->n_types[0]] = PATH_CLOSE;
-- data->n_types[0]++;
--}
--
--JNIEXPORT void JNICALL Cairo_NATIVE(cairo_1points)
-- (JNIEnv *env, jclass that, SWT_PTR arg0, jintArray arg1, jintArray arg2, jbyteArray arg3, jfloatArray arg4)
--{
-- points_data data;
-- jint *lparg1=NULL;
-- jint *lparg2=NULL;
-- jbyte *lparg3=NULL;
-- jfloat *lparg4=NULL;
-- Cairo_NATIVE_ENTER(env, that, cairo_1points_FUNC);
-- if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
-- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
-- if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail;
-- if (arg4) if ((lparg4 = (*env)->GetFloatArrayElements(env, arg4, NULL)) == NULL) goto fail;
-- data.n_types = lparg1;
-- data.n_points = lparg2;
-- data.types = lparg3;
-- data.points = lparg4;
-- data.n_types[0] = data.n_points[0] = 0;
-- cairo_current_path((cairo_t *)arg0, (cairo_move_to_func_t *)pointsMoveTo, (cairo_line_to_func_t *)pointsLineTo, (cairo_curve_to_func_t *)pointsCurveTo, (cairo_close_path_func_t *)pointsClosePath, (void *)&data);
--fail:
-- if (arg4 && lparg4) (*env)->ReleaseFloatArrayElements(env, arg4, lparg4, 0);
-- if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
-- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
-- if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
-- Cairo_NATIVE_EXIT(env, that, cairo_1points_FUNC);
--}
--#endif
--
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_stats.c plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_stats.c
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_stats.c Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_stats.c Thu Aug 18 12:35:19 2005
-@@ -24,71 +24,80 @@
-
- #ifdef NATIVE_STATS
-
--int Cairo_nativeFunctionCount = 125;
--int Cairo_nativeFunctionCallCount[125];
-+int Cairo_nativeFunctionCount = 138;
-+int Cairo_nativeFunctionCallCount[138];
- char * Cairo_nativeFunctionNames[] = {
-- "cairo_1add_1path",
-+ "cairo_1append_1path",
- "cairo_1arc",
- "cairo_1arc_1negative",
- "cairo_1clip",
-+ "cairo_1clip_1preserve",
- "cairo_1close_1path",
-- "cairo_1concat_1matrix",
-- "cairo_1copy",
- "cairo_1copy_1page",
-+ "cairo_1copy_1path",
-+ "cairo_1copy_1path_1flat",
- "cairo_1create",
-- "cairo_1current_1alpha",
-- "cairo_1current_1fill_1rule",
-- "cairo_1current_1font",
-- "cairo_1current_1font_1extents",
-- "cairo_1current_1line_1cap",
-- "cairo_1current_1line_1join",
-- "cairo_1current_1line_1width",
-- "cairo_1current_1matrix",
-- "cairo_1current_1miter_1limit",
-- "cairo_1current_1operator",
-- "cairo_1current_1path",
-- "cairo_1current_1path_1flat",
-- "cairo_1current_1pattern",
-- "cairo_1current_1point",
-- "cairo_1current_1rgb_1color",
-- "cairo_1current_1target_1surface",
-- "cairo_1current_1tolerance",
- "cairo_1curve_1to",
-- "cairo_1default_1matrix",
- "cairo_1destroy",
-- "cairo_1extents",
-+ "cairo_1device_1to_1user",
-+ "cairo_1device_1to_1user_1distance",
- "cairo_1fill",
- "cairo_1fill_1extents",
-- "cairo_1font_1destroy",
-+ "cairo_1fill_1preserve",
-+ "cairo_1font_1extents",
- "cairo_1font_1extents_1t_1sizeof",
-- "cairo_1font_1reference",
-+ "cairo_1font_1options_1create",
-+ "cairo_1font_1options_1destroy",
-+ "cairo_1font_1options_1get_1antialias",
-+ "cairo_1font_1options_1set_1antialias",
-+ "cairo_1get_1antialias",
-+ "cairo_1get_1current_1point",
-+ "cairo_1get_1fill_1rule",
-+ "cairo_1get_1font_1face",
-+ "cairo_1get_1font_1matrix",
-+ "cairo_1get_1font_1options",
-+ "cairo_1get_1line_1cap",
-+ "cairo_1get_1line_1join",
-+ "cairo_1get_1line_1width",
-+ "cairo_1get_1matrix",
-+ "cairo_1get_1miter_1limit",
-+ "cairo_1get_1operator",
-+ "cairo_1get_1source",
-+ "cairo_1get_1target",
-+ "cairo_1get_1tolerance",
- "cairo_1glyph_1extents",
- "cairo_1glyph_1path",
- "cairo_1identity_1matrix",
- "cairo_1image_1surface_1create",
- "cairo_1image_1surface_1create_1for_1data",
-+ "cairo_1image_1surface_1get_1height",
-+ "cairo_1image_1surface_1get_1width",
- "cairo_1in_1fill",
- "cairo_1in_1stroke",
-- "cairo_1init_1clip",
-- "cairo_1inverse_1transform_1distance",
-- "cairo_1inverse_1transform_1point",
- "cairo_1line_1to",
-- "cairo_1matrix_1copy",
-- "cairo_1matrix_1create",
-- "cairo_1matrix_1destroy",
-- "cairo_1matrix_1get_1affine",
-+ "cairo_1mask",
-+ "cairo_1mask_1surface",
-+ "cairo_1matrix_1init",
-+ "cairo_1matrix_1init_1identity",
-+ "cairo_1matrix_1init_1rotate",
-+ "cairo_1matrix_1init_1scale",
-+ "cairo_1matrix_1init_1translate",
- "cairo_1matrix_1invert",
- "cairo_1matrix_1multiply",
- "cairo_1matrix_1rotate",
- "cairo_1matrix_1scale",
-- "cairo_1matrix_1set_1affine",
-- "cairo_1matrix_1set_1identity",
- "cairo_1matrix_1transform_1distance",
- "cairo_1matrix_1transform_1point",
- "cairo_1matrix_1translate",
- "cairo_1move_1to",
- "cairo_1new_1path",
-- "cairo_1pattern_1add_1color_1stop",
-+ "cairo_1paint",
-+ "cairo_1paint_1with_1alpha",
-+ "cairo_1path_1data_1t_1sizeof",
-+ "cairo_1path_1destroy",
-+ "cairo_1path_1t_1sizeof",
-+ "cairo_1pattern_1add_1color_1stop_1rgb",
-+ "cairo_1pattern_1add_1color_1stop_1rgba",
- "cairo_1pattern_1create_1for_1surface",
- "cairo_1pattern_1create_1linear",
- "cairo_1pattern_1create_1radial",
-@@ -100,58 +109,62 @@
- "cairo_1pattern_1set_1extend",
- "cairo_1pattern_1set_1filter",
- "cairo_1pattern_1set_1matrix",
-- "cairo_1points",
- "cairo_1rectangle",
- "cairo_1reference",
- "cairo_1rel_1curve_1to",
- "cairo_1rel_1line_1to",
- "cairo_1rel_1move_1to",
-+ "cairo_1reset_1clip",
- "cairo_1restore",
- "cairo_1rotate",
- "cairo_1save",
- "cairo_1scale",
-- "cairo_1scale_1font",
-- "cairo_1select_1font",
-- "cairo_1set_1alpha",
-+ "cairo_1select_1font_1face",
-+ "cairo_1set_1antialias",
- "cairo_1set_1dash",
- "cairo_1set_1fill_1rule",
-- "cairo_1set_1font",
-+ "cairo_1set_1font_1face",
-+ "cairo_1set_1font_1matrix",
-+ "cairo_1set_1font_1options",
-+ "cairo_1set_1font_1size",
- "cairo_1set_1line_1cap",
- "cairo_1set_1line_1join",
- "cairo_1set_1line_1width",
- "cairo_1set_1matrix",
- "cairo_1set_1miter_1limit",
- "cairo_1set_1operator",
-- "cairo_1set_1pattern",
-- "cairo_1set_1rgb_1color",
-- "cairo_1set_1target_1drawable",
-- "cairo_1set_1target_1image",
-- "cairo_1set_1target_1surface",
-+ "cairo_1set_1source",
-+ "cairo_1set_1source_1rgb",
-+ "cairo_1set_1source_1rgba",
-+ "cairo_1set_1source_1surface",
- "cairo_1set_1tolerance",
- "cairo_1show_1glyphs",
- "cairo_1show_1page",
-- "cairo_1show_1surface",
- "cairo_1show_1text",
- "cairo_1status",
-- "cairo_1status_1string",
-+ "cairo_1status_1to_1string",
- "cairo_1stroke",
- "cairo_1stroke_1extents",
-- "cairo_1surface_1create_1for_1image",
-+ "cairo_1stroke_1preserve",
- "cairo_1surface_1create_1similar",
- "cairo_1surface_1destroy",
-- "cairo_1surface_1get_1filter",
-- "cairo_1surface_1get_1matrix",
-+ "cairo_1surface_1finish",
-+ "cairo_1surface_1get_1user_1data",
- "cairo_1surface_1reference",
-- "cairo_1surface_1set_1filter",
-- "cairo_1surface_1set_1matrix",
-- "cairo_1surface_1set_1repeat",
-+ "cairo_1surface_1set_1device_1offset",
-+ "cairo_1surface_1set_1user_1data",
- "cairo_1text_1extents",
- "cairo_1text_1path",
-- "cairo_1transform_1distance",
-- "cairo_1transform_1font",
-- "cairo_1transform_1point",
-+ "cairo_1transform",
- "cairo_1translate",
-+ "cairo_1user_1to_1device",
-+ "cairo_1user_1to_1device_1distance",
- "cairo_1xlib_1surface_1create",
-+ "cairo_1xlib_1surface_1create_1for_1bitmap",
-+ "cairo_1xlib_1surface_1set_1size",
-+ "memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II",
-+ "memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II",
-+ "memmove___3DII",
- };
-
- #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_stats.h plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_stats.h
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_stats.h Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_stats.h Thu Aug 18 12:35:19 2005
-@@ -31,68 +31,77 @@
- #endif
-
- typedef enum {
-- cairo_1add_1path_FUNC,
-+ cairo_1append_1path_FUNC,
- cairo_1arc_FUNC,
- cairo_1arc_1negative_FUNC,
- cairo_1clip_FUNC,
-+ cairo_1clip_1preserve_FUNC,
- cairo_1close_1path_FUNC,
-- cairo_1concat_1matrix_FUNC,
-- cairo_1copy_FUNC,
- cairo_1copy_1page_FUNC,
-+ cairo_1copy_1path_FUNC,
-+ cairo_1copy_1path_1flat_FUNC,
- cairo_1create_FUNC,
-- cairo_1current_1alpha_FUNC,
-- cairo_1current_1fill_1rule_FUNC,
-- cairo_1current_1font_FUNC,
-- cairo_1current_1font_1extents_FUNC,
-- cairo_1current_1line_1cap_FUNC,
-- cairo_1current_1line_1join_FUNC,
-- cairo_1current_1line_1width_FUNC,
-- cairo_1current_1matrix_FUNC,
-- cairo_1current_1miter_1limit_FUNC,
-- cairo_1current_1operator_FUNC,
-- cairo_1current_1path_FUNC,
-- cairo_1current_1path_1flat_FUNC,
-- cairo_1current_1pattern_FUNC,
-- cairo_1current_1point_FUNC,
-- cairo_1current_1rgb_1color_FUNC,
-- cairo_1current_1target_1surface_FUNC,
-- cairo_1current_1tolerance_FUNC,
- cairo_1curve_1to_FUNC,
-- cairo_1default_1matrix_FUNC,
- cairo_1destroy_FUNC,
-- cairo_1extents_FUNC,
-+ cairo_1device_1to_1user_FUNC,
-+ cairo_1device_1to_1user_1distance_FUNC,
- cairo_1fill_FUNC,
- cairo_1fill_1extents_FUNC,
-- cairo_1font_1destroy_FUNC,
-+ cairo_1fill_1preserve_FUNC,
-+ cairo_1font_1extents_FUNC,
- cairo_1font_1extents_1t_1sizeof_FUNC,
-- cairo_1font_1reference_FUNC,
-+ cairo_1font_1options_1create_FUNC,
-+ cairo_1font_1options_1destroy_FUNC,
-+ cairo_1font_1options_1get_1antialias_FUNC,
-+ cairo_1font_1options_1set_1antialias_FUNC,
-+ cairo_1get_1antialias_FUNC,
-+ cairo_1get_1current_1point_FUNC,
-+ cairo_1get_1fill_1rule_FUNC,
-+ cairo_1get_1font_1face_FUNC,
-+ cairo_1get_1font_1matrix_FUNC,
-+ cairo_1get_1font_1options_FUNC,
-+ cairo_1get_1line_1cap_FUNC,
-+ cairo_1get_1line_1join_FUNC,
-+ cairo_1get_1line_1width_FUNC,
-+ cairo_1get_1matrix_FUNC,
-+ cairo_1get_1miter_1limit_FUNC,
-+ cairo_1get_1operator_FUNC,
-+ cairo_1get_1source_FUNC,
-+ cairo_1get_1target_FUNC,
-+ cairo_1get_1tolerance_FUNC,
- cairo_1glyph_1extents_FUNC,
- cairo_1glyph_1path_FUNC,
- cairo_1identity_1matrix_FUNC,
- cairo_1image_1surface_1create_FUNC,
- cairo_1image_1surface_1create_1for_1data_FUNC,
-+ cairo_1image_1surface_1get_1height_FUNC,
-+ cairo_1image_1surface_1get_1width_FUNC,
- cairo_1in_1fill_FUNC,
- cairo_1in_1stroke_FUNC,
-- cairo_1init_1clip_FUNC,
-- cairo_1inverse_1transform_1distance_FUNC,
-- cairo_1inverse_1transform_1point_FUNC,
- cairo_1line_1to_FUNC,
-- cairo_1matrix_1copy_FUNC,
-- cairo_1matrix_1create_FUNC,
-- cairo_1matrix_1destroy_FUNC,
-- cairo_1matrix_1get_1affine_FUNC,
-+ cairo_1mask_FUNC,
-+ cairo_1mask_1surface_FUNC,
-+ cairo_1matrix_1init_FUNC,
-+ cairo_1matrix_1init_1identity_FUNC,
-+ cairo_1matrix_1init_1rotate_FUNC,
-+ cairo_1matrix_1init_1scale_FUNC,
-+ cairo_1matrix_1init_1translate_FUNC,
- cairo_1matrix_1invert_FUNC,
- cairo_1matrix_1multiply_FUNC,
- cairo_1matrix_1rotate_FUNC,
- cairo_1matrix_1scale_FUNC,
-- cairo_1matrix_1set_1affine_FUNC,
-- cairo_1matrix_1set_1identity_FUNC,
- cairo_1matrix_1transform_1distance_FUNC,
- cairo_1matrix_1transform_1point_FUNC,
- cairo_1matrix_1translate_FUNC,
- cairo_1move_1to_FUNC,
- cairo_1new_1path_FUNC,
-- cairo_1pattern_1add_1color_1stop_FUNC,
-+ cairo_1paint_FUNC,
-+ cairo_1paint_1with_1alpha_FUNC,
-+ cairo_1path_1data_1t_1sizeof_FUNC,
-+ cairo_1path_1destroy_FUNC,
-+ cairo_1path_1t_1sizeof_FUNC,
-+ cairo_1pattern_1add_1color_1stop_1rgb_FUNC,
-+ cairo_1pattern_1add_1color_1stop_1rgba_FUNC,
- cairo_1pattern_1create_1for_1surface_FUNC,
- cairo_1pattern_1create_1linear_FUNC,
- cairo_1pattern_1create_1radial_FUNC,
-@@ -104,56 +113,60 @@
- cairo_1pattern_1set_1extend_FUNC,
- cairo_1pattern_1set_1filter_FUNC,
- cairo_1pattern_1set_1matrix_FUNC,
-- cairo_1points_FUNC,
- cairo_1rectangle_FUNC,
- cairo_1reference_FUNC,
- cairo_1rel_1curve_1to_FUNC,
- cairo_1rel_1line_1to_FUNC,
- cairo_1rel_1move_1to_FUNC,
-+ cairo_1reset_1clip_FUNC,
- cairo_1restore_FUNC,
- cairo_1rotate_FUNC,
- cairo_1save_FUNC,
- cairo_1scale_FUNC,
-- cairo_1scale_1font_FUNC,
-- cairo_1select_1font_FUNC,
-- cairo_1set_1alpha_FUNC,
-+ cairo_1select_1font_1face_FUNC,
-+ cairo_1set_1antialias_FUNC,
- cairo_1set_1dash_FUNC,
- cairo_1set_1fill_1rule_FUNC,
-- cairo_1set_1font_FUNC,
-+ cairo_1set_1font_1face_FUNC,
-+ cairo_1set_1font_1matrix_FUNC,
-+ cairo_1set_1font_1options_FUNC,
-+ cairo_1set_1font_1size_FUNC,
- cairo_1set_1line_1cap_FUNC,
- cairo_1set_1line_1join_FUNC,
- cairo_1set_1line_1width_FUNC,
- cairo_1set_1matrix_FUNC,
- cairo_1set_1miter_1limit_FUNC,
- cairo_1set_1operator_FUNC,
-- cairo_1set_1pattern_FUNC,
-- cairo_1set_1rgb_1color_FUNC,
-- cairo_1set_1target_1drawable_FUNC,
-- cairo_1set_1target_1image_FUNC,
-- cairo_1set_1target_1surface_FUNC,
-+ cairo_1set_1source_FUNC,
-+ cairo_1set_1source_1rgb_FUNC,
-+ cairo_1set_1source_1rgba_FUNC,
-+ cairo_1set_1source_1surface_FUNC,
- cairo_1set_1tolerance_FUNC,
- cairo_1show_1glyphs_FUNC,
- cairo_1show_1page_FUNC,
-- cairo_1show_1surface_FUNC,
- cairo_1show_1text_FUNC,
- cairo_1status_FUNC,
-- cairo_1status_1string_FUNC,
-+ cairo_1status_1to_1string_FUNC,
- cairo_1stroke_FUNC,
- cairo_1stroke_1extents_FUNC,
-- cairo_1surface_1create_1for_1image_FUNC,
-+ cairo_1stroke_1preserve_FUNC,
- cairo_1surface_1create_1similar_FUNC,
- cairo_1surface_1destroy_FUNC,
-- cairo_1surface_1get_1filter_FUNC,
-- cairo_1surface_1get_1matrix_FUNC,
-+ cairo_1surface_1finish_FUNC,
-+ cairo_1surface_1get_1user_1data_FUNC,
- cairo_1surface_1reference_FUNC,
-- cairo_1surface_1set_1filter_FUNC,
-- cairo_1surface_1set_1matrix_FUNC,
-- cairo_1surface_1set_1repeat_FUNC,
-+ cairo_1surface_1set_1device_1offset_FUNC,
-+ cairo_1surface_1set_1user_1data_FUNC,
- cairo_1text_1extents_FUNC,
- cairo_1text_1path_FUNC,
-- cairo_1transform_1distance_FUNC,
-- cairo_1transform_1font_FUNC,
-- cairo_1transform_1point_FUNC,
-+ cairo_1transform_FUNC,
- cairo_1translate_FUNC,
-+ cairo_1user_1to_1device_FUNC,
-+ cairo_1user_1to_1device_1distance_FUNC,
- cairo_1xlib_1surface_1create_FUNC,
-+ cairo_1xlib_1surface_1create_1for_1bitmap_FUNC,
-+ cairo_1xlib_1surface_1set_1size_FUNC,
-+ memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II_FUNC,
-+ memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II_FUNC,
-+ memmove___3DII_FUNC,
- } Cairo_FUNCS;
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_structs.c plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_structs.c
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_structs.c Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_structs.c Thu Aug 18 12:35:19 2005
-@@ -65,3 +65,74 @@
- }
- #endif
-
-+#ifndef NO_cairo_path_data_t
-+typedef struct cairo_path_data_t_FID_CACHE {
-+ int cached;
-+ jclass clazz;
-+ jfieldID type, length;
-+} cairo_path_data_t_FID_CACHE;
-+
-+cairo_path_data_t_FID_CACHE cairo_path_data_tFc;
-+
-+void cachecairo_path_data_tFields(JNIEnv *env, jobject lpObject)
-+{
-+ if (cairo_path_data_tFc.cached) return;
-+ cairo_path_data_tFc.clazz = (*env)->GetObjectClass(env, lpObject);
-+ cairo_path_data_tFc.type = (*env)->GetFieldID(env, cairo_path_data_tFc.clazz, "type", "I");
-+ cairo_path_data_tFc.length = (*env)->GetFieldID(env, cairo_path_data_tFc.clazz, "length", "I");
-+ cairo_path_data_tFc.cached = 1;
-+}
-+
-+cairo_path_data_t *getcairo_path_data_tFields(JNIEnv *env, jobject lpObject, cairo_path_data_t *lpStruct)
-+{
-+ if (!cairo_path_data_tFc.cached) cachecairo_path_data_tFields(env, lpObject);
-+ lpStruct->header.type = (*env)->GetIntField(env, lpObject, cairo_path_data_tFc.type);
-+ lpStruct->header.length = (*env)->GetIntField(env, lpObject, cairo_path_data_tFc.length);
-+ return lpStruct;
-+}
-+
-+void setcairo_path_data_tFields(JNIEnv *env, jobject lpObject, cairo_path_data_t *lpStruct)
-+{
-+ if (!cairo_path_data_tFc.cached) cachecairo_path_data_tFields(env, lpObject);
-+ (*env)->SetIntField(env, lpObject, cairo_path_data_tFc.type, (jint)lpStruct->header.type);
-+ (*env)->SetIntField(env, lpObject, cairo_path_data_tFc.length, (jint)lpStruct->header.length);
-+}
-+#endif
-+
-+#ifndef NO_cairo_path_t
-+typedef struct cairo_path_t_FID_CACHE {
-+ int cached;
-+ jclass clazz;
-+ jfieldID status, data, num_data;
-+} cairo_path_t_FID_CACHE;
-+
-+cairo_path_t_FID_CACHE cairo_path_tFc;
-+
-+void cachecairo_path_tFields(JNIEnv *env, jobject lpObject)
-+{
-+ if (cairo_path_tFc.cached) return;
-+ cairo_path_tFc.clazz = (*env)->GetObjectClass(env, lpObject);
-+ cairo_path_tFc.status = (*env)->GetFieldID(env, cairo_path_tFc.clazz, "status", "I");
-+ cairo_path_tFc.data = (*env)->GetFieldID(env, cairo_path_tFc.clazz, "data", "I");
-+ cairo_path_tFc.num_data = (*env)->GetFieldID(env, cairo_path_tFc.clazz, "num_data", "I");
-+ cairo_path_tFc.cached = 1;
-+}
-+
-+cairo_path_t *getcairo_path_tFields(JNIEnv *env, jobject lpObject, cairo_path_t *lpStruct)
-+{
-+ if (!cairo_path_tFc.cached) cachecairo_path_tFields(env, lpObject);
-+ lpStruct->status = (*env)->GetIntField(env, lpObject, cairo_path_tFc.status);
-+ lpStruct->data = (cairo_path_data_t *)(*env)->GetIntField(env, lpObject, cairo_path_tFc.data);
-+ lpStruct->num_data = (*env)->GetIntField(env, lpObject, cairo_path_tFc.num_data);
-+ return lpStruct;
-+}
-+
-+void setcairo_path_tFields(JNIEnv *env, jobject lpObject, cairo_path_t *lpStruct)
-+{
-+ if (!cairo_path_tFc.cached) cachecairo_path_tFields(env, lpObject);
-+ (*env)->SetIntField(env, lpObject, cairo_path_tFc.status, (jint)lpStruct->status);
-+ (*env)->SetIntField(env, lpObject, cairo_path_tFc.data, (jint)lpStruct->data);
-+ (*env)->SetIntField(env, lpObject, cairo_path_tFc.num_data, (jint)lpStruct->num_data);
-+}
-+#endif
-+
-diff -uN plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_structs.h plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_structs.h
---- plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library.orig/cairo_structs.h Thu Aug 18 12:34:57 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library/cairo_structs.h Thu Aug 18 12:35:19 2005
-@@ -33,3 +33,27 @@
- #define cairo_font_extents_t_sizeof() 0
- #endif
-
-+#ifndef NO_cairo_path_data_t
-+void cachecairo_path_data_tFields(JNIEnv *env, jobject lpObject);
-+cairo_path_data_t *getcairo_path_data_tFields(JNIEnv *env, jobject lpObject, cairo_path_data_t *lpStruct);
-+void setcairo_path_data_tFields(JNIEnv *env, jobject lpObject, cairo_path_data_t *lpStruct);
-+#define cairo_path_data_t_sizeof() sizeof(cairo_path_data_t)
-+#else
-+#define cachecairo_path_data_tFields(a,b)
-+#define getcairo_path_data_tFields(a,b,c) NULL
-+#define setcairo_path_data_tFields(a,b,c)
-+#define cairo_path_data_t_sizeof() 0
-+#endif
-+
-+#ifndef NO_cairo_path_t
-+void cachecairo_path_tFields(JNIEnv *env, jobject lpObject);
-+cairo_path_t *getcairo_path_tFields(JNIEnv *env, jobject lpObject, cairo_path_t *lpStruct);
-+void setcairo_path_tFields(JNIEnv *env, jobject lpObject, cairo_path_t *lpStruct);
-+#define cairo_path_t_sizeof() sizeof(cairo_path_t)
-+#else
-+#define cachecairo_path_tFields(a,b)
-+#define getcairo_path_tFields(a,b,c) NULL
-+#define setcairo_path_tFields(a,b,c)
-+#define cairo_path_t_sizeof() 0
-+#endif
-+
diff --git a/java/eclipse/files/manualpatch-plugins-swt-gtk-build.sh b/java/eclipse/files/manualpatch-plugins-swt-gtk-build.sh
deleted file mode 100644
index f1829709a0c9..000000000000
--- a/java/eclipse/files/manualpatch-plugins-swt-gtk-build.sh
+++ /dev/null
@@ -1,42 +0,0 @@
---- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig Fri May 13 11:37:09 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh Sat May 14 21:02:00 2005
-@@ -100,6 +100,33 @@
- ;;
- esac
- ;;
-+ "FreeBSD")
-+ CC=gcc
-+ LD=gcc
-+ XTEST_LIB_PATH=$X11BASE/lib
-+ GECKO_I=`${GECKO_CONFIG} --cflags gtkmozembed`
-+ GECKO_INCLUDES="-I${GECKO_I} -I${LOCALBASE}/include/nspr -I${GECKO_I}/xpcom -I${GECKO_I}/string -I${GECKO_I}/embed_base -I${GECKO_I}/embedstring"
-+ GECKO_L=`${GECKO_CONFIG} --libs gtkmozembed`
-+ GECKO_LIBS="-L${GECKO_L} -L${LOCALBASE}/lib"
-+ case $MODEL in
-+ "amd64")
-+ AWT_LIB_PATH=$JAVA_HOME/jre/lib/amd64
-+ SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
-+ OUTPUT_DIR=../../../org.eclipse.swt.gtk.freebsd.amd64
-+ makefile="make_freebsd.mak"
-+ echo "Building FreeBSD GTK AMD64 version of SWT"
-+ ;;
-+ "i386")
-+ AWT_LIB_PATH=$JAVA_HOME/jre/lib/i386
-+ OUTPUT_DIR=../../../org.eclipse.swt.gtk.freebsd.x86
-+ makefile="make_freebsd.mak"
-+ echo "Building FreeBSD GTK x86 version of SWT"
-+ ;;
-+ *)
-+ echo "*** Unknown MODEL <${MODEL}>"
-+ ;;
-+ esac
-+ ;;
- "SunOS")
- CC=gcc
- LD=gcc
-@@ -128,4 +155,4 @@
-
- export CC LD JAVA_HOME AWT_LIB_PATH XTEST_LIB_PATH GECKO_SDK GECKO_INCLUDES GECKO_LIBS SWT_PTR_CFLAGS CDE_HOME OUTPUT_DIR
-
--make -f $makefile ${1} ${2} ${3} ${4}
-+gmake -f $makefile ${1} ${2} ${3} ${4}
diff --git a/java/eclipse/files/manualpatch-plugins-swt-gtk-make_freebsd.mak b/java/eclipse/files/manualpatch-plugins-swt-gtk-make_freebsd.mak
deleted file mode 100644
index e474d7a4ba87..000000000000
--- a/java/eclipse/files/manualpatch-plugins-swt-gtk-make_freebsd.mak
+++ /dev/null
@@ -1,41 +0,0 @@
---- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak.orig Sat May 14 19:50:23 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak Sat May 14 21:24:34 2005
-@@ -70,7 +70,7 @@
- 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
--CAIRO_OBJECTS = swt.o cairo.o cairo_structs.o cairo_stats.o cairo_custom.o
-+CAIRO_OBJECTS = swt.o cairo.o cairo_structs.o cairo_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 = swt.o xpcom.o xpcom_custom.o xpcom_structs.o xpcom_stats.o
-@@ -78,15 +78,16 @@
- CFLAGS = -O -Wall \
- -DSWT_VERSION=$(SWT_VERSION) \
- $(NATIVE_STATS) \
-- -DLINUX -DGTK \
-+ -DFREEBSD -DGTK \
- -I$(JAVA_HOME)/include \
- -I$(JAVA_HOME)/include/freebsd \
-- -fpic \
-+ -I$(X11BASE)/include \
-+ -fpic -fPIC \
- ${SWT_PTR_CFLAGS}
--LIBS = -shared -fpic -s
-+LIBS = -shared -fpic -fPIC -s
-
-
--all: make_swt make_atk make_gnome make_awt
-+all: make_swt make_atk $(MAKE_GNOME) make_awt $(MAKE_MOZILLA) $(MAKE_CAIRO)
-
- #
- # SWT libs
-@@ -123,8 +124,6 @@
-
- cairo.o: cairo.c cairo.h swt.h
- $(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo.c
--cairo_custom.o: cairo_custom.c cairo_structs.h cairo.h swt.h
-- $(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo_custom.c
- cairo_structs.o: cairo_structs.c cairo_structs.h cairo.h swt.h
- $(CC) $(CFLAGS) $(CAIROCFLAGS) -c cairo_structs.c
- cairo_stats.o: cairo_stats.c cairo_structs.h cairo.h cairo_stats.h swt.h
diff --git a/java/eclipse/files/manualpatch-plugins-swt-motif-build.sh b/java/eclipse/files/manualpatch-plugins-swt-motif-build.sh
deleted file mode 100644
index 67f3e36be840..000000000000
--- a/java/eclipse/files/manualpatch-plugins-swt-motif-build.sh
+++ /dev/null
@@ -1,28 +0,0 @@
---- plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/build.sh.orig Fri May 13 11:37:09 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/build.sh Sat May 14 21:03:05 2005
-@@ -54,6 +54,18 @@
- echo "Building Linux motif x86 version of SWT"
- esac
- ;;
-+ "FreeBSD")
-+ case $MODEL in
-+ i?86)
-+ OUTPUT_DIR=../../../org.eclipse.swt.motif.freebsd.x86
-+ makefile="make_freebsd.mak"
-+ echo "Building FreeBSD motif x86 version of SWT"
-+ ;;
-+ *)
-+ echo "*** Unknown MODEL <${MODEL}>"
-+ ;;
-+ esac
-+ ;;
- "SunOS")
- case $MODEL in
- *)
-@@ -113,4 +125,4 @@
-
- export JAVA_HOME MOTIF_HOME CDE_HOME OUTPUT_DIR
-
--make -f $makefile $1 $2 $3 $4
-\ No newline at end of file
-+gmake -f $makefile $1 $2 $3 $4
diff --git a/java/eclipse/files/manualpatch-plugins-swt-motif-make_freebsd.mak b/java/eclipse/files/manualpatch-plugins-swt-motif-make_freebsd.mak
deleted file mode 100644
index 2470de02e8d1..000000000000
--- a/java/eclipse/files/manualpatch-plugins-swt-motif-make_freebsd.mak
+++ /dev/null
@@ -1,44 +0,0 @@
---- plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/make_freebsd.mak.orig Thu Jul 14 20:06:19 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/motif/library/make_freebsd.mak Thu Jul 14 20:14:57 2005
-@@ -25,26 +25,26 @@
- 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$(JAVA_HOME)/include -I$(MOTIF_HOME)/include -I/usr/X11R6/include
-+CFLAGS = -O -s -Wall -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -DFREEBSD -DMOTIF -fpic -fPIC \
-+ -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 -Wall -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) -DFREEBSD -DGTK -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd -fpic -fPIC `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
-
- 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
-@@ -77,7 +77,7 @@
- ${SWT_PTR_CFLAGS}
- MOZILLALIBS = -shared -s -Wl,--version-script=mozilla_exports -Bsymbolic ${GECKO_LIBS}
-
--all: make_swt make_awt make_gnome make_gtk
-+all: make_swt make_awt $(MAKE_GNOME) make_gtk
-
- make_swt: $(SWT_LIB)
-
diff --git a/java/eclipse/files/patch-assemble b/java/eclipse/files/patch-assemble
deleted file mode 100644
index 69143bf43c7e..000000000000
--- a/java/eclipse/files/patch-assemble
+++ /dev/null
@@ -1,39 +0,0 @@
---- assemble.org.eclipse.sdk.linux.motif.x86.xml.orig Wed Jul 13 00:36:40 2005
-+++ assemble.org.eclipse.sdk.linux.motif.x86.xml Wed Jul 13 00:38:19 2005
-@@ -610,10 +610,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.linux.gtk.x86.xml.orig Wed Jul 13 00:40:52 2005
-+++ assemble.org.eclipse.sdk.linux.gtk.x86.xml Wed Jul 13 00:40:58 2005
-@@ -610,10 +610,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.linux.gtk.x86_64.xml.orig Wed Jul 13 00:43:03 2005
-+++ assemble.org.eclipse.sdk.linux.gtk.x86_64.xml Wed Jul 13 00:43:07 2005
-@@ -610,10 +610,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/files/patch-assemble-freebsd-amd64.xml b/java/eclipse/files/patch-assemble-freebsd-amd64.xml
new file mode 100644
index 000000000000..ca395b2105a3
--- /dev/null
+++ b/java/eclipse/files/patch-assemble-freebsd-amd64.xml
@@ -0,0 +1,23 @@
+--- assemble.org.eclipse.sdk.freebsd.gtk.amd64.xml.orig Thu Oct 26 13:49:34 2006
++++ assemble.org.eclipse.sdk.freebsd.gtk.amd64.xml Thu Oct 26 14:04:20 2006
+@@ -747,18 +747,7 @@
+ <exec executable="rm" dir="${basedir}">
+ <arg line="-rf '${assemblyTempDir}/${collectingFolder}/freebsd.gtk.amd64'"/>
+ </exec>
+- <exec executable="tar" dir="${assemblyTempDir}">
+- <arg line="${tarargs}-cvf '${archiveFullPath}' ${archivePrefix} "/>
+- </exec>
+- <antcall target="gzipResults"/>
+- <exec executable="rm">
+- <arg line="-rf"/>
+- <arg line="'${assemblyTempDir}'"/>
+- </exec>
+- <delete dir="${assemblyTempDir}"/>
+- </target>
+- <target name="gzipResults" unless="runPackager">
+- <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/>
+- <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/>
++ <move file="${eclipse.base}" todir="${buildDirectory}"/>
++ <delete dir="${assemblyTempDir}"/>
+ </target>
+ </project>
diff --git a/java/eclipse/files/patch-assemble-freebsd-x86.xml b/java/eclipse/files/patch-assemble-freebsd-x86.xml
new file mode 100644
index 000000000000..64aacb1b45c6
--- /dev/null
+++ b/java/eclipse/files/patch-assemble-freebsd-x86.xml
@@ -0,0 +1,22 @@
+--- assemble.org.eclipse.sdk.freebsd.gtk.x86.xml.orig Thu Oct 26 13:49:56 2006
++++ assemble.org.eclipse.sdk.freebsd.gtk.x86.xml Thu Oct 26 14:03:12 2006
+@@ -747,18 +747,7 @@
+ <exec executable="rm" dir="${basedir}">
+ <arg line="-rf '${assemblyTempDir}/${collectingFolder}/freebsd.gtk.x86'"/>
+ </exec>
+- <exec executable="tar" dir="${assemblyTempDir}">
+- <arg line="${tarargs}-cvf '${archiveFullPath}' ${archivePrefix} "/>
+- </exec>
+- <antcall target="gzipResults"/>
+- <exec executable="rm">
+- <arg line="-rf"/>
+- <arg line="'${assemblyTempDir}'"/>
+- </exec>
++ <move file="${eclipse.base}" todir="${buildDirectory}"/>
+ <delete dir="${assemblyTempDir}"/>
+- </target>
+- <target name="gzipResults" unless="runPackager">
+- <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/>
+- <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/>
+ </target>
+ </project>
diff --git a/java/eclipse/files/patch-assemble-sdk-all.xml b/java/eclipse/files/patch-assemble-sdk-all.xml
new file mode 100644
index 000000000000..301beea3675e
--- /dev/null
+++ b/java/eclipse/files/patch-assemble-sdk-all.xml
@@ -0,0 +1,15 @@
+--- assemble.org.eclipse.sdk.all.xml.orig Sun Jul 30 00:47:29 2006
++++ assemble.org.eclipse.sdk.all.xml Sun Jul 30 00:48:52 2006
+@@ -25,6 +25,12 @@
+ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.motif.x86">
+ <property name="assembleScriptName" value="assemble.org.eclipse.sdk.linux.motif.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.gtk.amd64">
++ <property name="assembleScriptName" value="assemble.org.eclipse.sdk.freebsd.gtk.amd64.xml"/>
++ </ant>
+ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.solaris.gtk.sparc">
+ <property name="assembleScriptName" value="assemble.org.eclipse.sdk.solaris.gtk.sparc.xml"/>
+ </ant>
diff --git a/java/eclipse/files/patch-build b/java/eclipse/files/patch-build
index 3dbdaaa59210..d389b31c8fd9 100644
--- a/java/eclipse/files/patch-build
+++ b/java/eclipse/files/patch-build
@@ -1,11 +1,18 @@
---- build.orig Wed Jul 13 00:45:46 2005
-+++ build Wed Jul 13 00:46:02 2005
-@@ -52,7 +52,7 @@
+--- build.orig Fri Jul 28 14:48:47 2006
++++ build Tue Jul 25 18:06:18 2006
+@@ -60,7 +60,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" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64_32" ]
-+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" = "hpux-motif-ia64_32" ] || [ "$os-$ws-$arch" = "freebsd-gtk-x86" ] || [ "$os-$ws-$arch" = "freebsd-motif-x86" ] || [ "$os-$ws-$arch" = "freebsd-gtk-amd64" ]
+-if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] || [ "$os-$ws-$arch" = "linux-gtk-ia64" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-x86" ] || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-PA_RISC" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ] || [ "$os-$ws-$arch" = "win32-win32-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] || [ "$os-$ws-$arch" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64_32" ]
++if [ "$os-$ws-$arch" = "linux-motif-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-x86_64" ] || [ "$os-$ws-$arch" = "linux-gtk-ia64" ] || [ "$os-$ws-$arch" = "solaris-motif-sparc" ] || [ "$os-$ws-$arch" = "solaris-gtk-x86" ] || [ "$os-$ws-$arch" = "solaris-gtk-sparc" ] || [ "$os-$ws-$arch" = "aix-motif-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-PA_RISC" ] || [ "$os-$ws-$arch" = "qnx-photon-x86" ] || [ "$os-$ws-$arch" = "win32-win32-x86" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc" ] || [ "$os-$ws-$arch" = "linux-gtk-ppc64" ] || [ "$os-$ws-$arch" = "macosx-carbon-ppc" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64" ] || [ "$os-$ws-$arch" = "hpux-motif-ia64_32" ] || [ "$os-$ws-$arch" = "freebsd-gtk-x86" ] || [ "$os-$ws-$arch" = "freebsd-gtk-amd64" ]
then
ORIGCLASSPATH=$CLASSPATH;export ORIGCLASSPATH
ant -q -buildfile jdtcoresrc/compilejdtcorewithjavac.xml
+@@ -71,4 +71,4 @@
+ else
+ echo "The os-ws-arch combination of $os-$ws-$arch is not valid."
+ exit 1
+- fi
+\ No newline at end of file
++ fi
diff --git a/java/eclipse/files/patch-build.bat b/java/eclipse/files/patch-build.bat
deleted file mode 100644
index 27006ce8beda..000000000000
--- a/java/eclipse/files/patch-build.bat
+++ /dev/null
@@ -1,12 +0,0 @@
---- build.bat.orig Mon Jun 27 21:55:26 2005
-+++ build.bat Sun Jul 17 18:21:31 2005
-@@ -44,6 +44,9 @@
- if %os%-%ws%-%arch%==qnx-photon-x86 goto run
- if %os%-%ws%-%arch%==hpux-motif-ia64_32 goto run
- if %os%-%ws%-%arch%==macosx-carbon-ppc goto run
-+if %os%-%ws%-%arch%==freebsd-motif-x86 goto run
-+if %os%-%ws%-%arch%==freebsd-gtk-x86 goto run
-+if %os%-%ws%-%arch%==freebsd-gtk-amd64 goto run
-
- ECHO The ws os arch combination entered is not valid.
- goto end
diff --git a/java/eclipse/files/patch-build.xml b/java/eclipse/files/patch-build.xml
index d9b351762b89..0c85ddff331d 100644
--- a/java/eclipse/files/patch-build.xml
+++ b/java/eclipse/files/patch-build.xml
@@ -1,22 +1,57 @@
---- build.xml.orig Mon Jun 27 21:55:26 2005
-+++ build.xml Sun Jul 17 18:50:50 2005
-@@ -63,11 +63,11 @@
+--- build.xml.orig Thu Sep 21 10:57:38 2006
++++ build.xml Thu Oct 26 14:32:58 2006
+@@ -86,11 +86,11 @@
<!--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.platform.launchers">
-+ <include name ="**"/>
- </fileset>
+- </fileset>
- </unzip>
-+ </copy>
- <exec dir="${launcherlibs}/library/${installWs}/" executable="sh" failonerror="true">
++ <copy todir="${launcherlibs}">
++ <fileset dir="${buildDirectory}/features/org.eclipse.platform.launchers">
++ <include name ="**"/>
++ </fileset>
++ </copy>
+ <exec dir="${launcherlibs}/library/${installWs}/" executable="sh" failonerror="true">
<arg line="build.sh" />
</exec>
-@@ -265,7 +265,10 @@
+@@ -142,7 +142,6 @@
+ <target name="build.doc.plugins">
+ <!--Build doc plug-ins using antRunner in eclipse to gain access to classpath required for
+ pde.convertSchemaToHTML and help.buildHelpIndex tasks which are used when generating extension-point and help indeces.-->
+- <antcall target="install.eclipse.${archive.format}" />
+ <property name="plugin.destination" value="${buildDirectory}/tmp/eclipse/plugins" />
+ <mkdir dir="${plugin.destination}" />
+
+@@ -179,7 +178,6 @@
+ <fileset dir="${buildDirectory}/${buildLabel}" />
+ </move>
+ <mkdir dir="${buildDirectory}/${buildLabel}" />
+- <antcall target="archive.eclipse.${archive.format}" />
+ <delete dir="${buildDirectory}/${buildLabel}-old" />
+ </target>
+
+@@ -285,8 +283,8 @@
+ </fail>
+
+ <property name="compilerArg" value="-encoding ISO-8859-1" />
+- <property name="javacSource" value="1.3" />
+- <property name="javacTarget" value="1.2" />
++ <property name="javacSource" value="1.5" />
++ <property name="javacTarget" value="1.5" />
+ <property name="javacDebugInfo" value="true" />
+ <property name="javacFailOnError" value="true" />
+
+@@ -306,12 +304,17 @@
+ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="hpux-motif-ia64" />
+ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="hpux-motif-ia64_32" />
+ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="solaris-gtk-x86" />
++ <equals arg1="${install0s}-${installWs}-${installArch}" arg2="freebsd-gtk-x86" />
++ <equals arg1="${install0s}-${installWs}-${installArch}" arg2="freebsd-gtk-amd64" />
+ </or>
+ </condition>
<!--used to add doc plug-ins to result after initial assembly-->
<condition property="archive.format" value="tar">
diff --git a/java/eclipse/files/patch-features-jdt-build.xml b/java/eclipse/files/patch-features-jdt-build.xml
index 05d56b033f71..2e8d2fd0892f 100644
--- a/java/eclipse/files/patch-features-jdt-build.xml
+++ b/java/eclipse/files/patch-features-jdt-build.xml
@@ -1,27 +1,30 @@
---- features/org.eclipse.jdt/build.xml.orig Fri May 13 11:34:52 2005
-+++ features/org.eclipse.jdt/build.xml Sat May 14 18:42:27 2005
-@@ -164,6 +164,24 @@
+--- features/org.eclipse.jdt/build.xml.orig Thu Jul 27 17:40:53 2006
++++ features/org.eclipse.jdt/build.xml Tue Jul 25 19:25:14 2006
+@@ -201,6 +201,18 @@
<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" overwrite="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" overwrite="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" overwrite="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" overwrite="true">
++ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
++ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
++ <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" overwrite="true">
++ <fileset dir="${basedir}/rootfiles" includes="**" />
++ </copy>
++ </target>
+ <target name="rootFilessolaris_gtk_sparc">
+ <mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
+ <copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
+@@ -258,6 +270,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-jdt-source-build.xml b/java/eclipse/files/patch-features-jdt-source-build.xml
index 28af8014b52f..21e2ca212459 100644
--- a/java/eclipse/files/patch-features-jdt-source-build.xml
+++ b/java/eclipse/files/patch-features-jdt-source-build.xml
@@ -1,15 +1,22 @@
---- 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 @@
+--- features/org.eclipse.jdt.source/build.xml.orig Thu Jul 27 17:42:44 2006
++++ features/org.eclipse.jdt.source/build.xml Tue Jul 25 19:23:28 2006
+@@ -99,6 +99,10 @@
</target>
<target name="rootFileslinux_motif_x86">
</target>
-+ <target name="rootFilesfreebsd_motif_x86">
-+ </target>
+ <target name="rootFilesfreebsd_gtk_x86">
-+ </target>
++ </target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ </target>
- <target name="rootFilessolaris_motif_sparc">
- </target>
++ </target>
<target name="rootFilessolaris_gtk_sparc">
+ </target>
+ <target name="rootFilessolaris_gtk_x86">
+@@ -124,6 +128,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-launchers-gtk-build.sh b/java/eclipse/files/patch-features-launchers-gtk-build.sh
deleted file mode 100644
index a3e68b8f3260..000000000000
--- a/java/eclipse/files/patch-features-launchers-gtk-build.sh
+++ /dev/null
@@ -1,41 +0,0 @@
---- features/org.eclipse.platform.launchers/library/gtk/build.sh.orig Fri Apr 1 13:57:19 2005
-+++ features/org.eclipse.platform.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"
-+ ;;
-+ "i386")
-+ 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/files/patch-features-launchers-gtk-make_freebsd.mak b/java/eclipse/files/patch-features-launchers-gtk-make_freebsd.mak
deleted file mode 100644
index 8fef6388c620..000000000000
--- a/java/eclipse/files/patch-features-launchers-gtk-make_freebsd.mak
+++ /dev/null
@@ -1,11 +0,0 @@
---- features/org.eclipse.platform.launchers/library/gtk/make_freebsd.mak.orig Sun Apr 17 20:24:58 2005
-+++ features/org.eclipse.platform.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/files/patch-features-launchers-motif-build.sh b/java/eclipse/files/patch-features-launchers-motif-build.sh
deleted file mode 100644
index 3dfeb9174230..000000000000
--- a/java/eclipse/files/patch-features-launchers-motif-build.sh
+++ /dev/null
@@ -1,33 +0,0 @@
---- features/org.eclipse.platform.launchers/library/motif/build.sh~ Sat Feb 19 12:13:49 2005
-+++ features/org.eclipse.platform.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/files/patch-features-pde-build.xml b/java/eclipse/files/patch-features-pde-build.xml
index 9e18780543c7..0b1e9d8cc8d9 100644
--- a/java/eclipse/files/patch-features-pde-build.xml
+++ b/java/eclipse/files/patch-features-pde-build.xml
@@ -1,15 +1,22 @@
---- 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 @@
+--- features/org.eclipse.pde/build.xml.orig Thu Jul 27 17:44:29 2006
++++ features/org.eclipse.pde/build.xml Tue Jul 25 19:20:37 2006
+@@ -119,6 +119,10 @@
</target>
<target name="rootFileslinux_motif_x86">
</target>
+ <target name="rootFilesfreebsd_gtk_x86">
-+ </target>
++ </target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ </target>
-+ <target name="rootFilesfreebsd_motif_x86">
-+ </target>
- <target name="rootFilessolaris_motif_sparc">
- </target>
++ </target>
<target name="rootFilessolaris_gtk_sparc">
+ </target>
+ <target name="rootFilessolaris_gtk_x86">
+@@ -144,6 +148,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-pde-source-build.xml b/java/eclipse/files/patch-features-pde-source-build.xml
index 7318f68c0dee..587b8477dcf5 100644
--- a/java/eclipse/files/patch-features-pde-source-build.xml
+++ b/java/eclipse/files/patch-features-pde-source-build.xml
@@ -1,15 +1,22 @@
---- 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 @@
+--- features/org.eclipse.pde.source/build.xml.orig Thu Jul 27 17:45:38 2006
++++ features/org.eclipse.pde.source/build.xml Tue Jul 25 19:22:14 2006
+@@ -89,6 +89,10 @@
</target>
<target name="rootFileslinux_motif_x86">
</target>
+ <target name="rootFilesfreebsd_gtk_x86">
-+ </target>
++ </target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ </target>
-+ <target name="rootFilesfreebsd_motif_x86">
-+ </target>
- <target name="rootFilessolaris_motif_sparc">
- </target>
++ </target>
<target name="rootFilessolaris_gtk_sparc">
+ </target>
+ <target name="rootFilessolaris_gtk_x86">
+@@ -114,6 +118,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-plat-launchers-make_freebsd.mak b/java/eclipse/files/patch-features-plat-launchers-make_freebsd.mak
new file mode 100644
index 000000000000..bc11b0c26d5f
--- /dev/null
+++ b/java/eclipse/files/patch-features-plat-launchers-make_freebsd.mak
@@ -0,0 +1,11 @@
+--- features/org.eclipse.platform.launchers/library/gtk/make_linux.mak Thu Jun 29 19:22:13 2006
++++ features/org.eclipse.platform.launchers/library/gtk/make_freebsd.mak Wed Jul 26 18:17:24 2006
+@@ -29,7 +29,7 @@
+ LIBS = `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgdk-x11-2.0
+ CFLAGS = -O -s \
+ -fpic \
+- -DLINUX \
++ -DFREEBSD \
+ -DMOZILLA_FIX \
+ -DDEFAULT_OS="\"$(DEFAULT_OS)\"" \
+ -DDEFAULT_OS_ARCH="\"$(DEFAULT_OS_ARCH)\"" \
diff --git a/java/eclipse/files/patch-features-launchers-library-eclipseShm.c b/java/eclipse/files/patch-features-plat-library-eclipseShm.c
index f351472d932b..5c1d998a0741 100644
--- a/java/eclipse/files/patch-features-launchers-library-eclipseShm.c
+++ b/java/eclipse/files/patch-features-plat-library-eclipseShm.c
@@ -1,5 +1,5 @@
---- features/org.eclipse.platform.launchers/library/eclipseShm.c.orig Fri Apr 1 13:55:58 2005
-+++ features/org.eclipse.platform.launchers/library/eclipseShm.c Sun Apr 3 11:34:02 2005
+--- features/org.eclipse.platform.launchers/library/eclipseShm.c.orig Wed Aug 2 11:32:25 2006
++++ features/org.eclipse.platform.launchers/library/eclipseShm.c Wed Aug 2 11:33:30 2006
@@ -182,11 +182,13 @@
#else /* Unix like platforms */
diff --git a/java/eclipse/files/patch-features-platform-build.xml b/java/eclipse/files/patch-features-platform-build.xml
index 538f383d8474..592bb451b083 100644
--- a/java/eclipse/files/patch-features-platform-build.xml
+++ b/java/eclipse/files/patch-features-platform-build.xml
@@ -1,97 +1,87 @@
---- features/org.eclipse.platform/build.xml.orig Wed Jan 18 16:09:14 2006
-+++ features/org.eclipse.platform/build.xml Sun Jan 29 19:17:52 2006
-@@ -87,6 +87,11 @@
- <property name="os" value="win32"/>
- <property name="ws" value="win32"/>
+--- features/org.eclipse.platform/build.xml.orig Thu Sep 21 10:55:42 2006
++++ features/org.eclipse.platform/build.xml Tue Oct 3 14:33:47 2006
+@@ -27,6 +27,11 @@
+ <property name="os" value="linux"/>
+ <property name="ws" value="gtk"/>
</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="gtk"/>
-+ </ant>
- <ant antfile="build.xml" dir="../../plugins/org.eclipse.core.resources" 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.text" target="${target}">
<property name="arch" value="x86"/>
<property name="os" value="win32"/>
-@@ -117,6 +122,11 @@
- <property name="os" value="hpux"/>
- <property name="ws" value="motif"/>
+@@ -97,6 +102,16 @@
+ <property name="os" value="linux"/>
+ <property name="ws" value="gtk"/>
</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="gtk"/>
-+ </ant>
- <ant antfile="build.xml" dir="../../plugins/org.eclipse.core.resources.win32" target="${target}">
- <property name="arch" value="x86"/>
- <property name="os" value="win32"/>
-@@ -346,7 +356,7 @@
- <copy todir="${feature.base}/features/org.eclipse.platform_3.1.2" failonerror="true" overwrite="false">
++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.core.filesystem.freebsd.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.core.filesystem.freebsd.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.core.filesystem.hpux.PA_RISC" target="${target}">
+ <property name="arch" value="PA_RISC"/>
+ <property name="os" value="hpux"/>
+@@ -391,7 +406,7 @@
+ <copy todir="${feature.base}/features/org.eclipse.platform_3.2.1.r321_v20060921-MGDh_08KUYM-Bvn" failonerror="true" overwrite="false">
<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.2/feature.xml" selfVersion="3.1.2" featureIds="org.eclipse.rcp,3.1.2," pluginIds="org.apache.ant,1.6.5,org.apache.lucene,1.4.3,org.eclipse.ant.core,3.1.1,org.eclipse.compare,3.1.1,org.eclipse.core.boot,3.1.0,org.eclipse.core.filebuffers,3.1.2,org.eclipse.core.resources,3.1.2,org.eclipse.core.resources.compatibility,3.1.0,org.eclipse.core.runtime.compatibility,3.1.0,org.eclipse.osgi.services,3.1.2,org.eclipse.osgi.util,3.1.1,org.eclipse.core.variables,3.1.0,org.eclipse.debug.core,3.1.2,org.eclipse.debug.ui,3.1.2,org.eclipse.help.webapp,3.1.0,org.eclipse.help.base,3.1.0,org.eclipse.help.ui,3.1.1,org.eclipse.help.appserver,3.1.0,org.eclipse.ltk.core.refactoring,3.1.0,org.eclipse.ltk.ui.refactoring,3.1.1,org.eclipse.platform,3.1.2,org.eclipse.platform.doc.user,3.1.1,org.eclipse.search,3.1.2,org.eclipse.team.core,3.1.1,org.eclipse.team.cvs.core,3.1.1,org.eclipse.team.cvs.ssh,3.1.0,org.eclipse.team.cvs.ssh2,3.1.0,org.eclipse.team.cvs.ui,3.1.1,org.eclipse.team.ui,3.1.1,org.eclipse.tomcat,4.1.30.1,org.eclipse.text,3.1.1,org.eclipse.jface.text,3.1.2,org.eclipse.ui.console,3.1.2,org.eclipse.ui.presentations.r21,3.1.0,org.eclipse.ui.intro,3.1.1,org.eclipse.ui.cheatsheets,3.1.1,org.eclipse.ui.browser,3.1.1,org.eclipse.ui.workbench.texteditor,3.1.2,org.eclipse.ui.views,3.1.1,org.eclipse.ui.editors,3.1.1,org.eclipse.ui.forms,3.1.0,org.eclipse.ui.externaltools,3.1.1,org.eclipse.ui.ide,3.1.1,org.eclipse.update.core,3.1.2,org.eclipse.update.scheduler,3.1.0,org.eclipse.update.ui,3.1.1,org.eclipse.ui.workbench.compatibility,3.1.0,org.eclipse.core.resources.hpux,3.1.0,org.eclipse.core.resources.linux,3.1.0,org.eclipse.core.resources.macosx,3.1.0,org.eclipse.core.resources.qnx,3.1.0,org.eclipse.core.resources.win32,3.1.0,org.eclipse.ui.carbon,3.1.1,org.eclipse.ui.win32,3.1.0,org.eclipse.update.core.linux,3.1.0,org.eclipse.update.core.win32,3.1.0,"/>
-+ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.1.2/feature.xml" selfVersion="3.1.2" featureIds="org.eclipse.rcp,3.1.2," pluginIds="org.apache.ant,1.6.5,org.apache.lucene,1.4.3,org.eclipse.ant.core,3.1.1,org.eclipse.compare,3.1.1,org.eclipse.core.boot,3.1.0,org.eclipse.core.filebuffers,3.1.2,org.eclipse.core.resources,3.1.2,org.eclipse.core.resources.compatibility,3.1.0,org.eclipse.core.runtime.compatibility,3.1.0,org.eclipse.osgi.services,3.1.2,org.eclipse.osgi.util,3.1.1,org.eclipse.core.variables,3.1.0,org.eclipse.debug.core,3.1.2,org.eclipse.debug.ui,3.1.2,org.eclipse.help.webapp,3.1.0,org.eclipse.help.base,3.1.0,org.eclipse.help.ui,3.1.1,org.eclipse.help.appserver,3.1.0,org.eclipse.ltk.core.refactoring,3.1.0,org.eclipse.ltk.ui.refactoring,3.1.1,org.eclipse.platform,3.1.2,org.eclipse.platform.doc.user,3.1.1,org.eclipse.search,3.1.2,org.eclipse.team.core,3.1.1,org.eclipse.team.cvs.core,3.1.1,org.eclipse.team.cvs.ssh,3.1.0,org.eclipse.team.cvs.ssh2,3.1.0,org.eclipse.team.cvs.ui,3.1.1,org.eclipse.team.ui,3.1.1,org.eclipse.tomcat,4.1.30.1,org.eclipse.text,3.1.1,org.eclipse.jface.text,3.1.2,org.eclipse.ui.console,3.1.2,org.eclipse.ui.presentations.r21,3.1.0,org.eclipse.ui.intro,3.1.1,org.eclipse.ui.cheatsheets,3.1.1,org.eclipse.ui.browser,3.1.1,org.eclipse.ui.workbench.texteditor,3.1.2,org.eclipse.ui.views,3.1.1,org.eclipse.ui.editors,3.1.1,org.eclipse.ui.forms,3.1.0,org.eclipse.ui.externaltools,3.1.1,org.eclipse.ui.ide,3.1.1,org.eclipse.update.core,3.1.2,org.eclipse.update.scheduler,3.1.0,org.eclipse.update.ui,3.1.1,org.eclipse.ui.workbench.compatibility,3.1.0,org.eclipse.core.resources.hpux,3.1.0,org.eclipse.core.resources.linux,3.1.0,org.eclipse.core.resources.freebsd,3.1.0,org.eclipse.core.resources.macosx,3.1.0,org.eclipse.core.resources.qnx,3.1.0,org.eclipse.core.resources.win32,3.1.0,org.eclipse.ui.carbon,3.1.1,org.eclipse.ui.win32,3.1.0,org.eclipse.update.core.linux,3.1.0,org.eclipse.update.core.freebsd,3.1.0,org.eclipse.update.core.win32,3.1.0,"/>
+- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.2.1.r321_v20060921-MGDh_08KUYM-Bvn/feature.xml" selfVersion="3.2.1.r321_v20060921-MGDh_08KUYM-Bvn" featureIds="org.eclipse.rcp,3.2.1.r321_v20060801-clWbqCmjexIWDqg," pluginIds="com.jcraft.jsch,0.1.28,org.apache.ant,1.6.5,org.apache.lucene,1.4.103.v20060601,org.eclipse.ant.core,3.1.100.v20060531,org.eclipse.compare,3.2.1.M20060711,org.eclipse.core.boot,3.1.100.v20060603,org.eclipse.core.filebuffers,3.2.1.r321_v20060721,org.eclipse.core.filesystem,1.0.0.v20060603,org.eclipse.core.resources,3.2.1.R32x_v20060914,org.eclipse.core.resources.compatibility,3.2.0.v20060603,org.eclipse.core.runtime.compatibility,3.1.100.v20060603,org.eclipse.osgi.services,3.1.100.v20060601,org.eclipse.osgi.util,3.1.100.v20060601,org.eclipse.core.variables,3.1.100.v20060605,org.eclipse.debug.core,3.2.1.v20060823,org.eclipse.debug.ui,3.2.1.v20060823,org.eclipse.help.webapp,3.2.1.R321_v20060803,org.eclipse.help.base,3.2.1.R321_v20060822,org.eclipse.help.ui,3.2.0.v20060602,org.eclipse.help.appserver,3.1.100.v20060602,org.eclipse.ltk.core.refactoring,3.2.1.r321_v20060823,org.eclipse.ltk.ui.refactoring,3.2.1.r321_v20060726,org.eclipse.platform,3.2.0.v20060601,org.eclipse.platform.doc.user,3.2.1.R32x_v200608101155,org.eclipse.search,3.2.1.r321_v20060726,org.eclipse.team.core,3.2.1.M20060711,org.eclipse.team.cvs.core,3.2.1.M200608161750,org.eclipse.team.cvs.ssh,3.2.0.I200606011710,org.eclipse.team.cvs.ssh2,3.2.0.I200606051140,org.eclipse.team.cvs.ui,3.2.1.M20060831,org.eclipse.team.ui,3.2.1.M200608151725,org.eclipse.tomcat,4.1.130.v20060601,org.eclipse.text,3.2.0.v20060605-1400,org.eclipse.jface.text,3.2.1.r321_v20060810,org.eclipse.ui.console,3.1.100.v20060605,org.eclipse.ui.presentations.r21,3.2.0.I20060605-1400,org.eclipse.ui.intro,3.2.1.R321_v20060810,org.eclipse.ui.intro.universal,3.2.1.R321_v20060905,org.eclipse.ui.cheatsheets,3.2.1.R321_v20060720,org.eclipse.ui.browser,3.2.0.v20060602,org.eclipse.ui.navigator,3.2.1.M20060913-0800,org.eclipse.ui.navigator.resources,3.2.1.M20060906-0800b,org.eclipse.ui.workbench.texteditor,3.2.0.v20060605-1400,org.eclipse.ui.views,3.2.1.M20060906-0800,org.eclipse.ui.editors,3.2.1.r321_v20060721,org.eclipse.ui.forms,3.2.0.v20060602,org.eclipse.ui.externaltools,3.1.101.r321_v20060802,org.eclipse.ui.ide,3.2.1.M20060915-1030,org.eclipse.update.core,3.2.1.v20092006,org.eclipse.update.scheduler,3.2.1.v20092006,org.eclipse.update.ui,3.2.1.v20092006,org.eclipse.ui.workbench.compatibility,3.2.0.I20060605-1400,org.eclipse.core.filesystem.hpux.ia64_32,1.0.0.v20060603,org.eclipse.core.filesystem.hpux.PA_RISC,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86_64,1.0.0.v20060603,org.eclipse.core.filesystem.macosx,1.0.0.v20060603,org.eclipse.core.filesystem.qnx.x86,1.0.0.v20060603,org.eclipse.core.filesystem.win32.x86,1.0.0.v20060603,org.eclipse.core.resources.win32,3.2.0.v20060603,org.eclipse.ui.carbon,3.2.0.I20060605-1400,org.eclipse.ui.win32,3.2.0.I20060605-1400,org.eclipse.update.core.linux,3.2.0.v20060605,org.eclipse.update.core.win32,3.2.1.v20092006,org.eclipse.ui.views.properties.tabbed,3.2.1.M20060830-0800,org.eclipse.core.runtime.compatibility.registry,3.2.1.R32x_v20060907,"/>
++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform_3.2.1.r321_v20060921-MGDh_08KUYM-Bvn/feature.xml" selfVersion="3.2.1.r321_v20060921-MGDh_08KUYM-Bvn" featureIds="org.eclipse.rcp,3.2.1.r321_v20060801-clWbqCmjexIWDqg," pluginIds="com.jcraft.jsch,0.1.28,org.apache.ant,1.6.5,org.apache.lucene,1.4.103.v20060601,org.eclipse.ant.core,3.1.100.v20060531,org.eclipse.compare,3.2.1.M20060711,org.eclipse.core.boot,3.1.100.v20060603,org.eclipse.core.filebuffers,3.2.1.r321_v20060721,org.eclipse.core.filesystem,1.0.0.v20060603,org.eclipse.core.resources,3.2.1.R32x_v20060914,org.eclipse.core.resources.compatibility,3.2.0.v20060603,org.eclipse.core.runtime.compatibility,3.1.100.v20060603,org.eclipse.osgi.services,3.1.100.v20060601,org.eclipse.osgi.util,3.1.100.v20060601,org.eclipse.core.variables,3.1.100.v20060605,org.eclipse.debug.core,3.2.1.v20060823,org.eclipse.debug.ui,3.2.1.v20060823,org.eclipse.help.webapp,3.2.1.R321_v20060803,org.eclipse.help.base,3.2.1.R321_v20060822,org.eclipse.help.ui,3.2.0.v20060602,org.eclipse.help.appserver,3.1.100.v20060602,org.eclipse.ltk.core.refactoring,3.2.1.r321_v20060823,org.eclipse.ltk.ui.refactoring,3.2.1.r321_v20060726,org.eclipse.platform,3.2.0.v20060601,org.eclipse.platform.doc.user,3.2.1.R32x_v200608101155,org.eclipse.search,3.2.1.r321_v20060726,org.eclipse.team.core,3.2.1.M20060711,org.eclipse.team.cvs.core,3.2.1.M200608161750,org.eclipse.team.cvs.ssh,3.2.0.I200606011710,org.eclipse.team.cvs.ssh2,3.2.0.I200606051140,org.eclipse.team.cvs.ui,3.2.1.M20060831,org.eclipse.team.ui,3.2.1.M200608151725,org.eclipse.tomcat,4.1.130.v20060601,org.eclipse.text,3.2.0.v20060605-1400,org.eclipse.jface.text,3.2.1.r321_v20060810,org.eclipse.ui.console,3.1.100.v20060605,org.eclipse.ui.presentations.r21,3.2.0.I20060605-1400,org.eclipse.ui.intro,3.2.1.R321_v20060810,org.eclipse.ui.intro.universal,3.2.1.R321_v20060905,org.eclipse.ui.cheatsheets,3.2.1.R321_v20060720,org.eclipse.ui.browser,3.2.0.v20060602,org.eclipse.ui.navigator,3.2.1.M20060913-0800,org.eclipse.ui.navigator.resources,3.2.1.M20060906-0800b,org.eclipse.ui.workbench.texteditor,3.2.0.v20060605-1400,org.eclipse.ui.views,3.2.1.M20060906-0800,org.eclipse.ui.editors,3.2.1.r321_v20060721,org.eclipse.ui.forms,3.2.0.v20060602,org.eclipse.ui.externaltools,3.1.101.r321_v20060802,org.eclipse.ui.ide,3.2.1.M20060915-1030,org.eclipse.update.core,3.2.1.v20092006,org.eclipse.update.scheduler,3.2.1.v20092006,org.eclipse.update.ui,3.2.1.v20092006,org.eclipse.ui.workbench.compatibility,3.2.0.I20060605-1400,org.eclipse.core.filesystem.hpux.ia64_32,1.0.0.v20060603,org.eclipse.core.filesystem.hpux.PA_RISC,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86,1.0.0.v20060603,org.eclipse.core.filesystem.freebsd.x86,1.0.0.v20060603,org.eclipse.core.filesystem.linux.x86_64,1.0.0.v20060603,org.eclipse.core.filesystem.freebsd.amd64,1.0.0.v20060603,org.eclipse.core.filesystem.macosx,1.0.0.v20060603,org.eclipse.core.filesystem.qnx.x86,1.0.0.v20060603,org.eclipse.core.filesystem.win32.x86,1.0.0.v20060603,org.eclipse.core.resources.win32,3.2.0.v20060603,org.eclipse.ui.carbon,3.2.0.I20060605-1400,org.eclipse.ui.win32,3.2.0.I20060605-1400,org.eclipse.update.core.linux,3.2.0.v20060605,org.eclipse.update.core.freebsd,3.2.0.v20060605,org.eclipse.update.core.win32,3.2.1.v20092006,org.eclipse.ui.views.properties.tabbed,3.2.1.M20060830-0800,org.eclipse.core.runtime.compatibility.registry,3.2.1.R32x_v20060907,"/>
<antcall target="rootFiles${os}_${ws}_${arch}"/>
</target>
<target name="rootFileswin32_win32_x86">
-@@ -372,6 +382,19 @@
+@@ -432,6 +447,18 @@
<chmod perm="755" dir="${feature.base}/linux.gtk.x86/${collectingFolder}" includes="eclipse" />
<chmod perm="755" dir="${feature.base}/linux.gtk.x86/${collectingFolder}" includes="*.so*" />
</target>
+ <target name="rootFilesfreebsd_gtk_x86">
-+ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
-+ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
-+ <fileset dir="${basedir}/about_files/freebsd.gtk.x86" includes="**" />
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/x86" includes="**" />
-+ <fileset dir="${basedir}/gtk" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.gtk.freebsd.x86" includes="libcairo.so.1" />
-+ <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" />
-+ <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="*.so*" />
-+ </target>
++ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
++ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
++ <fileset dir="${basedir}/about_files/freebsd.gtk.x86" includes="**" />
++ <fileset dir="${basedir}/../../features/org.eclipse.platform.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" />
++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="*.so*" />
++ </target>
<target name="rootFileslinux_gtk_ppc">
<mkdir dir="${feature.base}/linux.gtk.ppc/${collectingFolder}"/>
<copy todir="${feature.base}/linux.gtk.ppc/${collectingFolder}" failonerror="true" overwrite="true">
-@@ -407,6 +430,19 @@
+@@ -466,6 +493,18 @@
<chmod perm="755" dir="${feature.base}/linux.gtk.x86_64/${collectingFolder}" includes="eclipse" />
<chmod perm="755" dir="${feature.base}/linux.gtk.x86_64/${collectingFolder}" includes="*.so*" />
</target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
-+ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
-+ <fileset dir="${basedir}/about_files/freebsd.gtk.amd64" includes="**" />
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/amd64" includes="**" />
-+ <fileset dir="${basedir}/gtk" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.gtk.freebsd.amd64" includes="libcairo.so.1" />
-+ <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" />
-+ <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="*.so*" />
-+ </target>
++ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
++ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
++ <fileset dir="${basedir}/about_files/freebsd.gtk.amd64" includes="**" />
++ <fileset dir="${basedir}/../../features/org.eclipse.platform.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" />
++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="*.so*" />
++ </target>
<target name="rootFileslinux_gtk_ia64">
<mkdir dir="${feature.base}/linux.gtk.ia64/${collectingFolder}"/>
<copy todir="${feature.base}/linux.gtk.ia64/${collectingFolder}" failonerror="true" overwrite="true">
-@@ -431,6 +467,21 @@
- </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" overwrite="true">
-+ <fileset dir="${basedir}/about_files/freebsd.motif.x86" includes="**" />
-+ <fileset dir="${basedir}/motif" includes="**" />
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/motif/freebsd/x86" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.motif.freebsd.x86" includes="libXm.so.2" />
-+ <fileset dir="${basedir}/motif" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.motif.freebsd.x86" includes="libcairo.so.1" />
-+ <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" />
-+ <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}"/>
+@@ -579,6 +618,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-platform-launchers-build.sh b/java/eclipse/files/patch-features-platform-launchers-build.sh
new file mode 100644
index 000000000000..edeeca893c36
--- /dev/null
+++ b/java/eclipse/files/patch-features-platform-launchers-build.sh
@@ -0,0 +1,26 @@
+--- features/org.eclipse.platform.launchers/library/gtk/build.sh.orig Thu Jul 27 18:07:06 2006
++++ features/org.eclipse.platform.launchers/library/gtk/build.sh Wed Jul 26 18:19:38 2006
+@@ -92,6 +92,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
++ ;;
+ *)
+ echo "Unknown OS -- build aborted"
+ ;;
diff --git a/java/eclipse/files/patch-features-platform-source-build.xml b/java/eclipse/files/patch-features-platform-source-build.xml
index 999ec9f46d96..4191aab66551 100644
--- a/java/eclipse/files/patch-features-platform-source-build.xml
+++ b/java/eclipse/files/patch-features-platform-source-build.xml
@@ -1,46 +1,55 @@
---- features/org.eclipse.platform.source/build.xml.orig Wed Jan 18 16:09:14 2006
-+++ features/org.eclipse.platform.source/build.xml Sun Jan 29 19:36:36 2006
-@@ -72,6 +72,21 @@
- <property name="os" value="hpux"/>
- <property name="ws" value="motif"/>
+--- features/org.eclipse.platform.source/build.xml.orig Thu Sep 21 10:55:43 2006
++++ features/org.eclipse.platform.source/build.xml Tue Oct 3 14:44:24 2006
+@@ -27,6 +27,11 @@
+ <property name="os" value="linux"/>
+ <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.freebsd.gtk.x86" target="${target}">
-+ <property name="arch" value="x86"/>
-+ <property name="os" value="freebsd"/>
-+ <property name="ws" value="gtk"/>
-+ </ant>
++ <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.macosx.carbon.ppc" target="${target}">
+ <property name="arch" value="ppc"/>
+ <property name="os" value="macosx"/>
+@@ -42,6 +47,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.doc.isv" target="${target}">
- <property name="arch" value="x86"/>
- <property name="os" value="win32"/>
-@@ -136,7 +151,7 @@
- <copy todir="${feature.base}/features/org.eclipse.platform.source_3.1.2" failonerror="true" overwrite="false">
++ <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.hpux.motif.PA_RISC" target="${target}">
+ <property name="arch" value="PA_RISC"/>
+ <property name="os" value="hpux"/>
+@@ -131,7 +141,7 @@
+ <copy todir="${feature.base}/features/org.eclipse.platform.source_3.2.1.r321_v20060921-MGDh_08KUYM-Bvn" failonerror="true" overwrite="false">
<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.2/feature.xml" selfVersion="3.1.2" featureIds="org.eclipse.rcp.source,3.1.2," pluginIds="org.eclipse.platform.doc.isv,3.1.2,org.eclipse.platform.source,3.1.2,org.eclipse.platform.source.linux.gtk.ia64,3.1.2,org.eclipse.platform.source.hpux.motif.ia64_32,3.1.2,org.eclipse.platform.source.qnx.photon.x86,3.1.2,org.eclipse.platform.source.linux.gtk.ppc,3.1.2,org.eclipse.platform.source.hpux.motif.PA_RISC,3.1.2,org.eclipse.platform.source.hpux.motif.ia64,3.1.2,org.eclipse.platform.source.linux.gtk.x86_64,3.1.2,org.eclipse.platform.source.linux.gtk.ppc64,3.1.2,org.eclipse.platform.source.macosx.carbon.ppc,3.1.2,org.eclipse.platform.source.linux.gtk.x86,3.1.2,org.eclipse.platform.source.win32.win32.x86,3.1.2,org.eclipse.platform.source.linux.motif.x86,3.1.2,"/>
-+ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.1.2/feature.xml" selfVersion="3.1.2" featureIds="org.eclipse.rcp.source,3.1.2," pluginIds="org.eclipse.platform.doc.isv,3.1.2,org.eclipse.platform.source,3.1.2,org.eclipse.platform.source.linux.gtk.ia64,3.1.2,org.eclipse.platform.source.hpux.motif.ia64_32,3.1.2,org.eclipse.platform.source.qnx.photon.x86,3.1.2,org.eclipse.platform.source.linux.gtk.ppc,3.1.2,org.eclipse.platform.source.hpux.motif.PA_RISC,3.1.2,org.eclipse.platform.source.hpux.motif.ia64,3.1.2,org.eclipse.platform.source.linux.gtk.x86_64,3.1.2,org.eclipse.platform.source.freebsd.gtk.amd64,3.1.2,org.eclipse.platform.source.linux.gtk.ppc64,3.1.2,org.eclipse.platform.source.macosx.carbon.ppc,3.1.2,org.eclipse.platform.source.linux.gtk.x86,3.1.2,org.eclipse.platform.source.freebsd.gtk.x86,3.1.2,org.eclipse.platform.source.win32.win32.x86,3.1.2,org.eclipse.platform.source.linux.motif.x86,3.1.2,org.eclipse.platform.source.freebsd.motif.x86,3.1.2,"/>
+- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.2.1.r321_v20060921-MGDh_08KUYM-Bvn/feature.xml" selfVersion="3.2.1.r321_v20060921-MGDh_08KUYM-Bvn" featureIds="org.eclipse.rcp.source,3.2.1.r321_v20060801-clWbqCmjexIWDqg," pluginIds="org.eclipse.platform.doc.isv,3.2.1.r321_v2006030,org.eclipse.platform.source,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.hpux.motif.ia64_32,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.ia64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.qnx.photon.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.ppc,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.hpux.motif.PA_RISC,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.x86_64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.ppc64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.macosx.carbon.ppc,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.win32.win32.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.motif.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,"/>
++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.platform.source_3.2.1.r321_v20060921-MGDh_08KUYM-Bvn/feature.xml" selfVersion="3.2.1.r321_v20060921-MGDh_08KUYM-Bvn" featureIds="org.eclipse.rcp.source,3.2.1.r321_v20060801-clWbqCmjexIWDqg," pluginIds="org.eclipse.platform.doc.isv,3.2.1.r321_v2006030,org.eclipse.platform.source,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.hpux.motif.ia64_32,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.ia64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.qnx.photon.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.ppc,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.hpux.motif.PA_RISC,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.x86_64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.freebsd.gtk.amd64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.ppc64,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.macosx.carbon.ppc,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.gtk.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.freebsd.gtk.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.win32.win32.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,org.eclipse.platform.source.linux.motif.x86,3.2.1.r321_v20060921-MGDh_08KUYM-Bvn,"/>
<antcall target="rootFiles${os}_${ws}_${arch}"/>
</target>
<target name="rootFileswin32_win32_x86">
-@@ -153,6 +168,12 @@
+@@ -150,6 +160,10 @@
</target>
<target name="rootFileslinux_motif_x86">
</target>
+ <target name="rootFilesfreebsd_gtk_x86">
-+ </target>
++ </target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ </target>
-+ <target name="rootFilesfreebsd_motif_x86">
-+ </target>
- <target name="rootFilessolaris_motif_sparc">
- </target>
++ </target>
<target name="rootFilessolaris_gtk_sparc">
+ </target>
+ <target name="rootFilessolaris_gtk_x86">
+@@ -175,6 +189,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-platform-source-feature.xml b/java/eclipse/files/patch-features-platform-source-feature.xml
index 0a8377fdd6fd..953e33efd7d8 100644
--- a/java/eclipse/files/patch-features-platform-source-feature.xml
+++ b/java/eclipse/files/patch-features-platform-source-feature.xml
@@ -1,10 +1,9 @@
---- features/org.eclipse.platform.source/feature.xml.orig Thu Sep 29 15:51:40 2005
-+++ features/org.eclipse.platform.source/feature.xml Tue Oct 4 20:34:16 2005
-@@ -25,4 +25,7 @@
- <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.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.1"/>
- <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.1"/>
-+ <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.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.1.1"/>
-+ <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.1.1"/>
+--- features/org.eclipse.platform.source/feature.xml.orig Sat Jul 29 21:49:46 2006
++++ features/org.eclipse.platform.source/feature.xml Sat Jul 29 21:52:58 2006
+@@ -28,4 +28,6 @@
+ <plugin ws="gtk" os="linux" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.gtk.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
+ <plugin ws="win32" os="win32" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.win32.win32.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
+ <plugin ws="motif" os="linux" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.linux.motif.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
++ <plugin ws="gtk" os="freebsd" fragment="true" arch="x86" download-size="0" install-size="0" id="org.eclipse.platform.source.freebsd.gtk.x86" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
++ <plugin ws="gtk" os="freebsd" fragment="true" arch="amd64" download-size="0" install-size="0" id="org.eclipse.platform.source.freebsd.gtk.amd64" version="3.2.0.v20060609m-BBt47n6hlEUsvBO"/>
</feature>
diff --git a/java/eclipse/files/patch-features-rcp-build.xml b/java/eclipse/files/patch-features-rcp-build.xml
index 583292602655..f76a76f03d53 100644
--- a/java/eclipse/files/patch-features-rcp-build.xml
+++ b/java/eclipse/files/patch-features-rcp-build.xml
@@ -1,80 +1,75 @@
---- features/org.eclipse.rcp/build.xml.orig Wed Jan 18 16:09:14 2006
-+++ features/org.eclipse.rcp/build.xml Sun Jan 29 20:51:40 2006
-@@ -127,6 +127,21 @@
- <property name="os" value="win32"/>
- <property name="ws" value="win32"/>
+--- features/org.eclipse.rcp/build.xml.orig Thu Sep 21 10:55:42 2006
++++ features/org.eclipse.rcp/build.xml Tue Oct 3 14:51:03 2006
+@@ -77,6 +77,11 @@
+ <property name="os" value="linux"/>
+ <property name="ws" value="gtk"/>
</ant>
-+ <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.motif.freebsd.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.swt.gtk.freebsd.x86" target="${target}">
-+ <property name="arch" value="x86"/>
-+ <property name="os" value="freebsd"/>
-+ <property name="ws" value="gtk"/>
-+ </ant>
++ <property name="arch" value="x86"/>
++ <property name="os" value="freebsd"/>
++ <property name="ws" value="gtk"/>
++ </ant>
+ <ant antfile="build.xml" dir="../../plugins/org.eclipse.osgi" target="${target}">
+ <property name="arch" value="x86"/>
+ <property name="os" value="win32"/>
+@@ -167,6 +172,11 @@
+ <property name="os" value="linux"/>
+ <property name="ws" value="gtk"/>
+ </ant>
+ <ant antfile="build.xml" dir="../../plugins/org.eclipse.swt.gtk.freebsd.amd64" target="${target}">
-+ <property name="arch" value="amd64"/>
-+ <property name="os" value="freebsd"/>
-+ <property name="ws" value="gtk"/>
-+ </ant>
++ <property name="arch" value="amd64"/>
++ <property name="os" value="freebsd"/>
++ <property name="ws" value="gtk"/>
++ </ant>
</target>
<target name="all.features" depends="init">
</target>
-@@ -185,7 +200,7 @@
- <copy todir="${feature.base}/features/org.eclipse.rcp_3.1.2" failonerror="true" overwrite="false">
+@@ -225,7 +235,7 @@
+ <copy todir="${feature.base}/features/org.eclipse.rcp_3.2.1.r321_v20060801-clWbqCmjexIWDqg" failonerror="true" overwrite="false">
<fileset dir="${basedir}" includes="feature.xml,license.html,epl-v10.html,feature.properties,eclipse_update_120.jpg" />
</copy>
-- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp_3.1.2/feature.xml" selfVersion="3.1.2" featureIds="" pluginIds="org.eclipse.core.commands,3.1.0,org.eclipse.core.expressions,3.1.0,org.eclipse.core.runtime,3.1.2,org.eclipse.osgi,3.1.2,org.eclipse.help,3.1.0,org.eclipse.swt,3.1.0,org.eclipse.jface,3.1.1,org.eclipse.ui,3.1.2,org.eclipse.ui.workbench,3.1.2,org.eclipse.update.configurator,3.1.0,org.eclipse.swt.win32.win32.x86,3.1.2,org.eclipse.swt.gtk.linux.x86,3.1.1,org.eclipse.swt.gtk.solaris.sparc,3.1.1,org.eclipse.swt.gtk.linux.ppc,3.1.1,org.eclipse.swt.gtk.linux.x86_64,3.1.1,org.eclipse.swt.carbon.macosx.ppc,3.1.1,org.eclipse.swt.motif.aix.ppc,3.1.1,org.eclipse.swt.motif.hpux.PA_RISC,3.1.1,org.eclipse.swt.motif.linux.x86,3.1.1,org.eclipse.swt.gtk.linux.ia64,3.1.1,org.eclipse.swt.motif.solaris.sparc,3.1.1,org.eclipse.swt.photon.qnx.x86,3.1.1,org.eclipse.swt.motif.hpux.ia64_32,3.1.1,org.eclipse.rcp,3.1.0,"/>
-+ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp_3.1.2/feature.xml" selfVersion="3.1.2" featureIds="" pluginIds="org.eclipse.core.commands,3.1.0,org.eclipse.core.expressions,3.1.0,org.eclipse.core.runtime,3.1.2,org.eclipse.osgi,3.1.2,org.eclipse.help,3.1.0,org.eclipse.swt,3.1.0,org.eclipse.jface,3.1.1,org.eclipse.ui,3.1.2,org.eclipse.ui.workbench,3.1.2,org.eclipse.update.configurator,3.1.0,org.eclipse.swt.win32.win32.x86,3.1.2,org.eclipse.swt.gtk.linux.x86,3.1.1,org.eclipse.swt.gtk.freebsd.x86,3.1.1,org.eclipse.swt.gtk.solaris.sparc,3.1.1,org.eclipse.swt.gtk.linux.ppc,3.1.1,org.eclipse.swt.gtk.linux.x86_64,3.1.1,org.eclipse.swt.gtk.freebsd.amd64,3.1.1,org.eclipse.swt.carbon.macosx.ppc,3.1.1,org.eclipse.swt.motif.aix.ppc,3.1.1,org.eclipse.swt.motif.hpux.PA_RISC,3.1.1,org.eclipse.swt.motif.linux.x86,3.1.1,org.eclipse.swt.motif.freebsd.x86,3.1.1,org.eclipse.swt.gtk.linux.ia64,3.1.1,org.eclipse.swt.motif.solaris.sparc,3.1.1,org.eclipse.swt.photon.qnx.x86,3.1.1,org.eclipse.swt.motif.hpux.ia64_32,3.1.1,org.eclipse.rcp,3.1.0,"/>
+- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp_3.2.1.r321_v20060801-clWbqCmjexIWDqg/feature.xml" selfVersion="3.2.1.r321_v20060801-clWbqCmjexIWDqg" featureIds="" pluginIds="com.ibm.icu,3.4.5,org.eclipse.core.commands,3.2.0.I20060605-1400,org.eclipse.core.jobs,3.2.0.v20060603,org.eclipse.core.expressions,3.2.1.r321_v20060721,org.eclipse.core.runtime,3.2.0.v20060603,org.eclipse.core.runtime.compatibility.auth,3.2.0.v20060601,org.eclipse.osgi,3.2.1.R32x_v20060919,org.eclipse.help,3.2.1.R321_v20060920,org.eclipse.swt,3.2.1.v3235e,org.eclipse.jface,3.2.1.M20060908-1000,org.eclipse.jface.databinding,1.0.0.I20060605-1400,org.eclipse.ui,3.2.1.M20060913-0800,org.eclipse.ui.workbench,3.2.1.M20060906-0800,org.eclipse.update.configurator,3.2.1.v20092006,org.eclipse.swt.win32.win32.x86,3.2.1.v3235,org.eclipse.swt.gtk.linux.x86,3.2.1.v3235,org.eclipse.swt.gtk.solaris.sparc,3.2.1.v3235,org.eclipse.swt.gtk.solaris.x86,3.2.0.R3_2_maintenance,org.eclipse.swt.gtk.linux.ppc,3.2.1.v3235,org.eclipse.swt.gtk.linux.x86_64,3.2.1.v3235,org.eclipse.swt.carbon.macosx,3.2.1.v3235,org.eclipse.swt.motif.aix.ppc,3.2.1.v3235,org.eclipse.swt.motif.hpux.PA_RISC,3.2.1.v3235,org.eclipse.swt.motif.linux.x86,3.2.1.v3235,org.eclipse.swt.gtk.linux.ia64,3.2.0.R3_2_maintenance,org.eclipse.swt.motif.solaris.sparc,3.2.1.v3235,org.eclipse.swt.photon.qnx.x86,3.2.1.v3235,org.eclipse.swt.motif.hpux.ia64_32,3.2.1,org.eclipse.rcp,3.2.0.v20060605,org.eclipse.core.contenttype,3.2.0.v20060603,org.eclipse.equinox.common,3.2.0.v20060603,org.eclipse.equinox.preferences,3.2.1.R32x_v20060717,org.eclipse.equinox.registry,3.2.1.R32x_v20060814,"/>
++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp_3.2.1.r321_v20060801-clWbqCmjexIWDqg/feature.xml" selfVersion="3.2.1.r321_v20060801-clWbqCmjexIWDqg" featureIds="" pluginIds="com.ibm.icu,3.4.5,org.eclipse.core.commands,3.2.0.I20060605-1400,org.eclipse.core.jobs,3.2.0.v20060603,org.eclipse.core.expressions,3.2.1.r321_v20060721,org.eclipse.core.runtime,3.2.0.v20060603,org.eclipse.core.runtime.compatibility.auth,3.2.0.v20060601,org.eclipse.osgi,3.2.1.R32x_v20060919,org.eclipse.help,3.2.1.R321_v20060920,org.eclipse.swt,3.2.1.v3235e,org.eclipse.jface,3.2.1.M20060908-1000,org.eclipse.jface.databinding,1.0.0.I20060605-1400,org.eclipse.ui,3.2.1.M20060913-0800,org.eclipse.ui.workbench,3.2.1.M20060906-0800,org.eclipse.update.configurator,3.2.1.v20092006,org.eclipse.swt.win32.win32.x86,3.2.1.v3235,org.eclipse.swt.gtk.linux.x86,3.2.1.v3235,org.eclipse.swt.gtk.freebsd.x86,3.2.1.v3235,org.eclipse.swt.gtk.solaris.sparc,3.2.1.v3235,org.eclipse.swt.gtk.solaris.x86,3.2.0.R3_2_maintenance,org.eclipse.swt.gtk.linux.ppc,3.2.1.v3235,org.eclipse.swt.gtk.linux.x86_64,3.2.1.v3235,org.eclipse.swt.gtk.freebsd.amd64,3.2.1.v3235,org.eclipse.swt.carbon.macosx,3.2.1.v3235,org.eclipse.swt.motif.aix.ppc,3.2.1.v3235,org.eclipse.swt.motif.hpux.PA_RISC,3.2.1.v3235,org.eclipse.swt.motif.linux.x86,3.2.1.v3235,org.eclipse.swt.gtk.linux.ia64,3.2.0.R3_2_maintenance,org.eclipse.swt.motif.solaris.sparc,3.2.1.v3235,org.eclipse.swt.photon.qnx.x86,3.2.1.v3235,org.eclipse.swt.motif.hpux.ia64_32,3.2.1,org.eclipse.rcp,3.2.0.v20060605,org.eclipse.core.contenttype,3.2.0.v20060603,org.eclipse.equinox.common,3.2.0.v20060603,org.eclipse.equinox.preferences,3.2.1.R32x_v20060717,org.eclipse.equinox.registry,3.2.1.R32x_v20060814,"/>
<antcall target="rootFiles${os}_${ws}_${arch}"/>
</target>
<target name="rootFileswin32_win32_x86">
-@@ -353,6 +368,46 @@
- </copy>
- <chmod perm="755" dir="${feature.base}/qnx.photon.x86/${collectingFolder}" includes="eclipse" />
+@@ -320,6 +330,30 @@
+ <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_gtk_x86">
-+ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
-+ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.gtk.x86" includes="**" />
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/x86" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.gtk.freebsd.x86" includes="libcairo.so.1" />
-+ <fileset dir="${basedir}/rootfiles" includes="**" />
-+ <fileset dir="${basedir}/../org.eclipse.platform/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" />
-+ <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="*.so*" />
-+ </target>
++ <mkdir dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}"/>
++ <copy todir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" failonerror="true" overwrite="true">
++ <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.gtk.x86" includes="**" />
++ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/x86" includes="**" />
++ <fileset dir="${basedir}/rootfiles" includes="**" />
++ <fileset dir="${basedir}/../org.eclipse.platform/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" />
++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.x86/${collectingFolder}" includes="*.so*" />
++ </target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
-+ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.gtk.amd64" includes="**" />
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/amd64" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.gtk.freebsd.amd64" includes="libcairo.so.1" />
-+ <fileset dir="${basedir}/rootfiles" includes="**" />
-+ <fileset dir="${basedir}/../org.eclipse.platform/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" />
-+ <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${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" overwrite="true">
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.motif.x86" includes="**" />
-+ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/motif/freebsd/x86" includes="**" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.motif.freebsd.x86" includes="libXm.so.2" />
-+ <fileset dir="${basedir}/../../plugins/org.eclipse.swt.motif.freebsd.x86" includes="libcairo.so.1" />
-+ <fileset dir="${basedir}/rootfiles" includes="**" />
-+ <fileset dir="${basedir}/../org.eclipse.platform/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" />
-+ <chmod perm="755" dir="${feature.base}/freebsd.motif.x86/${collectingFolder}" includes="*.so*" />
-+ </target>
-
- <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: org.eclipse.rcp.">
- <delete dir="${feature.temp.folder}"/>
++ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
++ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
++ <fileset dir="${basedir}/../../features/org.eclipse.platform/about_files/freebsd.gtk.amd64" includes="**" />
++ <fileset dir="${basedir}/../../features/org.eclipse.platform.launchers/bin/gtk/freebsd/amd64" includes="**" />
++ <fileset dir="${basedir}/rootfiles" includes="**" />
++ <fileset dir="${basedir}/../org.eclipse.platform/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" />
++ <chmod perm="755" dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" includes="*.so*" />
++ </target>
+ <target name="rootFilessolaris_gtk_sparc">
+ <mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
+ <copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
+@@ -406,6 +440,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-rcp-source-build.xml b/java/eclipse/files/patch-features-rcp-source-build.xml
index c5a229c98f41..a063f9c62697 100644
--- a/java/eclipse/files/patch-features-rcp-source-build.xml
+++ b/java/eclipse/files/patch-features-rcp-source-build.xml
@@ -1,46 +1,55 @@
---- features/org.eclipse.rcp.source/build.xml.orig Wed Jan 18 16:09:14 2006
-+++ features/org.eclipse.rcp.source/build.xml Sun Jan 29 20:56:53 2006
-@@ -47,6 +47,21 @@
+--- features/org.eclipse.rcp.source/build.xml.orig Thu Sep 21 10:55:42 2006
++++ features/org.eclipse.rcp.source/build.xml Tue Oct 3 14:56:42 2006
+@@ -37,6 +37,11 @@
<property name="os" value="linux"/>
<property name="ws" value="gtk"/>
</ant>
-+ <ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.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.rcp.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.rcp.source.freebsd.gtk.x86" target="${target}">
-+ <property name="arch" value="x86"/>
-+ <property name="os" value="freebsd"/>
-+ <property name="ws" value="gtk"/>
-+ </ant>
++ <property name="arch" value="x86"/>
++ <property name="os" value="freebsd"/>
++ <property name="ws" value="gtk"/>
++ </ant>
<ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.source.macosx.carbon.ppc" target="${target}">
<property name="arch" value="ppc"/>
<property name="os" value="macosx"/>
-@@ -135,7 +150,7 @@
- <copy todir="${feature.base}/features/org.eclipse.rcp.source_3.1.2" failonerror="true" overwrite="false">
+@@ -57,6 +62,11 @@
+ <property name="os" value="linux"/>
+ <property name="ws" value="gtk"/>
+ </ant>
++ <ant antfile="build.xml" dir="../../plugins/org.eclipse.rcp.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.rcp.source.hpux.motif.PA_RISC" target="${target}">
+ <property name="arch" value="PA_RISC"/>
+ <property name="os" value="hpux"/>
+@@ -140,7 +150,7 @@
+ <copy todir="${feature.base}/features/org.eclipse.rcp.source_3.2.1.r321_v20060801-clWbqCmjexIWDqg" failonerror="true" overwrite="false">
<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.rcp.source_3.1.2/feature.xml" selfVersion="3.1.2" featureIds="" pluginIds="org.eclipse.rcp.source,3.1.2,org.eclipse.rcp.source.hpux.motif.ia64_32,3.1.2,org.eclipse.rcp.source.linux.gtk.ia64,3.1.2,org.eclipse.rcp.source.qnx.photon.x86,3.1.2,org.eclipse.rcp.source.linux.gtk.ppc,3.1.2,org.eclipse.rcp.source.hpux.motif.PA_RISC,3.1.2,org.eclipse.rcp.source.linux.gtk.x86_64,3.1.2,org.eclipse.rcp.source.solaris.gtk.sparc,3.1.2,org.eclipse.rcp.source.macosx.carbon.ppc,3.1.2,org.eclipse.rcp.source.linux.gtk.x86,3.1.2,org.eclipse.rcp.source.aix.motif.ppc,3.1.2,org.eclipse.rcp.source.win32.win32.x86,3.1.2,org.eclipse.rcp.source.solaris.motif.sparc,3.1.2,org.eclipse.rcp.source.linux.motif.x86,3.1.2,"/>
-+ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp.source_3.1.2/feature.xml" selfVersion="3.1.2" featureIds="" pluginIds="org.eclipse.rcp.source,3.1.2,org.eclipse.rcp.source.hpux.motif.ia64_32,3.1.2,org.eclipse.rcp.source.linux.gtk.ia64,3.1.2,org.eclipse.rcp.source.qnx.photon.x86,3.1.2,org.eclipse.rcp.source.linux.gtk.ppc,3.1.2,org.eclipse.rcp.source.hpux.motif.PA_RISC,3.1.2,org.eclipse.rcp.source.linux.gtk.x86_64,3.1.2,org.eclipse.rcp.source.freebsd.gtk.amd64,3.1.2,org.eclipse.rcp.source.solaris.gtk.sparc,3.1.2,org.eclipse.rcp.source.macosx.carbon.ppc,3.1.2,org.eclipse.rcp.source.linux.gtk.x86,3.1.2,org.eclipse.rcp.source.freebsd.gtk.x86,3.1.2,org.eclipse.rcp.source.aix.motif.ppc,3.1.2,org.eclipse.rcp.source.win32.win32.x86,3.1.2,org.eclipse.rcp.source.solaris.motif.sparc,3.1.2,org.eclipse.rcp.source.linux.motif.x86,3.1.2,org.eclipse.rcp.source.freebsd.motif.x86,3.1.2,"/>
+- <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp.source_3.2.1.r321_v20060801-clWbqCmjexIWDqg/feature.xml" selfVersion="3.2.1.r321_v20060801-clWbqCmjexIWDqg" featureIds="" pluginIds="com.ibm.icu.source,3.4.5,org.eclipse.rcp.source,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.hpux.motif.ia64_32,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.ia64,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.qnx.photon.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.ppc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.hpux.motif.PA_RISC,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.x86_64,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.solaris.gtk.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.solaris.gtk.sparc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.macosx.carbon.ppc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.aix.motif.ppc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.win32.win32.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.solaris.motif.sparc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.motif.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,"/>
++ <eclipse.idReplacer featureFilePath="${feature.base}/features/org.eclipse.rcp.source_3.2.1.r321_v20060801-clWbqCmjexIWDqg/feature.xml" selfVersion="3.2.1.r321_v20060801-clWbqCmjexIWDqg" featureIds="" pluginIds="com.ibm.icu.source,3.4.5,org.eclipse.rcp.source,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.hpux.motif.ia64_32,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.ia64,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.qnx.photon.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.ppc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.hpux.motif.PA_RISC,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.x86_64,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.freebsd.gtk.amd64,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.solaris.gtk.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.solaris.gtk.sparc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.macosx.carbon.ppc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.gtk.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.freebsd.gtk.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.aix.motif.ppc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.win32.win32.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.solaris.motif.sparc,3.2.1.r321_v20060801-clWbqCmjexIWDqg,org.eclipse.rcp.source.linux.motif.x86,3.2.1.r321_v20060801-clWbqCmjexIWDqg,"/>
<antcall target="rootFiles${os}_${ws}_${arch}"/>
</target>
<target name="rootFileswin32_win32_x86">
-@@ -168,6 +183,12 @@
+@@ -159,6 +169,10 @@
</target>
- <target name="rootFilesqnx_photon_x86">
+ <target name="rootFileslinux_motif_x86">
</target>
+ <target name="rootFilesfreebsd_gtk_x86">
-+ </target>
++ </target>
+ <target name="rootFilesfreebsd_gtk_amd64">
-+ </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.rcp.source.">
- <delete dir="${feature.temp.folder}"/>
++ </target>
+ <target name="rootFilessolaris_gtk_sparc">
+ </target>
+ <target name="rootFilessolaris_gtk_x86">
+@@ -184,6 +198,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-features-sdk-build.xml b/java/eclipse/files/patch-features-sdk-build.xml
index 2217569febc1..daa37eb7489f 100644
--- a/java/eclipse/files/patch-features-sdk-build.xml
+++ b/java/eclipse/files/patch-features-sdk-build.xml
@@ -1,15 +1,30 @@
---- 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">
+--- features/org.eclipse.sdk/build.xml.orig Thu Jul 27 17:49:19 2006
++++ features/org.eclipse.sdk/build.xml Wed Jul 26 16:11:29 2006
+@@ -123,6 +123,18 @@
+ <fileset dir="${basedir}/motif" 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" overwrite="true">
++ <fileset dir="${basedir}/gtk" includes="**" />
++ </copy>
++ </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">
++ <mkdir dir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}"/>
++ <copy todir="${feature.base}/freebsd.gtk.amd64/${collectingFolder}" failonerror="true" overwrite="true">
++ <fileset dir="${basedir}/gtk" includes="**" />
++ </copy>
++ </target>
+ <target name="rootFilessolaris_gtk_sparc">
+ <mkdir dir="${feature.base}/solaris.gtk.sparc/${collectingFolder}"/>
+ <copy todir="${feature.base}/solaris.gtk.sparc/${collectingFolder}" failonerror="true" overwrite="true">
+@@ -172,6 +184,8 @@
+ <antcall target="rootFileslinux_gtk_x86_64"/>
+ <antcall target="rootFileslinux_gtk_ia64"/>
+ <antcall target="rootFileslinux_motif_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_x86"/>
++ <antcall target="rootFilesfreebsd_gtk_amd64"/>
+ <antcall target="rootFilessolaris_gtk_sparc"/>
+ <antcall target="rootFilessolaris_gtk_x86"/>
+ <antcall target="rootFilessolaris_motif_sparc"/>
diff --git a/java/eclipse/files/patch-package-freebsd-amd64.xml b/java/eclipse/files/patch-package-freebsd-amd64.xml
new file mode 100644
index 000000000000..668c49d830ea
--- /dev/null
+++ b/java/eclipse/files/patch-package-freebsd-amd64.xml
@@ -0,0 +1,23 @@
+--- package.org.eclipse.sdk.freebsd.gtk.amd64.xml.orig Thu Oct 26 13:50:27 2006
++++ package.org.eclipse.sdk.freebsd.gtk.amd64.xml Thu Oct 26 14:07:26 2006
+@@ -57,18 +57,7 @@
+ <param name="elementName" value="com.jcraft.jsch_0.1.28"/>
+ </antcall>
+ <eclipse.brand root="${eclipse.base}/freebsd.gtk.amd64/${collectingFolder}" icons="${launcherIcons}" name="${launcherName}" os="${os}" />
+- <exec executable="tar" dir="${assemblyTempDir}">
+- <arg line="${tarargs}-rvf '${archiveFullPath}' ${archivePrefix} "/>
+- </exec>
+- <antcall target="gzipResults"/>
+- <exec executable="rm">
+- <arg line="-rf"/>
+- <arg line="'${assemblyTempDir}'"/>
+- </exec>
+- <delete dir="${assemblyTempDir}"/>
+- </target>
+- <target name="gzipResults">
+- <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/>
+- <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/>
++ <move file="${eclipse.base}" todir="${buildDirectory}"/>
++ <delete dir="${assemblyTempDir}"/>
+ </target>
+ </project>
diff --git a/java/eclipse/files/patch-package-freebsd-x86.xml b/java/eclipse/files/patch-package-freebsd-x86.xml
new file mode 100644
index 000000000000..917e9e05f11d
--- /dev/null
+++ b/java/eclipse/files/patch-package-freebsd-x86.xml
@@ -0,0 +1,23 @@
+--- package.org.eclipse.sdk.freebsd.gtk.x86.xml.orig Thu Oct 26 13:50:12 2006
++++ package.org.eclipse.sdk.freebsd.gtk.x86.xml Thu Oct 26 14:06:35 2006
+@@ -57,18 +57,7 @@
+ <param name="elementName" value="com.jcraft.jsch_0.1.28"/>
+ </antcall>
+ <eclipse.brand root="${eclipse.base}/freebsd.gtk.x86/${collectingFolder}" icons="${launcherIcons}" name="${launcherName}" os="${os}" />
+- <exec executable="tar" dir="${assemblyTempDir}">
+- <arg line="${tarargs}-rvf '${archiveFullPath}' ${archivePrefix} "/>
+- </exec>
+- <antcall target="gzipResults"/>
+- <exec executable="rm">
+- <arg line="-rf"/>
+- <arg line="'${assemblyTempDir}'"/>
+- </exec>
+- <delete dir="${assemblyTempDir}"/>
+- </target>
+- <target name="gzipResults">
+- <move file="${archiveFullPath}" tofile="${assemblyTempDir}/${collectingFolder}/tmp.tar"/>
+- <gzip src="${assemblyTempDir}/${collectingFolder}/tmp.tar" zipfile="${archiveFullPath}"/>
++ <move file="${eclipse.base}" todir="${buildDirectory}"/>
++ <delete dir="${assemblyTempDir}"/>
+ </target>
+ </project>
diff --git a/java/eclipse/files/patch-package-sdk-all.xml b/java/eclipse/files/patch-package-sdk-all.xml
new file mode 100644
index 000000000000..e2a8489936a3
--- /dev/null
+++ b/java/eclipse/files/patch-package-sdk-all.xml
@@ -0,0 +1,15 @@
+--- package.org.eclipse.sdk.all.xml.orig Sun Jul 30 03:12:52 2006
++++ package.org.eclipse.sdk.all.xml Sun Jul 30 03:14:02 2006
+@@ -19,6 +19,12 @@
+ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.gtk.x86_64">
+ <property name="assembleScriptName" value="package.org.eclipse.sdk.linux.gtk.x86_64.xml"/>
+ </ant>
++ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.x86">
++ <property name="assembleScriptName" value="package.org.eclipse.sdk.freebsd.gtk.x86.xml"/>
++ </ant>
++ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.freebsd.gtk.amd64">
++ <property name="assembleScriptName" value="package.org.eclipse.sdk.freebsd.gtk.amd64.xml"/>
++ </ant>
+ <ant antfile="${customTargets}" target="assemble.org.eclipse.sdk.linux.gtk.ia64">
+ <property name="assembleScriptName" value="package.org.eclipse.sdk.linux.gtk.ia64.xml"/>
+ </ant>
diff --git a/java/eclipse/files/patch-plugins-core-build.xml b/java/eclipse/files/patch-plugins-core-build.xml
deleted file mode 100644
index 42dfac0c7320..000000000000
--- a/java/eclipse/files/patch-plugins-core-build.xml
+++ /dev/null
@@ -1,53 +0,0 @@
---- plugins/org.eclipse.core.resources.freebsd/build.xml.orig Wed Jul 27 09:39:39 2005
-+++ plugins/org.eclipse.core.resources.freebsd/build.xml Wed Jul 27 22:09:53 2005
-@@ -19,6 +19,20 @@
- </fileset>
- </path>
- <property name="bootclasspath" refid="path_bootclasspath"/>
-+ <!-- 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 environment="env" />
-+ <property name="CC" value="${env.CC}"/>
-+ <property name="jdk-path" value="${env.JAVA_HOME}"/>
-+ <property name="destination" value="${eclipse-home}/org.eclipse.core.resources.freebsd/os/freebsd/x86/"/>
-+ <property name="obj-path" value="${eclipse-home}/org.eclipse.core.resources/src/"/>
-+ <property name="src-path" value="${eclipse-home}/org.eclipse.core.resources.freebsd/src/"/>
-+
-+ <!-- sets the properties -->
-+ <property name="library-name" value="libcore_3_1_0"/>
-+ <property name="library-platform" value="so"/>
-+ <property name="library-file" value="${library-name}.${library-platform}"/>
-
- <target name="init" depends="properties">
- <condition property="pluginTemp" value="${buildTempFolder}/plugins">
-@@ -50,6 +64,29 @@
- </target>
-
- <target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.core.resources.freebsd.">
-+ <echo message="Building ${library-file}"/>
-+
-+ <property name="header-path" value="${jdk-path}/include"/>
-+ <property name="header-freebsd-path" value="${header-path}/freebsd" />
-+
-+ <echo message="${CC} -o ${library-file} -shared -fPIC -I${src-path} -I${header-path} -I${header-freebsd-path} ${library-file} -static -lc"/>
-+
-+ <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}"/>
-+ <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>
-
- <target name="build.sources" depends="init">
diff --git a/java/eclipse/files/patch-plugins-core-resources-build.xml b/java/eclipse/files/patch-plugins-core-resources-build.xml
new file mode 100644
index 000000000000..3c5016c681ef
--- /dev/null
+++ b/java/eclipse/files/patch-plugins-core-resources-build.xml
@@ -0,0 +1,24 @@
+--- plugins/org.eclipse.core.resources/build.xml.orig Thu Jul 27 18:44:45 2006
++++ plugins/org.eclipse.core.resources/build.xml Tue Jul 25 19:18:21 2006
+@@ -102,6 +102,10 @@
+ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86/@dot"/>
+ <pathelement path="../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
+ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
++ <pathelement path="../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
++ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
++ <pathelement path="../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
++ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
+ <pathelement path="../org.eclipse.core.filesystem.macosx/@dot"/>
+ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.macosx/@dot"/>
+ <pathelement path="../org.eclipse.core.filesystem.qnx.x86/@dot"/>
+@@ -176,6 +180,10 @@
+ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86/@dot"/>
+ <pathelement path="../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
+ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.linux.x86_64/@dot"/>
++ <pathelement path="../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
++ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.x86/@dot"/>
++ <pathelement path="../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
++ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.freebsd.amd64/@dot"/>
+ <pathelement path="../org.eclipse.core.filesystem.macosx/@dot"/>
+ <pathelement path="${build.result.folder}/../org.eclipse.core.filesystem.macosx/@dot"/>
+ <pathelement path="../org.eclipse.core.filesystem.qnx.x86/@dot"/>
diff --git a/java/eclipse/files/patch-plugins-plat-i-customBuildCallbacks.xml b/java/eclipse/files/patch-plugins-plat-i-customBuildCallbacks.xml
new file mode 100644
index 000000000000..654b7ed32864
--- /dev/null
+++ b/java/eclipse/files/patch-plugins-plat-i-customBuildCallbacks.xml
@@ -0,0 +1,11 @@
+--- plugins/org.eclipse.platform.doc.isv/customBuildCallbacks.xml.orig Sun Jul 30 00:30:12 2006
++++ plugins/org.eclipse.platform.doc.isv/customBuildCallbacks.xml Sun Jul 30 00:30:38 2006
+@@ -88,6 +88,8 @@
+ <!-- ===================================================================== -->
+ <target name="post.gather.bin.parts">
+ </target>
++ <target name="pre.gather.bin.parts">
++ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before the target gather.sources -->
diff --git a/java/eclipse/files/patch-plugins-plat-u-customBuildCallbacks.xml b/java/eclipse/files/patch-plugins-plat-u-customBuildCallbacks.xml
new file mode 100644
index 000000000000..ea350ab185e6
--- /dev/null
+++ b/java/eclipse/files/patch-plugins-plat-u-customBuildCallbacks.xml
@@ -0,0 +1,11 @@
+--- plugins/org.eclipse.platform.doc.user/customBuildCallbacks.xml.orig Sun Jul 30 00:26:51 2006
++++ plugins/org.eclipse.platform.doc.user/customBuildCallbacks.xml Sun Jul 30 00:28:00 2006
+@@ -82,6 +82,8 @@
+ <!-- ===================================================================== -->
+ <target name="post.gather.bin.parts">
+ </target>
++ <target name="pre.gather.bin.parts">
++ </target>
+
+ <target name="build.index" description="Builds search index for the plug-in: org.eclipse.platform.doc.user." if="eclipse.running">
+ <help.buildHelpIndex manifest="plugin.xml" destination="."/>
diff --git a/java/eclipse/files/patch-plugins-update-src-build.xml b/java/eclipse/files/patch-plugins-update-src-build.xml
deleted file mode 100644
index 1fa5cb7ccbd2..000000000000
--- a/java/eclipse/files/patch-plugins-update-src-build.xml
+++ /dev/null
@@ -1,31 +0,0 @@
---- 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/files/patch-plugins-update-src-update.c b/java/eclipse/files/patch-plugins-update-src-update.c
deleted file mode 100644
index 6d3991ec7358..000000000000
--- a/java/eclipse/files/patch-plugins-update-src-update.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- plugins/org.eclipse.update.core.linux/src/update.c.orig Fri May 13 11:37:58 2005
-+++ plugins/org.eclipse.update.core.linux/src/update.c Sat May 14 19:01:31 2005
-@@ -12,7 +12,12 @@
- /* bug 82520 : need to include stdlib.h */
- # include <stdlib.h>
- # include <sys/types.h>
-+#ifdef __FreeBSD__
-+# include <sys/param.h>
-+# include <sys/mount.h>
-+#else
- # include <sys/statfs.h>
-+#endif
- # include <update.h>
-
- /*
diff --git a/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh b/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh
new file mode 100644
index 000000000000..5242e07e782f
--- /dev/null
+++ b/java/eclipse/files/post-patch-plugins-swt-gtk-build.sh
@@ -0,0 +1,83 @@
+--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig Thu Jun 29 19:22:14 2006
++++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh Wed Sep 6 15:55:41 2006
+@@ -31,6 +31,10 @@
+ SWT_OS=solaris
+ MAKEFILE=make_solaris.mak
+ ;;
++ "FreeBSD")
++ SWT_OS=freebsd
++ MAKEFILE=make_freebsd.mak
++ ;;
+ *)
+ SWT_OS=`uname -s | tr -s '[:upper:]' '[:lower:]'`
+ MAKEFILE=make_linux.mak
+@@ -61,7 +65,7 @@
+ esac
+
+ # For 64-bit CPUs, we have a switch
+-if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' ]; then
++if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'amd64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' ]; then
+ SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
+ export SWT_PTR_CFLAGS
+ if [ -d /lib64 ]; then
+@@ -70,32 +74,38 @@
+ fi
+ fi
+
+-if [ x`pkg-config --exists gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 && echo YES` = "xYES" ]; then
+- echo "libgnomeui-2.0 found, compiling SWT program support using GNOME"
+- MAKE_GNOME=make_gnome
+-else
+- echo "libgnome-2.0 and libgnomeui-2.0 not found:"
+- echo " *** SWT Program support for GNOME will not be compiled."
++if [ ${MAKE_GNOME} != "" ]; then
++ if [ x`pkg-config --exists gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 && echo YES` = "xYES" ]; then
++ echo "libgnomeui-2.0 found, compiling SWT program support using GNOME"
++ MAKE_GNOME=make_gnome
++ else
++ echo "libgnome-2.0 and libgnomeui-2.0 not found:"
++ echo " *** SWT Program support for GNOME will not be compiled."
++ fi
+ fi
+
+-if [ x`pkg-config --exists cairo && echo YES` = "xYES" ]; then
+- echo "Cairo found, compiling SWT support for the cairo graphics library."
+- MAKE_CAIRO=make_cairo
+-else
+- echo "Cairo not found:"
+- echo " *** Advanced graphics support using cairo will not be compiled."
++if [ ${MAKE_CAIRO} != "" ]; then
++ if [ x`pkg-config --exists cairo && echo YES` = "xYES" ]; then
++ echo "Cairo found, compiling SWT support for the cairo graphics library."
++ MAKE_CAIRO=make_cairo
++ else
++ echo "Cairo not found:"
++ echo " *** Advanced graphics support using cairo will not be compiled."
++ fi
+ fi
+
+-if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then
+- if [ x`pkg-config --exists mozilla-xpcom && echo YES` = "xYES" ]; then
+- GECKO_INCLUDES=`pkg-config --cflags mozilla-xpcom`
+- GECKO_LIBS=`pkg-config --libs mozilla-xpcom`
+- export GECKO_INCLUDES
+- export GECKO_LIBS
+- MAKE_MOZILLA=make_mozilla
+- else
+- echo "Mozilla/XPCOM libraries not found:"
+- echo " *** Mozilla embedding support will not be compiled."
++if [ ${MAKE_MOZILLA} != "" ]; then
++ if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then
++ if [ x`pkg-config --exists mozilla-xpcom && echo YES` = "xYES" ]; then
++ GECKO_INCLUDES=`pkg-config --cflags mozilla-xpcom`
++ GECKO_LIBS=`pkg-config --libs mozilla-xpcom`
++ export GECKO_INCLUDES
++ export GECKO_LIBS
++ MAKE_MOZILLA=make_mozilla
++ else
++ echo "Mozilla/XPCOM libraries not found:"
++ echo " *** Mozilla embedding support will not be compiled."
++ fi
+ fi
+ fi
+
diff --git a/java/eclipse/files/post-patch-plugins-swt-gtk-make_freebsd.mak b/java/eclipse/files/post-patch-plugins-swt-gtk-make_freebsd.mak
new file mode 100644
index 000000000000..8fd9bd272332
--- /dev/null
+++ b/java/eclipse/files/post-patch-plugins-swt-gtk-make_freebsd.mak
@@ -0,0 +1,32 @@
+--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak.orig Mon Oct 9 16:06:20 2006
++++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak Mon Oct 9 16:27:59 2006
+@@ -79,6 +79,10 @@
+ -I. \
+ -I$(JAVA_HOME)/include \
+ -I$(JAVA_HOME)/include/freebsd \
++ -I$(LOCALBASE)/include/mozilla \
++ -I$(LOCALBASE)/include/mozilla/profdirserviceprovider \
++ -I$(LOCALBASE)/include/mozilla/string \
++ -I$(LOCALBASE)/include/nspr \
+ ${SWT_PTR_CFLAGS}
+ MOZILLALIBS = -shared -s -Wl,--version-script=mozilla_exports -Bsymbolic
+
+@@ -98,15 +102,16 @@
+ CFLAGS = -O -Wall \
+ -DSWT_VERSION=$(SWT_VERSION) \
+ $(NATIVE_STATS) \
+- -DLINUX -DGTK \
++ -DFREEBSD -DGTK \
+ -I$(JAVA_HOME)/include \
+ -I$(JAVA_HOME)/include/freebsd \
++ -I$(X11BASE)/include \
+ -fPIC \
+ ${SWT_PTR_CFLAGS}
+ LIBS = -shared -fPIC -s
+
+
+-all: make_swt make_atk make_gnome make_glx
++all: make_swt make_atk $(MAKE_GNOME) make_glx $(MAKE_MOZILLA) $(MAKE_CAIRO)
+
+ #
+ # SWT libs
diff --git a/java/eclipse/files/manualpatch-plugins-swt-gtk-os_custom.h b/java/eclipse/files/post-patch-plugins-swt-gtk-os_custom.h
index 0e47fc2a22f4..10d6dbb14bfa 100644
--- a/java/eclipse/files/manualpatch-plugins-swt-gtk-os_custom.h
+++ b/java/eclipse/files/post-patch-plugins-swt-gtk-os_custom.h
@@ -1,9 +1,10 @@
---- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h.orig Mon Jun 27 21:54:10 2005
-+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h Thu Jul 14 20:28:19 2005
-@@ -21,31 +21,31 @@
- #define PTR_sizeof() sizeof(void *)
-
- /* Libraries for dynamic loaded functions */
+--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h.orig Thu Sep 21 10:57:34 2006
++++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h Tue Oct 3 15:02:26 2006
+@@ -36,50 +36,50 @@
+ #define XRenderFreePicture_LIB "libXrender.so"
+ #define XRenderSetPictureClipRectangles_LIB "libXrender.so"
+ #define XRenderSetPictureTransform_LIB "libXrender.so"
+-#define gtk_entry_text_index_to_layout_index_LIB "libgtk-x11-2.0.so.0"
-#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"
@@ -17,6 +18,13 @@
-#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_expander_get_expanded_LIB "libgtk-x11-2.0.so.0"
+-#define gtk_expander_get_label_widget_LIB "libgtk-x11-2.0.so.0"
+-#define gtk_expander_new_LIB "libgtk-x11-2.0.so.0"
+-#define gtk_expander_set_expanded_LIB "libgtk-x11-2.0.so.0"
+-#define gtk_expander_set_label_LIB "libgtk-x11-2.0.so.0"
+-#define gtk_expander_set_label_widget_LIB "libgtk-x11-2.0.so.0"
+-#define gtk_tree_selection_count_selected_rows_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"
@@ -29,6 +37,18 @@
-#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 gdk_x11_screen_get_window_manager_name_LIB "libgdk-x11-2.0.so.0"
+-#define gdk_x11_screen_lookup_visual_LIB "libgdk-x11-2.0.so.0"
+-#define atk_object_add_relationship_LIB "libatk-1.0.so.0"
+-#define pango_layout_set_auto_dir_LIB "libpango-1.0.so.0"
+-#define pango_cairo_create_layout_LIB "libpangocairo-1.0.so.0"
+-#define pango_cairo_layout_path_LIB "libpangocairo-1.0.so.0"
+-#define pango_cairo_show_layout_LIB "libpangocairo-1.0.so.0"
+-#define pango_cairo_font_map_create_context_LIB "libpangocairo-1.0.so.0"
+-#define pango_cairo_font_map_new_LIB "libpangocairo-1.0.so.0"
+-#define pango_cairo_font_map_get_default_LIB "libpangocairo-1.0.so.0"
+-#define gdk_cairo_set_source_color_LIB "libgdk-x11-2.0.so.0"
+-#define gdk_cairo_region_LIB "libgdk-x11-2.0.so.0"
++#define gtk_entry_text_index_to_layout_index_LIB "libgtk-x11-2.0.so"
+#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"
@@ -42,6 +62,13 @@
+#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_expander_get_expanded_LIB "libgtk-x11-2.0.so"
++#define gtk_expander_get_label_widget_LIB "libgtk-x11-2.0.so"
++#define gtk_expander_new_LIB "libgtk-x11-2.0.so"
++#define gtk_expander_set_expanded_LIB "libgtk-x11-2.0.so"
++#define gtk_expander_set_label_LIB "libgtk-x11-2.0.so"
++#define gtk_expander_set_label_widget_LIB "libgtk-x11-2.0.so"
++#define gtk_tree_selection_count_selected_rows_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"
@@ -54,6 +81,17 @@
+#define gdk_window_set_keep_above_LIB "libgdk-x11-2.0.so"
+#define gdk_window_set_accept_focus_LIB "libgdk-x11-2.0.so"
+#define gdk_x11_screen_get_window_manager_name_LIB "libgdk-x11-2.0.so"
++#define gdk_x11_screen_lookup_visual_LIB "libgdk-x11-2.0.so"
++#define atk_object_add_relationship_LIB "libatk-1.0.so"
++#define pango_layout_set_auto_dir_LIB "libpango-1.0.so"
++#define pango_cairo_create_layout_LIB "libpangocairo-1.0.so"
++#define pango_cairo_layout_path_LIB "libpangocairo-1.0.so"
++#define pango_cairo_show_layout_LIB "libpangocairo-1.0.so"
++#define pango_cairo_font_map_create_context_LIB "libpangocairo-1.0.so"
++#define pango_cairo_font_map_new_LIB "libpangocairo-1.0.so"
++#define pango_cairo_font_map_get_default_LIB "libpangocairo-1.0.so"
++#define gdk_cairo_set_source_color_LIB "libgdk-x11-2.0.so"
++#define gdk_cairo_region_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/scripts/pre-patch b/java/eclipse/scripts/pre-patch
index fdc249b6a75d..1987cdddcc75 100644
--- a/java/eclipse/scripts/pre-patch
+++ b/java/eclipse/scripts/pre-patch
@@ -51,11 +51,6 @@ prepare_files()
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
}
@@ -63,42 +58,30 @@ prepare_files()
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
+package.org.eclipse.sdk.linux.gtk.x86.xml
+package.org.eclipse.sdk.linux.gtk.x86_64.xml
features/org.eclipse.platform/about_files/linux.gtk.x86
features/org.eclipse.platform/about_files/linux.gtk.x86_64
-features/org.eclipse.platform/about_files/linux.motif.x86
features/org.eclipse.platform.launchers/bin/gtk/linux/x86
features/org.eclipse.platform.launchers/bin/gtk/linux/x86_64
-features/org.eclipse.platform.launchers/bin/motif/linux
features/org.eclipse.platform.launchers/library/gtk/make_linux.mak
-features/org.eclipse.platform.launchers/library/motif/make_linux.mak
-plugins/org.eclipse.core.resources.linux
-plugins/org.eclipse.core.resources.linux/os/linux
-plugins/org.eclipse.core.resources.linux/os/linux/x86
-plugins/org.eclipse.core.resources.linux/os/linux/x86_64
+plugins/org.eclipse.core.filesystem.linux.x86
+plugins/org.eclipse.core.filesystem.linux.x86_64
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.rcp.source.linux.gtk.x86
plugins/org.eclipse.rcp.source.linux.gtk.x86_64
-plugins/org.eclipse.rcp.source.linux.motif.x86
plugins/org.eclipse.swt.gtk.linux.x86
plugins/org.eclipse.swt.gtk.linux.x86_64
-plugins/org.eclipse.swt.motif.linux.x86
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