Firefox build system, how to build against custom library?

Hello, let's say, I'd like to build Firefox against custom version of libicu that I have built and installed with PREFIX /opt/icu. Is there simple way to tell firefox build system to do so? Something like '--with-icu=/opt/icu' somethere? There is very little docs on the net I can find on that, official mozilla docs targeted more on people who already familiar with their build system, rather that explaining basic usage and options, so pointing me on some docs, explanations, discussions would be useful.
 
The port seems to have a specific entry for finding ICU.
Code:
# work around bindgen not finding ICU, e.g.
# dist/include/mozilla/intl/ICU4CGlue.h:8:10: fatal error: 'unicode/uenum.h' file not found, err: true
CONFIGURE_ENV+=	BINDGEN_CFLAGS="-I${LOCALBASE}/include"
So you could try setting BINDGEN_CLAGS="-I/opt/icu/include".
Don't know if that's sufficient though.
 
Tried this with and without
ac_add_options --with-system-icu in .mozconfig
yet still the same
===> firefox-esr-115.15.0,1 depends on shared library: libicui18n.so - found (/usr/local/lib/libicui18n.so)
 
yet still the same
===> firefox-esr-115.15.0,1 depends on shared library: libicui18n.so
This is a direct consequence of this:
Code:
BUILD_DEPENDS=	nspr>=4.32:devel/nspr \
		nss>=3.117:security/nss \
		icu>=76.1:devel/icu \                                     <----- This pulls in devel/icu
		libevent>=2.1.8:devel/libevent \
		harfbuzz>=10.1.0:print/harfbuzz \
		graphite2>=1.3.14:graphics/graphite2 \
		png>=1.6.45:graphics/png \
		dav1d>=1.0.0:multimedia/dav1d \
		libvpx>=1.15.0:multimedia/libvpx \
		${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
		v4l_compat>0:multimedia/v4l_compat \
		nasm:devel/nasm \
		yasm:devel/yasm \
		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}
 
Back
Top