Date: Sun, 7 Mar 2021 13:28:14 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r567568 - head/www/chromium Message-ID: <202103071328.127DSEVi010802@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Sun Mar 7 13:28:13 2021 New Revision: 567568 URL: https://svnweb.freebsd.org/changeset/ports/567568 Log: www/chromium: some improvements for custom builds: - enable link-time optimization (only for 13.0+ for now) [1] - make Kerberos backend configurable (default unchanged) [2] PR: 253628 [1] PR: 254086 [2] Submitted by: iron.udjin@gmail.com [1] Submitted by: david@dcrosstech.com [2] Modified: head/www/chromium/Makefile Modified: head/www/chromium/Makefile ============================================================================== --- head/www/chromium/Makefile Sun Mar 7 13:25:21 2021 (r567567) +++ head/www/chromium/Makefile Sun Mar 7 13:28:13 2021 (r567568) @@ -127,12 +127,20 @@ GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoa SUB_FILES= chromium-browser.desktop chrome SUB_LIST+= COMMENT="${COMMENT}" -OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS TEST +OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER KERBEROS LTO TEST CODECS_DESC= Compile and enable patented codecs like H.264 DRIVER_DESC= Install chromedriver OPTIONS_GROUP= AUDIO OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO SNDIO +OPTIONS_RADIO= KERBEROS +OPTIONS_RADIO_KERBEROS= HEIMDAL HEIMDAL_BASE MIT +HEIMDAL_DESC= Heimdal Kerberos (security/heimdal) +HEIMDAL_BASE_DESC= Heimdal Kerberos (base) +MIT_DESC= MIT Kerberos (security/krb5) +HEIMDAL_LIB_DEPENDS= libkrb.so.26:security/heimdal +MIT_LIB_DEPENDS= libkrb.so.3:security/krb5 + OPTIONS_DEFAULT= CODECS CUPS DRIVER KERBEROS SNDIO OPTIONS_SUB= yes @@ -156,19 +164,23 @@ DEBUG_VARS= BUILDTYPE=Debug \ GN_ARGS+=is_component_build=false \ GN_ARGS+=symbol_level=1 \ GN_BOOTSTRAP_FLAGS+=--debug \ - WANTSPACE="lots of free disk space (~ 13GB)" + WANTSPACE="13 GB" DEBUG_VARS_OFF= BUILDTYPE=Release \ GN_ARGS+=blink_symbol_level=0 \ GN_ARGS+=is_debug=false \ GN_ARGS+=is_official_build=true \ GN_ARGS+=symbol_level=0 \ - WANTSPACE="a fair amount of free disk space (~ 6.5GB)" + WANTSPACE="6.5 GB" DRIVER_MAKE_ARGS= chromedriver KERBEROS_VARS= GN_ARGS+=use_kerberos=true KERBEROS_VARS_OFF= GN_ARGS+=use_kerberos=false +LTO_VARS= GN_ARGS+=use_thin_lto=true \ + GN_ARGS+=thin_lto_enable_optimizations=true \ + WANTSPACE="14 GB" + PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false @@ -188,9 +200,17 @@ TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${ .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MHEIMDAL_BASE} && !exists(/usr/lib/libkrb5.so) +IGNORE= you have selected HEIMDAL_BASE but do not have Heimdal installed in base +.endif + .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-build_config_compiler_pgo_pgo.gni + +.if ${PORT_OPTIONS:MLTO} +BROKEN+= does not build with LTO on FreeBSD < 13, needs LLVM 11+ .endif +.endif # swiftshader/lib/{libEGL.so,libGLESv2.so} is x86 only .if ${ARCH} == aarch64 @@ -215,7 +235,7 @@ MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "To build Chromium, you should have around 2GB of memory" - @${ECHO_MSG} "and ${WANTSPACE}." + @${ECHO_MSG} "and around ${WANTSPACE} of free disk space." @${ECHO_MSG} post-extract-TEST-on:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103071328.127DSEVi010802>