aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2025-01-27 23:27:13 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2025-01-29 16:56:55 +0000
commit88b089a49eed6915db455acdf863de04ef11fe15 (patch)
tree3823bdfbf3f8fbbc413a9cab685ed64c1310d0d5
parent2289883686533a9ece236096f835977a8b10feaa (diff)
mail/thunderbird: enable wasi on powerpc64
Seems to work fine.
-rw-r--r--mail/thunderbird/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile
index aea8c6f02f8e..3b0873c664ca 100644
--- a/mail/thunderbird/Makefile
+++ b/mail/thunderbird/Makefile
@@ -1,6 +1,6 @@
PORTNAME= thunderbird
DISTVERSION= 128.6.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail news net-im wayland
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \
MOZILLA/${PORTNAME}/candidates/${DISTVERSION}esr-candidates/build3/source
@@ -23,7 +23,10 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \
autoconf2.13:devel/autoconf2.13 \
nasm:devel/nasm \
yasm:devel/yasm \
- zip:archivers/zip
+ zip:archivers/zip \
+ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \
+ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc.a:devel/wasi-libc@${LLVM_VERSION} \
+ wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION}
LIB_DEPENDS= libjson-c.so:devel/json-c
USE_GECKO= gecko
@@ -36,6 +39,7 @@ USES= tar:xz
MOZ_OPTIONS= --enable-application=comm/mail --enable-official-branding
MOZ_OPTIONS+= --with-system-bz2 --with-system-jsonc
+MOZ_OPTIONS+= --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot
MOZ_MK_OPTIONS= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1
MOZ_EXPORT= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1
@@ -48,17 +52,6 @@ OPTIONS_DEFAULT=CANBERRA
.include "${.CURDIR}/../../www/firefox/Makefile.options"
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == powerpc64
-MOZ_OPTIONS+= --without-wasm-sandboxed-libraries
-.else
-BUILD_DEPENDS+= ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \
- ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc.a:devel/wasi-libc@${LLVM_VERSION} \
- wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION}
-MOZ_OPTIONS+= --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot
-.endif
-
post-extract:
@${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \
<${FILESDIR}/thunderbird.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop