Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.gecko.mk
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
| # | # | ||||
| MAINTAINER?= gecko@FreeBSD.org | MAINTAINER?= gecko@FreeBSD.org | ||||
| MOZILLA?= ${PORTNAME} | MOZILLA?= ${PORTNAME} | ||||
| MOZILLA_VER?= ${PORTVERSION} | MOZILLA_VER?= ${PORTVERSION} | ||||
| MOZILLA_BIN?= ${PORTNAME}-bin | MOZILLA_BIN?= ${PORTNAME}-bin | ||||
| MOZILLA_EXEC_NAME?=${MOZILLA} | MOZILLA_EXEC_NAME?=${MOZILLA} | ||||
| USES+= compiler:c++17-lang cpe gl gmake gnome iconv localbase pkgconfig \ | USES+= compiler:c++17-lang cpe gl gmake gnome iconv llvm:noexport localbase \ | ||||
| python:build desktop-file-utils | pkgconfig python:build desktop-file-utils | ||||
| CPE_VENDOR?=mozilla | CPE_VENDOR?=mozilla | ||||
| USE_GL= gl | USE_GL= gl | ||||
| USE_GNOME= cairo gdkpixbuf2 gtk30 | USE_GNOME= cairo gdkpixbuf2 gtk30 | ||||
| USE_XORG= x11 xcb xcomposite xdamage xext xfixes xrandr xrender xt xtst | USE_XORG= x11 xcb xcomposite xdamage xext xfixes xrandr xrender xt xtst | ||||
| HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
| CONFIGURE_OUTSOURCE= yes | CONFIGURE_OUTSOURCE= yes | ||||
| LDFLAGS+= -Wl,--as-needed | LDFLAGS+= -Wl,--as-needed | ||||
| BINARY_ALIAS+= python3=${PYTHON_CMD} | BINARY_ALIAS+= python3=${PYTHON_CMD} | ||||
| BUNDLE_LIBS= yes | BUNDLE_LIBS= yes | ||||
| BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT} \ | BUILD_DEPENDS+= rust-cbindgen>=0.26.0:devel/rust-cbindgen \ | ||||
| rust-cbindgen>=0.26.0:devel/rust-cbindgen \ | |||||
| ${RUST_DEFAULT}>=1.72.0:lang/${RUST_DEFAULT} \ | ${RUST_DEFAULT}>=1.72.0:lang/${RUST_DEFAULT} \ | ||||
| node:www/node | node:www/node | ||||
| LIB_DEPENDS+= libdrm.so:graphics/libdrm | LIB_DEPENDS+= libdrm.so:graphics/libdrm | ||||
| RUN_DEPENDS+= ${LOCALBASE}/lib/libpci.so:devel/libpci | RUN_DEPENDS+= ${LOCALBASE}/lib/libpci.so:devel/libpci | ||||
| LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim | LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim | ||||
| MOZ_EXPORT+= ${CONFIGURE_ENV} \ | MOZ_EXPORT+= ${CONFIGURE_ENV} \ | ||||
| PYTHON3="${PYTHON_CMD}" \ | PYTHON3="${PYTHON_CMD}" \ | ||||
| RUSTFLAGS="${RUSTFLAGS}" | RUSTFLAGS="${RUSTFLAGS}" | ||||
| MOZ_OPTIONS+= --prefix="${PREFIX}" | MOZ_OPTIONS+= --prefix="${PREFIX}" | ||||
| MOZ_MK_OPTIONS+=MOZ_OBJDIR="${BUILD_WRKSRC}" | MOZ_MK_OPTIONS+=MOZ_OBJDIR="${BUILD_WRKSRC}" | ||||
| MOZ_OPTIONS+= --with-libclang-path="${LOCALBASE}/llvm${LLVM_DEFAULT}/lib" | MOZ_OPTIONS+= --with-libclang-path="${LLVM_PREFIX:S/${PREFIX}/${LOCALBASE}/}/lib" | ||||
| . if !exists(/usr/bin/llvm-objdump) | . if !exists(/usr/bin/llvm-objdump) | ||||
| MOZ_EXPORT+= LLVM_OBJDUMP="${LOCALBASE}/bin/llvm-objdump${LLVM_DEFAULT}" | MOZ_EXPORT+= LLVM_OBJDUMP="${LOCALBASE}/bin/llvm-objdump${LLVM_VERSION}" | ||||
| . endif | . endif | ||||
| # fix LLVM to version 13, as that's the only reasonable wasi-toolchain | |||||
| # we currently have | |||||
| # if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mllvm*} || ${PORT_OPTIONS:MLTO} | |||||
| LLVM_DEFAULT= 13 # chase bundled LLVM in lang/rust for LTO | |||||
| LLVM_VERSION= 13.0.1 # keep in sync with devel/wasi-compiler-rt${LLVM_DEFAULT} | |||||
| # endif | |||||
| # Require newer Clang than what's in base system unless user opted out | # Require newer Clang than what's in base system unless user opted out | ||||
| . if ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) | . if ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) | ||||
| BUILD_DEPENDS+= ${LOCALBASE}/bin/clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} | CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_VERSION} | ||||
| CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} | CC= ${LOCALBASE}/bin/clang${LLVM_VERSION} | ||||
| CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT} | CXX= ${LOCALBASE}/bin/clang++${LLVM_VERSION} | ||||
| CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT} | |||||
| USES:= ${USES:Ncompiler\:*} # XXX avoid warnings | USES:= ${USES:Ncompiler\:*} # XXX avoid warnings | ||||
| . endif | . endif | ||||
| MOZSRC?= ${WRKSRC} | MOZSRC?= ${WRKSRC} | ||||
| PLISTF?= ${WRKDIR}/plist_files | PLISTF?= ${WRKDIR}/plist_files | ||||
| MOZCONFIG?= ${WRKSRC}/.mozconfig | MOZCONFIG?= ${WRKSRC}/.mozconfig | ||||
| MOZILLA_PLIST_DIRS?= bin lib share/pixmaps share/applications | MOZILLA_PLIST_DIRS?= bin lib share/pixmaps share/applications | ||||
| ▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines | |||||