aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2022-11-09 18:56:22 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2022-11-09 18:56:22 +0000
commit8630a2a43b0b883813694548fe5783f11ad7330f (patch)
treedd77a2b3a03be7d1922f9ee021ab9ad79fac91ed
parent5c26ff23a778eb17a24a98d913e525bbd33b8277 (diff)
downloadports-8630a2a43b0b883813694548fe5783f11ad7330f.tar.gz
ports-8630a2a43b0b883813694548fe5783f11ad7330f.zip
x11-toolkits/swt: fix build with OpenJDK debug enabled
PR: 265747 Submitted by: chadf at triularity.org
-rw-r--r--x11-toolkits/swt/files/patch-build.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/x11-toolkits/swt/files/patch-build.sh b/x11-toolkits/swt/files/patch-build.sh
index 19afc49f5095..e8c4eb342bfc 100644
--- a/x11-toolkits/swt/files/patch-build.sh
+++ b/x11-toolkits/swt/files/patch-build.sh
@@ -1,4 +1,4 @@
---- build.sh.orig 2021-06-11 17:24:22 UTC
+--- build.sh.orig 2021-09-06 06:22:24 UTC
+++ build.sh
@@ -72,7 +72,7 @@ echo -e "${RED}*** ${@}${NC}"
@@ -62,7 +62,7 @@
export XLIB64
fi
if [ ${MODEL} = 'ppc64le' ]; then
-@@ -163,11 +171,13 @@ if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64le' -o ${
+@@ -163,18 +171,20 @@ if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64le' -o ${
export SWT_PTR_CFLAGS
fi
@@ -72,10 +72,18 @@
MAKE_CAIRO=make_cairo
else
func_echo_error "Cairo not found: Advanced graphics support using cairo will not be compiled."
-+fi
fi
++fi
# Find AWT if available
+ if [ ${SWT_OS} = 'win32' ]; then
+ AWT_LIB_EXPR="jawt.dll"
+ else
+- AWT_LIB_EXPR="libjawt.*"
++ AWT_LIB_EXPR="libjawt.so"
+ fi
+
+ if [ -z "${AWT_LIB_PATH}" ]; then
@@ -332,4 +342,4 @@ elif [ "${GTK_VERSION}" = "4.0" ]; then
elif [ "${GTK_VERSION}" = "3.0" -o "${GTK_VERSION}" = "" ]; then
export GTK_VERSION="3.0"