svn commit: r464264 - in head/www/chromium: . files
Craig Leres
leres at FreeBSD.org
Mon Mar 12 17:44:38 UTC 2018
Author: leres
Date: Mon Mar 12 17:44:37 2018
New Revision: 464264
URL: https://svnweb.freebsd.org/changeset/ports/464264
Log:
Add a CUPS option to disable cups support and remove the
dependency on print/cups. This includes a patch from cpm@ that
solves an undefined linker reference that occurs when cups is
disabled. Since chromium does not support printing without cups
enabling this option also disables printing and print previews.
PR: 226505
Reviewed by: cpm, matthew (mentor)
Approved by: cpm, matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D14659
Added:
head/www/chromium/files/patch-chrome_service_cloud__print_print__system.cc (contents, props changed)
Modified:
head/www/chromium/Makefile
Modified: head/www/chromium/Makefile
==============================================================================
--- head/www/chromium/Makefile Mon Mar 12 17:03:04 2018 (r464263)
+++ head/www/chromium/Makefile Mon Mar 12 17:44:37 2018 (r464264)
@@ -3,6 +3,7 @@
PORTNAME= chromium
PORTVERSION= 64.0.3282.186
+PORTREVISION= 1
CATEGORIES?= www
MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -50,7 +51,6 @@ LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi
libwebp.so:graphics/webp \
libavcodec.so:multimedia/ffmpeg \
libopenh264.so:multimedia/openh264 \
- libcups.so:print/cups \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libharfbuzz-icu.so:print/harfbuzz-icu \
@@ -118,7 +118,6 @@ GN_ARGS+= clang_use_chrome_plugins=false \
use_allocator_shim=false \
use_aura=true \
use_bundled_fontconfig=false \
- use_cups=true \
use_custom_libcxx=false \
use_gtk3=true \
use_lld=true \
@@ -145,13 +144,13 @@ GN_ARGS+= google_api_key="AIzaSyBsp9n41JLW8jCokwn7vhoa
SUB_FILES= chromium-browser.desktop chrome
SUB_LIST+= COMMENT="${COMMENT}"
-OPTIONS_DEFINE= CODECS DEBUG DRIVER GCONF KERBEROS TEST
+OPTIONS_DEFINE= CODECS CUPS DEBUG DRIVER GCONF KERBEROS 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_DEFAULT= ALSA CODECS DRIVER GCONF KERBEROS
+OPTIONS_DEFAULT= ALSA CODECS CUPS DRIVER GCONF KERBEROS
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
@@ -166,6 +165,10 @@ CODECS_VARS= GN_ARGS+=ffmpeg_branding="Chrome" \
CODECS_VARS_OFF= GN_ARGS+=ffmpeg_branding="Chromium" \
GN_ARGS+=proprietary_codecs=false \
GN_ARGS+=enable_hevc_demuxing=false
+
+CUPS_LIB_DEPENDS= libcups.so:print/cups
+CUPS_VARS= GN_ARGS+=use_cups=true
+CUPS_VARS_OFF= GN_ARGS+=use_cups=false
DEBUG_VARS= BUILDTYPE=Debug \
GN_ARGS+=is_debug=true \
Added: head/www/chromium/files/patch-chrome_service_cloud__print_print__system.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/chromium/files/patch-chrome_service_cloud__print_print__system.cc Mon Mar 12 17:44:37 2018 (r464264)
@@ -0,0 +1,23 @@
+--- chrome/service/cloud_print/print_system.cc.orig 2018-02-24 15:25:11 UTC
++++ chrome/service/cloud_print/print_system.cc
+@@ -5,6 +5,7 @@
+ #include "chrome/service/cloud_print/print_system.h"
+
+ #include "base/guid.h"
++#include "build/build_config.h"
+
+ namespace cloud_print {
+
+@@ -35,5 +36,12 @@ std::string PrintSystem::GenerateProxyId
+ return base::GenerateGUID();
+ }
+
++#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(USE_CUPS)
++scoped_refptr<PrintSystem> PrintSystem::CreateInstance(
++ const base::DictionaryValue*) {
++ return nullptr;
++}
++#endif
++
+ } // namespace cloud_print
+
More information about the svn-ports-all
mailing list