diff --git a/x11-toolkits/swt-devel/Makefile b/x11-toolkits/swt-devel/Makefile index 06132a045d0d..a1681cd5ab83 100644 --- a/x11-toolkits/swt-devel/Makefile +++ b/x11-toolkits/swt-devel/Makefile @@ -6,12 +6,12 @@ # PORTNAME= swt-devel -DISTVERSION= 3.5M1 +DISTVERSION= 3.5M3 #PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= x11-toolkits devel java MASTER_SITES= ${MASTER_SITE_ECLIPSE} -MASTER_SITE_SUBDIR= S-${DISTVERSION}-200808071402 +MASTER_SITE_SUBDIR= S-${DISTVERSION}-200810301917 DISTNAME= swt-${DISTVERSION}-${DIST_EXT} MAINTAINER= rnoland@FreeBSD.org @@ -19,9 +19,7 @@ COMMENT= Standard Widget Toolkit for Java ONLY_FOR_ARCHS= i386 amd64 -EXTRA_PATCHES= ${PATCHDIR}/extra-patch-${ARCH}-os.c - -SWT_VERSION= 3504 +SWT_VERSION= 3514 OUTPUT_JAR= swt-devel.jar USE_ZIP= yes diff --git a/x11-toolkits/swt-devel/distinfo b/x11-toolkits/swt-devel/distinfo index 9b62938f2397..6ac1ad11a286 100644 --- a/x11-toolkits/swt-devel/distinfo +++ b/x11-toolkits/swt-devel/distinfo @@ -1,6 +1,6 @@ -MD5 (swt-3.5M1-gtk-linux-x86.zip) = 2767c21248510ee46efd24a2faacc0a2 -SHA256 (swt-3.5M1-gtk-linux-x86.zip) = 85426ecea55d91b1e7aebaac9c5d04b70860530dc5df7f3753b7b3f967debbf0 -SIZE (swt-3.5M1-gtk-linux-x86.zip) = 4558110 -MD5 (swt-3.5M1-gtk-linux-x86_64.zip) = 4a540f5b8c9e2774d383eeb7a3d7d39b -SHA256 (swt-3.5M1-gtk-linux-x86_64.zip) = 1fd1be9bb40f3db9b344e99076344d861c7e73f1dcf483311fb7ffb8ee557f1d -SIZE (swt-3.5M1-gtk-linux-x86_64.zip) = 4740612 +MD5 (swt-3.5M3-gtk-linux-x86.zip) = 49b43087cd4052b9ef5c5cc6e29c749a +SHA256 (swt-3.5M3-gtk-linux-x86.zip) = 651d949ad1060b013c836981336f3d4f3d0ed85ece877c266bb9995c11ecb12b +SIZE (swt-3.5M3-gtk-linux-x86.zip) = 4620437 +MD5 (swt-3.5M3-gtk-linux-x86_64.zip) = 60ae756f20e607a001ba7d34ab308a46 +SHA256 (swt-3.5M3-gtk-linux-x86_64.zip) = c71be6c5587c87c38a50ee2e36fbb6dc9db0d47c43d16a82967f464a5cbe6131 +SIZE (swt-3.5M3-gtk-linux-x86_64.zip) = 4799940 diff --git a/x11-toolkits/swt-devel/files/extra-patch-amd64-os.c b/x11-toolkits/swt-devel/files/extra-patch-amd64-os.c deleted file mode 100644 index 8b23b836383d..000000000000 --- a/x11-toolkits/swt-devel/files/extra-patch-amd64-os.c +++ /dev/null @@ -1,20 +0,0 @@ ---- os.c.orig 2007-06-25 16:06:14.000000000 -0400 -+++ os.c 2007-08-10 11:54:37.000000000 -0400 -@@ -17397,11 +17397,16 @@ - jlong rc = 0; - OS_NATIVE_ENTER(env, that, realpath_FUNC); - if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; -- if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; -+ if (arg1) { -+ if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; -+ } else -+ lparg1 = malloc(PATH_MAX); - rc = (jlong)realpath((const char *)lparg0, (char *)lparg1); - fail: - if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); - if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); -+ if (!arg1 && lparg1 && rc == 0) -+ free(lparg1); - OS_NATIVE_EXIT(env, that, realpath_FUNC); - return rc; - } diff --git a/x11-toolkits/swt-devel/files/patch-build.sh b/x11-toolkits/swt-devel/files/patch-build.sh index ab957afbc30b..57ae62b43451 100644 --- a/x11-toolkits/swt-devel/files/patch-build.sh +++ b/x11-toolkits/swt-devel/files/patch-build.sh @@ -6,7 +6,7 @@ # For 64-bit CPUs, we have a switch -if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' -o ${MODEL} = 's390x' ]; then +if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' -o ${MODEL} = 's390x' -o ${MODEL} = 'amd64' ]; then - SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64 + SWT_PTR_CFLAGS=-DJNI64 export SWT_PTR_CFLAGS if [ -d /lib64 ]; then - XLIB64=-L/usr/X11R6/lib64 diff --git a/x11-toolkits/swt-devel/files/extra-patch-i386-os.c b/x11-toolkits/swt-devel/files/patch-os.c similarity index 76% rename from x11-toolkits/swt-devel/files/extra-patch-i386-os.c rename to x11-toolkits/swt-devel/files/patch-os.c index f7c566df9a87..ad5cc50177bc 100644 --- a/x11-toolkits/swt-devel/files/extra-patch-i386-os.c +++ b/x11-toolkits/swt-devel/files/patch-os.c @@ -1,7 +1,7 @@ ---- os.c.orig 2007-04-26 14:03:00.000000000 -0400 -+++ os.c 2007-08-10 11:56:22.000000000 -0400 -@@ -17397,11 +17397,16 @@ - jint rc = 0; +--- os.c.orig 2008-12-31 16:16:39.000000000 -0500 ++++ os.c 2008-12-31 16:20:29.000000000 -0500 +@@ -18036,11 +18036,16 @@ + jintLong rc = 0; OS_NATIVE_ENTER(env, that, realpath_FUNC); if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; - if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; @@ -9,7 +9,7 @@ + if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; + } else + lparg1 = malloc(PATH_MAX); - rc = (jint)realpath((const char *)lparg0, (char *)lparg1); + rc = (jintLong)realpath((const char *)lparg0, (char *)lparg1); fail: if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);