aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/swt/files
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2021-01-18 08:34:43 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2021-01-18 08:34:43 +0000
commite2517bdb0319352477ec0937c3ec8555d60c0ea0 (patch)
tree476a20568ea221d818bddaa7bc5d248170a243a3 /x11-toolkits/swt/files
parent93bf623e72ad3f3f5d2be0af688aab4d65ddf064 (diff)
downloadports-e2517bdb0319352477ec0937c3ec8555d60c0ea0.tar.gz
ports-e2517bdb0319352477ec0937c3ec8555d60c0ea0.zip
Notes
Diffstat (limited to 'x11-toolkits/swt/files')
-rw-r--r--x11-toolkits/swt/files/patch-build.sh2
-rw-r--r--x11-toolkits/swt/files/patch-make_freebsd.mak25
-rw-r--r--x11-toolkits/swt/files/patch-org_eclipse_swt_graphics_Device.java11
3 files changed, 16 insertions, 22 deletions
diff --git a/x11-toolkits/swt/files/patch-build.sh b/x11-toolkits/swt/files/patch-build.sh
index c3903c2515ff..9536139667d3 100644
--- a/x11-toolkits/swt/files/patch-build.sh
+++ b/x11-toolkits/swt/files/patch-build.sh
@@ -67,7 +67,7 @@
# For 64-bit CPUs, we have a switch
-if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ia64' -o ${MODEL} = 's390x' -o ${MODEL} = 'ppc64le' -o ${MODEL} = 'aarch64' ]; then
-+if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ia64' -o ${MODEL} = 's390x' -o ${MODEL} = 'powerpc64' -o ${MODEL} = 'powerpc64le' -o ${MODEL} = 'ppc64le' -o ${MODEL} = 'aarch64' ]; then
++if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'amd64' -o ${MODEL} = 's390x' -o ${MODEL} = 'powerpc64' -o ${MODEL} = 'powerpc64le' -o ${MODEL} = 'ppc64le' -o ${MODEL} = 'aarch64' ]; then
SWT_PTR_CFLAGS=-DJNI64
if [ -d /lib64 ]; then
- XLIB64=-L/usr/X11R6/lib64
diff --git a/x11-toolkits/swt/files/patch-make_freebsd.mak b/x11-toolkits/swt/files/patch-make_freebsd.mak
index 5cdc3dff0886..57ee7e838780 100644
--- a/x11-toolkits/swt/files/patch-make_freebsd.mak
+++ b/x11-toolkits/swt/files/patch-make_freebsd.mak
@@ -1,4 +1,4 @@
---- make_freebsd.mak.orig 2019-06-16 12:13:00 UTC
+--- make_freebsd.mak.orig 2021-01-11 14:12:37 UTC
+++ make_freebsd.mak
@@ -12,7 +12,7 @@
# IBM Corporation - initial API and implementation
@@ -9,24 +9,7 @@
# SWT debug flags for various SWT components.
#SWT_WEBKIT_DEBUG = -DWEBKIT_DEBUG
-@@ -26,7 +26,6 @@
-
- include make_common.mak
-
--SWT_VERSION=$(maj_ver)$(min_ver)r$(rev)
- GTK_VERSION?=3.0
-
- # Define the various shared libraries to be build.
-@@ -56,7 +55,7 @@
- # Webkit extension lib has to be put into a separate folder and is treated differently from the other libraries.
- WEBKIT_EXTENSION_LIB = lib$(WEBKIT_EXTENSION_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
- WEBEXTENSION_BASE_DIR = webkitextensions
--WEBEXTENSION_DIR = $(WEBEXTENSION_BASE_DIR)$(maj_ver)$(min_ver)r$(rev)
-+WEBEXTENSION_DIR = $(WEBEXTENSION_BASE_DIR)$(SWT_VERSION)
-
- CAIROCFLAGS = `pkg-config --cflags cairo`
- CAIROLIBS = `pkg-config --libs-only-L cairo` -lcairo
-@@ -64,9 +63,9 @@
+@@ -64,9 +64,9 @@ CAIROLIBS = `pkg-config --libs-only-L cairo` -lcairo
# Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0)
GTKCFLAGS = `pkg-config --cflags gtk+-$(GTK_VERSION) gtk+-unix-print-$(GTK_VERSION)`
ifeq ($(GTK_VERSION), 4.0)
@@ -38,7 +21,7 @@
endif
AWT_LFLAGS = -shared ${SWT_LFLAGS}
-@@ -75,12 +74,13 @@
+@@ -75,12 +75,13 @@ AWT_LIBS = -L$(AWT_LIB_PATH) -ljawt
ATKCFLAGS = `pkg-config --cflags atk gtk+-$(GTK_VERSION) gtk+-unix-print-$(GTK_VERSION)`
ATKLIBS = `pkg-config --libs-only-L atk` -latk-1.0
@@ -54,7 +37,7 @@
WEBKITCFLAGS = `pkg-config --cflags gio-2.0`
WEBKIT_EXTENSION_CFLAGS=`pkg-config --cflags gtk+-3.0 webkit2gtk-web-extension-4.0`
-@@ -108,17 +108,18 @@
+@@ -108,17 +109,18 @@ CFLAGS := $(CFLAGS) \
$(SWT_WEBKIT_DEBUG) \
-DLINUX -DGTK \
-I$(JAVA_HOME)/include \
diff --git a/x11-toolkits/swt/files/patch-org_eclipse_swt_graphics_Device.java b/x11-toolkits/swt/files/patch-org_eclipse_swt_graphics_Device.java
new file mode 100644
index 000000000000..c676135e549d
--- /dev/null
+++ b/x11-toolkits/swt/files/patch-org_eclipse_swt_graphics_Device.java
@@ -0,0 +1,11 @@
+--- org/eclipse/swt/graphics/Device.java.orig 2019-03-07 02:31:06 UTC
++++ org/eclipse/swt/graphics/Device.java
+@@ -701,7 +701,7 @@ protected void init () {
+ }
+ systemFont = Font.gtk_new (this, defaultFont);
+
+- overrideThemeValues();
++ //overrideThemeValues();
+ }
+
+ /**