Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.gecko.mk
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | |||||
# Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk | # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk | ||||
.if ${ARCH} == amd64 || ${ARCH} == i386 | .if ${ARCH} == amd64 || ${ARCH} == i386 | ||||
RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/} | RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/} | ||||
.else | .else | ||||
RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} | RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} | ||||
.endif | .endif | ||||
# Standard depends | # Standard depends | ||||
_ALL_DEPENDS= event ffi graphite harfbuzz hunspell icu jpeg nspr nss png pixman sqlite vpx | _ALL_DEPENDS= event ffi graphite harfbuzz hunspell icu jpeg nspr nss png pixman sqlite vpx webp | ||||
event_LIB_DEPENDS= libevent.so:devel/libevent | event_LIB_DEPENDS= libevent.so:devel/libevent | ||||
event_MOZ_OPTIONS= --with-system-libevent | event_MOZ_OPTIONS= --with-system-libevent | ||||
ffi_LIB_DEPENDS= libffi.so:devel/libffi | ffi_LIB_DEPENDS= libffi.so:devel/libffi | ||||
ffi_MOZ_OPTIONS= --enable-system-ffi | ffi_MOZ_OPTIONS= --enable-system-ffi | ||||
.if exists(${FILESDIR}/patch-bug847568) | .if exists(${FILESDIR}/patch-bug847568) | ||||
Show All 28 Lines | |||||
sqlite_LIB_DEPENDS= libsqlite3.so:databases/sqlite3 | sqlite_LIB_DEPENDS= libsqlite3.so:databases/sqlite3 | ||||
sqlite_MOZ_OPTIONS= --enable-system-sqlite | sqlite_MOZ_OPTIONS= --enable-system-sqlite | ||||
-vpx_BUILD_DEPENDS= yasm:devel/yasm | -vpx_BUILD_DEPENDS= yasm:devel/yasm | ||||
vpx_LIB_DEPENDS= libvpx.so:multimedia/libvpx | vpx_LIB_DEPENDS= libvpx.so:multimedia/libvpx | ||||
vpx_MOZ_OPTIONS= --with-system-libvpx | vpx_MOZ_OPTIONS= --with-system-libvpx | ||||
webp_LIB_DEPENDS= libwebp.so:graphics/webp | |||||
webp_MOZ_OPTIONS= --with-system-webp | |||||
.for use in ${USE_MOZILLA} | .for use in ${USE_MOZILLA} | ||||
${use:S/-/_WITHOUT_/}= ${TRUE} | ${use:S/-/_WITHOUT_/}= ${TRUE} | ||||
.endfor | .endfor | ||||
LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig \ | LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig \ | ||||
libfreetype.so:print/freetype2 | libfreetype.so:print/freetype2 | ||||
.for dep in ${_ALL_DEPENDS} ${USE_MOZILLA:M+*:S/+//} | .for dep in ${_ALL_DEPENDS} ${USE_MOZILLA:M+*:S/+//} | ||||
▲ Show 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | . endfor | ||||
fi | fi | ||||
@if [ -f "${MOZSRC}/media/webrtc/signaling/test/common.build" ]; then \ | @if [ -f "${MOZSRC}/media/webrtc/signaling/test/common.build" ]; then \ | ||||
${ECHO_CMD} "OS_LIBS += ['sndio']" >> \ | ${ECHO_CMD} "OS_LIBS += ['sndio']" >> \ | ||||
${MOZSRC}/media/webrtc/signaling/test/common.build; \ | ${MOZSRC}/media/webrtc/signaling/test/common.build; \ | ||||
fi | fi | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MRUST} || ${MOZILLA_VER:R:R} >= 54 | .if ${PORT_OPTIONS:MRUST} || ${MOZILLA_VER:R:R} >= 54 | ||||
BUILD_DEPENDS+= ${RUST_DEFAULT}>=1.29:lang/${RUST_DEFAULT} | BUILD_DEPENDS+= ${RUST_DEFAULT}>=1.30:lang/${RUST_DEFAULT} | ||||
. if ${MOZILLA_VER:R:R} < 54 | . if ${MOZILLA_VER:R:R} < 54 | ||||
MOZ_OPTIONS+= --enable-rust | MOZ_OPTIONS+= --enable-rust | ||||
. endif | . endif | ||||
.else | .else | ||||
MOZ_OPTIONS+= --disable-rust | MOZ_OPTIONS+= --disable-rust | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MDEBUG} | .if ${PORT_OPTIONS:MDEBUG} | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |