aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/swt-devel/files
diff options
context:
space:
mode:
authorRobert Noland <rnoland@FreeBSD.org>2009-12-01 21:01:39 +0000
committerRobert Noland <rnoland@FreeBSD.org>2009-12-01 21:01:39 +0000
commit532b105cc83a8ffd5c2bdef62acf043a2c9b8188 (patch)
tree2e412e60ba7aa496fda389ba20697f2c81150503 /x11-toolkits/swt-devel/files
parent1a7f0de42ce34a79d1942ae1f058a717b5ce2ab9 (diff)
downloadports-532b105cc83a8ffd5c2bdef62acf043a2c9b8188.tar.gz
ports-532b105cc83a8ffd5c2bdef62acf043a2c9b8188.zip
Notes
Diffstat (limited to 'x11-toolkits/swt-devel/files')
-rw-r--r--x11-toolkits/swt-devel/files/build.xml67
-rw-r--r--x11-toolkits/swt-devel/files/patch-build.sh45
-rw-r--r--x11-toolkits/swt-devel/files/patch-build.xml113
-rw-r--r--x11-toolkits/swt-devel/files/patch-make_freebsd.mak125
-rw-r--r--x11-toolkits/swt-devel/files/patch-org_eclipse_swt_internal_C.java14
5 files changed, 225 insertions, 139 deletions
diff --git a/x11-toolkits/swt-devel/files/build.xml b/x11-toolkits/swt-devel/files/build.xml
new file mode 100644
index 000000000000..62a15f50581c
--- /dev/null
+++ b/x11-toolkits/swt-devel/files/build.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright (c) 2009 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+ -->
+<project name="org.eclipse.swt.gtk.freebsd.%%ARCH%%" default="build.jar" basedir=".">
+
+ <target name="init">
+ <property name="ws" value="gtk"/>
+ <property name="os" value="freebsd"/>
+ <property name="destination" value="${basedir}"/>
+ <property name="javac.verbose" value="false"/>
+ <property name="javac.debug" value="off"/>
+ <property name="input.srcdir" value="${basedir}/org"/>
+ <property name="output.jar" value="${basedir}/%%OUTPUT_JAR%%"/>
+ <property name="output.classes" value="${basedir}/classes"/>
+ </target>
+
+ <target name="all" depends="build.jar"/>
+
+ <target name="build.classes" depends="init">
+ <mkdir dir="${output.classes}"/>
+ <javac srcdir="${input.srcdir}" destdir="${output.classes}"
+ debug="${javac.debug}" verbose="${javac.verbose}"
+ source="1.4" target="1.4">
+ </javac>
+ </target>
+
+ <target name="build.jar" depends="build.nativeLibraries">
+ <jar destfile="${output.jar}" index="false">
+ <fileset dir="${output.classes}">
+ <exclude name="**/*.java"/>
+ <exclude name="**/*.o"/>
+ <exclude name="**/*.so"/>
+ <!-- exclude CVS archive -->
+ <exclude name="**/CVS/**"/>
+ </fileset>
+ <fileset dir="${basedir}">
+ <include name="**/version.txt"/>
+ <include name="**/*.properties"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="clean" depends="init">
+ <delete dir="${output.classes}"/>
+ <delete file="${output.jar}"/>
+ <exec executable="sh" failonerror="true">
+ <arg value="build.sh"/>
+ <arg value="clean"/>
+ </exec>
+ </target>
+
+ <target name="build.nativeLibraries" depends="build.classes">
+ <exec executable="sh" failonerror="true">
+ <arg value="build.sh"/>
+ </exec>
+ </target>
+
+</project>
diff --git a/x11-toolkits/swt-devel/files/patch-build.sh b/x11-toolkits/swt-devel/files/patch-build.sh
index 4abed71c5246..11dbfcdc98d3 100644
--- a/x11-toolkits/swt-devel/files/patch-build.sh
+++ b/x11-toolkits/swt-devel/files/patch-build.sh
@@ -1,6 +1,6 @@
---- build.sh.orig 2009-01-23 18:22:22.000000000 -0500
-+++ build.sh 2009-02-18 03:07:45.000000000 -0500
-@@ -37,6 +37,9 @@
+--- build.sh.orig 2009-10-30 17:04:40.000000000 -0500
++++ build.sh 2009-12-01 11:28:40.000000000 -0600
+@@ -44,6 +44,9 @@
"FreeBSD")
SWT_OS=freebsd
MAKEFILE=make_freebsd.mak
@@ -10,26 +10,28 @@
;;
*)
SWT_OS=`uname -s | tr -s '[:upper:]' '[:lower:]'`
-@@ -68,15 +71,16 @@
+@@ -75,10 +78,10 @@
esac
# 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=-DJNI64
- export SWT_PTR_CFLAGS
if [ -d /lib64 ]; then
- XLIB64=-L/usr/X11R6/lib64
+ XLIB64=-L${LOCALBASE}/lib64
export XLIB64
fi
+ if [ ${MODEL} = 'ppc64' ]; then
+@@ -89,6 +92,7 @@
+ export SWT_PTR_CFLAGS
fi
+if [ x${MAKE_GNOME} = "xmake_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
-@@ -84,7 +88,9 @@
+@@ -96,7 +100,9 @@
echo "libgnome-2.0 and libgnomeui-2.0 not found:"
echo " *** SWT Program support for GNOME will not be compiled."
fi
@@ -39,7 +41,7 @@
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
-@@ -92,30 +98,18 @@
+@@ -104,30 +110,17 @@
echo "Cairo not found:"
echo " *** Advanced graphics support using cairo will not be compiled."
fi
@@ -55,25 +57,28 @@
- elif [ x`pkg-config --exists firefox-xpcom && echo YES` = "xYES" ]; then
- MOZILLA_INCLUDES=`pkg-config --cflags firefox-xpcom`
- MOZILLA_LIBS=`pkg-config --libs firefox-xpcom`
-+if [ ${GECKO} != "" ]; then
-+ echo "Using ${GECKO} for gecko support"
-+ MOZILLA_INCLUDES=`pkg-config --cflags ${GECKO}-xpcom`
-+ MOZILLA_LIBS=`pkg-config --libs ${GECKO}-xpcom`
- export MOZILLA_INCLUDES
- export MOZILLA_LIBS
- MAKE_MOZILLA=make_mozilla
-- elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then
-- MOZILLA_INCLUDES=`pkg-config --cflags libxul`
-- MOZILLA_LIBS=`pkg-config --libs libxul`
- export MOZILLA_INCLUDES
- export MOZILLA_LIBS
- MAKE_MOZILLA=make_mozilla
+- elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then
+- XULRUNNER_INCLUDES=`pkg-config --cflags libxul`
+- XULRUNNER_LIBS=`pkg-config --libs libxul`
+- export XULRUNNER_INCLUDES
+- export XULRUNNER_LIBS
+- MAKE_MOZILLA=make_xulrunner
- else
- echo "None of the following libraries were found: Mozilla/XPCOM, Firefox/XPCOM, or XULRunner/XPCOM"
-+else
-+ echo "gecko support was not enabled"
- echo " *** Mozilla embedding support will not be compiled."
+- echo " *** Mozilla embedding support will not be compiled."
- fi
++if [ x${MAKE_MOZILLA} = "xmake_xulrunner" ]; then
++ echo "Using libxul for gecko support"
++ XULRUNNER_INCLUDES=`pkg-config --cflags libxul libxul-embedding`
++ XULRUNNER_LIBS=`pkg-config --libs libxul libxul-embedding`
++ export XULRUNNER_INCLUDES
++ export XULRUNNER_LIBS
++else
++ echo "None of the following libraries were found: XULRunner/XPCOM"
++ echo " *** Mozilla embedding support will not be compiled."
fi
# Find AWT if available
diff --git a/x11-toolkits/swt-devel/files/patch-build.xml b/x11-toolkits/swt-devel/files/patch-build.xml
deleted file mode 100644
index 417c38d35e84..000000000000
--- a/x11-toolkits/swt-devel/files/patch-build.xml
+++ /dev/null
@@ -1,113 +0,0 @@
---- build.xml.orig 2005-12-05 15:14:46.000000000 -0500
-+++ build.xml 2007-10-11 13:38:48.000000000 -0400
-@@ -1,55 +1,57 @@
- <?xml version="1.0" encoding="UTF-8"?>
-+<project name="org.eclipse.swt.gtk.freebsd.x86_64" default="build.jar" basedir=".">
-
--<project default="build_gtk_lib" basedir="../../..">
-+ <target name="init">
-+ <property name="ws" value="gtk"/>
-+ <property name="os" value="freebsd"/>
-+ <property name="destination" value="${basedir}"/>
-+ <property name="javac.verbose" value="false"/>
-+ <property name="javac.debug" value="off"/>
-+ <property name="input.srcdir" value="${basedir}/org"/>
-+ <property name="output.jar" value="${basedir}/swt-devel.jar"/>
-+ <property name="output.classes" value="${basedir}/classes"/>
-+ </target>
-+
-+ <target name="all" depends="build.jar"/>
-+
-+ <target name="build.classes" depends="init">
-+ <mkdir dir="${output.classes}"/>
-+ <!-- -source & -target taken from Eclipse 32M4 CVS build -->
-+ <javac srcdir="${input.srcdir}" destdir="${output.classes}"
-+ debug="${javac.debug}" verbose="${javac.verbose}"
-+ source="1.3" target="1.2">
-+ </javac>
-+ </target>
-+
-+ <target name="build.jar" depends="build.nativeLibraries">
-+ <jar destfile="${output.jar}" index="false">
-+ <fileset dir="${output.classes}">
-+ <exclude name="**/*.java"/>
-+ <exclude name="**/*.o"/>
-+ <exclude name="**/*.so"/>
-+ <!-- exclude CVS archive -->
-+ <exclude name="**/CVS/**"/>
-+ </fileset>
-+ <fileset dir="${basedir}">
-+ <include name="**/version.txt"/>
-+ <include name="**/*.properties"/>
-+ </fileset>
-+ </jar>
-+ </target>
-+
-+ <target name="clean" depends="init">
-+ <delete dir="${output.classes}"/>
-+ <delete file="${output.jar}"/>
-+ <exec executable="sh" failonerror="true">
-+ <arg value="build.sh"/>
-+ <arg value="clean"/>
-+ </exec>
-+ </target>
-+
-+ <target name="build.nativeLibraries" depends="build.classes">
-+ <exec executable="sh" failonerror="true">
-+ <arg value="build.sh"/>
-+ </exec>
-+ </target>
-
--<target name="init">
-- <eclipse.refreshLocal resource="org.eclipse.swt" depth="infinite" />
-- <eclipse.refreshLocal resource="org.eclipse.swt.tools" depth="infinite" />
-- <eclipse.incrementalBuild project="org.eclipse.swt" kind="incr" />
--</target>
--
--<!-- Build swt.so for GTK -->
--<target name="build_gtk_lib" depends="init">
-- <exec dir="./bin/library" executable="sh">
-- <arg line="${basedir}/bin/library/build.sh"/>
-- <arg line="install"/>
-- </exec>
-- <eclipse.refreshLocal resource="org.eclipse.swt.gtk.linux.x86" depth="infinite" />
--</target>
--
--<!-- Build swt.so for PowerPC 32 bit GTK (no Mozilla)-->
--<target name="build_ppc_gtk_lib" depends="init">
-- <exec dir="./bin/library" executable="sh">
-- <env key="MODEL" value="ppc"/>
-- <arg line="${basedir}/bin/library/build.sh"/>
-- <arg line="install"/>
-- </exec>
-- <eclipse.refreshLocal resource="org.eclipse.swt.gtk.linux.ppc" depth="infinite" />
--</target>
--
--<!-- Build swt.so for Solaris GTK (no Mozilla) -->
--<target name="build_solaris_gtk_lib" depends="init">
-- <exec dir="./bin/library" executable="sh">
-- <arg line="${basedir}/bin/library/build.sh"/>
-- <arg line="install"/>
-- </exec>
-- <eclipse.refreshLocal resource="org.eclipse.swt.gtk.solaris.sparc" depth="infinite" />
--</target>
--
--<!-- Build swt.so for GTK 64 -->
--<target name="build_gtk64_lib" depends="init">
-- <exec dir="./bin/library" executable="sh">
-- <arg line="${basedir}/bin/library/build.sh"/>
-- <arg line="install"/>
-- </exec>
-- <eclipse.refreshLocal resource="org.eclipse.swt.gtk.linux.x86_64" depth="infinite" />
--</target>
--
--<target name="clean">
-- <exec dir="./bin/library" executable="sh">
-- <arg line="${basedir}/bin/library/build.sh"/>
-- <arg line="clean"/>
-- </exec>
--</target>
--
--</project>
-\ No newline at end of file
-+</project>
diff --git a/x11-toolkits/swt-devel/files/patch-make_freebsd.mak b/x11-toolkits/swt-devel/files/patch-make_freebsd.mak
index 290378a0ad82..559baf131279 100644
--- a/x11-toolkits/swt-devel/files/patch-make_freebsd.mak
+++ b/x11-toolkits/swt-devel/files/patch-make_freebsd.mak
@@ -1,5 +1,12 @@
---- make_freebsd.mak.orig 2008-02-07 16:42:56.000000000 +0200
-+++ make_freebsd.mak 2008-03-22 21:32:28.000000000 +0200
+--- make_freebsd.mak.orig 2009-10-30 17:04:40.000000000 -0500
++++ make_freebsd.mak 2009-12-01 10:23:19.000000000 -0600
+@@ -1,5 +1,5 @@
+ #*******************************************************************************
+-# Copyright (c) 2000, 2007 IBM Corporation and others.
++# Copyright (c) 2000, 2009 IBM Corporation and others.
+ # All rights reserved. This program and the accompanying materials
+ # are made available under the terms of the Eclipse Public License v1.0
+ # which accompanies this distribution, and is available at
@@ -9,7 +9,7 @@
# IBM Corporation - initial API and implementation
#*******************************************************************************
@@ -18,20 +25,52 @@
CDE_LIBS = -L$(CDE_HOME)/lib -R$(CDE_HOME)/lib -lXt -lX11 -lDtSvc
-@@ -59,7 +59,7 @@
+@@ -58,8 +58,8 @@
+ GNOMECFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0`
GNOMELIBS = `pkg-config --libs-only-L gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` -lgnomevfs-2 -lgnome-2 -lgnomeui-2
- GLXCFLAGS =
+-GLXCFLAGS =
-GLXLIBS = -shared -fPIC -L/usr/X11R6/lib -lGL -lGLU -lm
++GLXCFLAGS = -I$(LOCALBASE)/include
+GLXLIBS = -shared -fPIC -L$(LOCALBASE)/lib -lGL -lGLU -lm
# Uncomment for Native Stats tool
#NATIVE_STATS = -DNATIVE_STATS
-@@ -97,17 +97,18 @@
+@@ -78,7 +78,17 @@
+ -I$(JAVA_HOME)/include/freebsd \
+ ${SWT_PTR_CFLAGS}
+ MOZILLALIBS = -shared -Wl,--version-script=mozilla_exports -Bsymbolic
+-
++MOZILLAEXCLUDES = -DNO__1XPCOMGlueShutdown \
++ -DNO__1XPCOMGlueStartup \
++ -DNO__1XPCOMGlueLoadXULFunctions \
++ -DNO_memmove__ILorg_eclipse_swt_internal_mozilla_nsDynamicFunctionLoad_2I \
++ -DNO_memmove__JLorg_eclipse_swt_internal_mozilla_nsDynamicFunctionLoad_2J \
++ -DNO_nsDynamicFunctionLoad_1sizeof \
++ -DNO__1Call__IIIIII \
++ -DNO__1Call__JJJJJI \
++ -DNO_nsDynamicFunctionLoad
++XULRUNNEREXCLUDES = -DNO__1NS_1InitXPCOM2
++
+ SWT_OBJECTS = swt.o c.o c_stats.o callback.o
+ CDE_OBJECTS = swt.o cde.o cde_structs.o cde_stats.o
+ AWT_OBJECTS = swt_awt.o
+@@ -87,7 +97,7 @@
+ 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
+-XULRUNNER_OBJECTS = swt.o xpcomxul.o xpcomxul_custom.o xpcomxul_structs.o xpcomxul_stats.o xpcomxulglue.o xpcomxulglue_stats.o
++XULRUNNER_OBJECTS = swt.o xpcomxul.o xpcomxul_custom.o xpcomxul_structs.o xpcomxul_stats.o
+ XPCOMINIT_OBJECTS = swt.o xpcominit.o xpcominit_structs.o xpcominit_stats.o
+ GLX_OBJECTS = swt.o glx.o glx_structs.o glx_stats.o
+
+@@ -95,19 +105,20 @@
+ -DSWT_VERSION=$(SWT_VERSION) \
+ $(NATIVE_STATS) \
-DFREEBSD -DGTK \
++ -I$(LOCALBASE)/include \
-I$(JAVA_HOME)/include \
-I$(JAVA_HOME)/include/freebsd \
-+ -I$(LOCALBASE)/include \
-fPIC \
${SWT_PTR_CFLAGS}
LIBS = -shared -fPIC
@@ -52,3 +91,77 @@
#
# SWT libs
+@@ -161,7 +172,7 @@
+ #
+ # AWT lib
+ #
+-make_awt:$(AWT_LIB)
++make_awt: $(AWT_LIB)
+
+ $(AWT_LIB): $(AWT_OBJECTS)
+ $(CC) $(AWT_LIBS) -o $(AWT_LIB) $(AWT_OBJECTS)
+@@ -203,53 +214,47 @@
+ #
+ # Mozilla lib
+ #
+-make_mozilla:$(MOZILLA_LIB)
++make_mozilla: $(MOZILLA_LIB)
+
+ $(MOZILLA_LIB): $(MOZILLA_OBJECTS)
+ $(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${MOZILLA_LIBS}
+
+ xpcom.o: xpcom.cpp
+- $(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom.cpp
++ $(CXX) $(MOZILLACFLAGS) $(MOZILLAEXCLUDES) ${MOZILLA_INCLUDES} -c xpcom.cpp
+
+ xpcom_structs.o: xpcom_structs.cpp
+- $(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom_structs.cpp
++ $(CXX) $(MOZILLACFLAGS) $(MOZILLAEXCLUDES) ${MOZILLA_INCLUDES} -c xpcom_structs.cpp
+
+ xpcom_custom.o: xpcom_custom.cpp
+- $(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom_custom.cpp
++ $(CXX) $(MOZILLACFLAGS) $(MOZILLAEXCLUDES) ${MOZILLA_INCLUDES} -c xpcom_custom.cpp
+
+ xpcom_stats.o: xpcom_stats.cpp
+- $(CXX) $(MOZILLACFLAGS) ${MOZILLA_INCLUDES} -c xpcom_stats.cpp
++ $(CXX) $(MOZILLACFLAGS) $(MOZILLAEXCLUDES) ${MOZILLA_INCLUDES} -c xpcom_stats.cpp
+
+ #
+ # XULRunner lib
+ #
+-make_xulrunner:$(XULRUNNER_LIB)
++make_xulrunner: $(XULRUNNER_LIB)
+
+ $(XULRUNNER_LIB): $(XULRUNNER_OBJECTS)
+ $(CXX) -o $(XULRUNNER_LIB) $(XULRUNNER_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
+
+ xpcomxul.o: xpcom.cpp
+- $(CXX) -o xpcomxul.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom.cpp
++ $(CXX) -o xpcomxul.o $(MOZILLACFLAGS) $(XULRUNNEREXCLUDES) ${XULRUNNER_INCLUDES} -c xpcom.cpp
+
+ xpcomxul_structs.o: xpcom_structs.cpp
+- $(CXX) -o xpcomxul_structs.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom_structs.cpp
++ $(CXX) -o xpcomxul_structs.o $(MOZILLACFLAGS) $(XULRUNNEREXCLUDES) ${XULRUNNER_INCLUDES} -c xpcom_structs.cpp
+
+ xpcomxul_custom.o: xpcom_custom.cpp
+- $(CXX) -o xpcomxul_custom.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom_custom.cpp
++ $(CXX) -o xpcomxul_custom.o $(MOZILLACFLAGS) $(XULRUNNEREXCLUDES) ${XULRUNNER_INCLUDES} -c xpcom_custom.cpp
+
+ xpcomxul_stats.o: xpcom_stats.cpp
+- $(CXX) -o xpcomxul_stats.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcom_stats.cpp
+-
+-xpcomxulglue.o: xpcomglue.cpp
+- $(CXX) -o xpcomxulglue.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcomglue.cpp
+-
+-xpcomxulglue_stats.o: xpcomglue_stats.cpp
+- $(CXX) -o xpcomxulglue_stats.o $(MOZILLACFLAGS) ${XULRUNNER_INCLUDES} -c xpcomglue_stats.cpp
++ $(CXX) -o xpcomxul_stats.o $(MOZILLACFLAGS) $(XULRUNNEREXCLUDES) ${XULRUNNER_INCLUDES} -c xpcom_stats.cpp
+
+ #
+ # XPCOMInit lib
+ #
+-make_xpcominit:$(XPCOMINIT_LIB)
++make_xpcominit: $(XPCOMINIT_LIB)
+
+ $(XPCOMINIT_LIB): $(XPCOMINIT_OBJECTS)
+ $(CXX) -o $(XPCOMINIT_LIB) $(XPCOMINIT_OBJECTS) $(MOZILLALIBS) ${XULRUNNER_LIBS}
diff --git a/x11-toolkits/swt-devel/files/patch-org_eclipse_swt_internal_C.java b/x11-toolkits/swt-devel/files/patch-org_eclipse_swt_internal_C.java
new file mode 100644
index 000000000000..cfa060d3fb72
--- /dev/null
+++ b/x11-toolkits/swt-devel/files/patch-org_eclipse_swt_internal_C.java
@@ -0,0 +1,14 @@
+--- org/eclipse/swt/internal/C.java.orig 2009-07-11 08:21:27.000000000 -0500
++++ org/eclipse/swt/internal/C.java 2009-07-11 08:22:21.000000000 -0500
+@@ -13,9 +13,9 @@
+ public class C extends Platform {
+
+ static {
+- if ("Linux".equals (System.getProperty ("os.name")) && "motif".equals (Platform.PLATFORM)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
++ if ("FreeBSD".equals (System.getProperty ("os.name")) && "motif".equals (Platform.PLATFORM)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ try {
+- Library.loadLibrary ("libXm.so.2", false); //$NON-NLS-1$
++ Library.loadLibrary ("libXm.so.3", false); //$NON-NLS-1$
+ } catch (Throwable ex) {}
+ }
+ Library.loadLibrary ("swt"); //$NON-NLS-1$