1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

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]
This commit is contained in:
Rene Ladan 2021-03-07 13:28:13 +00:00
parent 1bf70633fe
commit c2cd6ee7d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567568

View File

@ -127,12 +127,20 @@ GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8" \
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,8 +200,16 @@ TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX} \
.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
@ -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: