git: fcc9e9e8eaf2 - main - www/waterfox: enable wasi on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Jan 2025 16:58:18 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=fcc9e9e8eaf232120b7f69c5efd8b63e9d95b304 commit fcc9e9e8eaf232120b7f69c5efd8b63e9d95b304 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-28 14:39:02 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-29 16:57:01 +0000 www/waterfox: enable wasi on powerpc64 --- www/waterfox/Makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/www/waterfox/Makefile b/www/waterfox/Makefile index 6b8195ad5b1f..3fefa4f5f15a 100644 --- a/www/waterfox/Makefile +++ b/www/waterfox/Makefile @@ -1,6 +1,6 @@ PORTNAME= waterfox DISTVERSION= 6.5.3 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= www @@ -25,7 +25,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} USE_GECKO= gecko USE_GITHUB= yes @@ -39,6 +42,7 @@ USE_MOZILLA= -sqlite CONFIGURE_ENV+= BINDGEN_CFLAGS="-I${LOCALBASE}/include" \ MOZ_REQUIRE_SIGNING="" +CFLAGS_powerpc64= -DHWY_COMPILE_ONLY_SCALAR CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 BINARY_ALIAS+= python3=${PYTHON_CMD} @@ -64,6 +68,7 @@ MOZ_OPTIONS+= --enable-application=browser \ --with-app-name=${MOZILLA} \ --with-unsigned-addon-scopes=app,system \ --enable-bootstrap \ + --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot \ MOZ_CRASHREPORTER=0 \ MOZ_DATA_REPORTING=0 @@ -79,16 +84,6 @@ FIREFOX_DESKTOP= ${MOZSRC}/taskcluster/docker/firefox-snap/firefox.desktop MOZ_OPTIONS+= --enable-rust-simd .endif -.if ${ARCH} == powerpc64 -CFLAGS+= -DHWY_COMPILE_ONLY_SCALAR -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-patch: @${REINPLACE_CMD} -e 's/%u/%U/' -e '/X-MultipleArgs/d' \ -e 's/firefox/${MOZILLA}/' \