# Created by: Florent Thoumie # $FreeBSD$ PORTNAME= chromium DISTVERSIONPREFIX= courgette-redacted- DISTVERSION= 27.0.1453.116 CATEGORIES= www MASTER_SITES= http://download.goodking.org/downloads/ \ ftp://rene-ladan.nl/pub/distfiles/ \ http://files.etoilebsd.net/goodking/ MAINTAINER= chromium@FreeBSD.org COMMENT= Mostly BSD-licensed web browser based on WebKit and Gtk+ LICENSE= BSD LGPL21 MPL LICENSE_COMB= multi CFLAGS+= -Wno-error -fno-stack-protector BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \ bash:${PORTSDIR}/shells/bash \ yasm:${PORTSDIR}/devel/yasm \ flock:${PORTSDIR}/sysutils/flock \ v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo \ cairo:${PORTSDIR}/graphics/cairo \ dbus-1:${PORTSDIR}/devel/dbus \ dbus-glib-1:${PORTSDIR}/devel/dbus-glib \ asound:${PORTSDIR}/audio/alsa-lib \ freetype:${PORTSDIR}/print/freetype2 \ nss3:${PORTSDIR}/security/nss \ gnome-keyring:${PORTSDIR}/security/libgnome-keyring \ cups:${PORTSDIR}/print/cups-client \ event-1:${PORTSDIR}/devel/libevent \ gcrypt:${PORTSDIR}/security/libgcrypt \ speechd:${PORTSDIR}/accessibility/speech-dispatcher \ pci:${PORTSDIR}/devel/libpci RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins \ ${LOCALBASE}/lib/X11/fonts/Droid/fonts.dir:${PORTSDIR}/x11-fonts/droid-fonts-ttf ONLY_FOR_ARCHS= i386 amd64 USE_XZ= yes USES= bison pkgconfig desktop-file-utils USE_GMAKE= yes USE_PERL5_BUILD= yes USE_PYTHON_BUILD= 2.6+ USE_XORG= scrnsaverproto x11 xproto xscrnsaver xtst USE_GNOME= glib20 gtk20 dconf libxslt MAN1= chrome.1 ALL_TARGET= chrome # See build/common.gypi for all the available variables. GYP_DEFINES+= use_cups=1 \ use_system_yasm=1 \ use_system_libxml=1 \ use_system_ffmpeg=0 \ use_system_libusb=1 \ use_system_libevent=1 \ use_system_libvpx=0 \ linux_breakpad=0 \ linux_strip_binary=1 \ linux_use_tcmalloc=0 \ linux_use_heapchecker=0 \ linux_link_libspeechd=1 \ clang_use_chrome_plugins=0 \ disable_nacl=1 \ enable_webrtc=0 \ enable_openmax=1 \ enable_one_click_signin=1 \ no_gc_sections=1 \ os_ver=${OSVERSION} \ prefix_dir=${LOCALBASE} \ python_ver=${PYTHON_VER} # FreeBSD Chromium Api Key # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . # Note: these are for FreeBSD use ONLY. For your own distribution, # please get your own set of keys. GYP_DEFINES+= google_api_key=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8 \ google_default_client_id=996322985003.apps.googleusercontent.com \ google_default_client_secret=IR1za9-1VK0zZ0f_O8MVFicn SUB_FILES= chromium-browser.desktop SUB_LIST= COMMENT="${COMMENT}" \ DATADIR=${DATADIR} OPTIONS_DEFINE= CODECS GCONF PULSEAUDIO CLANG DEBUG CODECS_DESC= Compile and enable patented codecs like H.264 CLANG_DESC= Build Chromium with Clang instead of GCC 4.6+ OPTIONS_DEFAULT= CODECS GCONF CLANG .include .if ${OSVERSION} < 900033 || ! ${PORT_OPTIONS:MCLANG} BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin .endif .if ${PORT_OPTIONS:MCODECS} GYP_DEFINES+= ffmpeg_branding=Chrome GYP_DEFINES+= proprietary_codecs=1 .else GYP_DEFINES+= ffmpeg_branding=Chromium GYP_DEFINES+= proprietary_codecs=0 .endif .if ${PORT_OPTIONS:MGCONF} USE_GNOME+= gconf2 .else GYP_DEFINES+= use_gconf=0 .endif .if ${PORT_OPTIONS:MPULSEAUDIO} LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio GYP_DEFINES+= use_pulseaudio=1 .else GYP_DEFINES+= use_pulseaudio=0 .endif .if ! ${MACHINE_CPU:Msse2} GYP_DEFINES+= disable_sse2=1 .endif .if ${PORT_OPTIONS:MCLANG} .if ${OSVERSION} < 900033 BUILD_DEPENDS+= clang:${PORTSDIR}/lang/clang .endif CC= clang CXX= clang++ GYP_DEFINES+= clang=1 .else USE_GCC?= 4.6+ GYP_DEFINES+= gcc_version=${CXX:S/g++//} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-gcc .endif .if ${PORT_OPTIONS:MDEBUG} MAKE_ENV+= V=1 BUILDTYPE= Debug .else BUILDTYPE= Release .endif MAKE_ENV+= BUILDTYPE=${BUILDTYPE} \ GPERF=${LOCALBASE}/bin/gperf MAKE_JOBS_SAFE= yes .include pre-everything:: @${ECHO_MSG} @${ECHO_MSG} "To build Chromium, you should have around 1 GB of memory" .if ${PORT_OPTIONS:MDEBUG} @${ECHO_MSG} "and lots of free diskspace (~ 8.5GB)." .else @${ECHO_MSG} "and a fair amount of free diskspace (~ 2.4GB)." .endif @${ECHO_MSG} post-patch: @${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \ ${WRKSRC}/base/base.gypi \ ${WRKSRC}/build/common.gypi \ ${WRKSRC}/third_party/libvpx/libvpx.gyp \ ${WRKSRC}/third_party/WebKit/Source/WebCore/plugins/PluginDatabase.cpp \ ${WRKSRC}/crypto/crypto.gyp \ ${WRKSRC}/v8/tools/gyp/v8.gyp \ ${WRKSRC}/v8/build/common.gypi @${REINPLACE_CMD} -e "s|linux|freebsd|" \ ${WRKSRC}/tools/gyp/pylib/gyp/generator/make.py @${REINPLACE_CMD} -e "s|is_linux|(is_linux or is_bsd)|" \ ${WRKSRC}/chrome/browser/browser_resources.grd \ ${WRKSRC}/chrome/app/theme/theme_resources.grd \ ${WRKSRC}/chrome/browser/resources/task_manager/defines.js \ ${WRKSRC}/tools/grit/grit/xtb_reader_unittest.py \ ${WRKSRC}/ui/base/strings/app_locale_settings.grd \ ${WRKSRC}/ui/base/strings/app_locale_settings_bn.xtb \ ${WRKSRC}/ui/base/strings/app_locale_settings_ja.xtb \ ${WRKSRC}/ui/base/strings/app_locale_settings_ko.xtb \ ${WRKSRC}/ui/base/strings/app_locale_settings_ml.xtb \ ${WRKSRC}/ui/base/strings/app_locale_settings_th.xtb do-configure: cd ${WRKSRC} && \ GYP_DEFINES="${GYP_DEFINES}" ${PYTHON_CMD} \ ./build/gyp_chromium chrome/chrome.gyp --depth . do-install: @${MKDIR} ${DATADIR} ${INSTALL_MAN} ${WRKSRC}/out/${BUILDTYPE}/chrome.1 ${MANPREFIX}/man/man1 ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/product_logo_48.png ${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/out/${BUILDTYPE}/chrome-wrapper \ ${WRKSRC}/out/${BUILDTYPE}/xdg-settings ${DATADIR} .for p in chrome chrome_100_percent content_resources resources ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${p}.pak ${DATADIR} .endfor .for f in chrome libffmpegsumo.so mksnapshot protoc ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/${f} ${DATADIR} .endfor cd ${WRKSRC}/out/${BUILDTYPE} && \ ${COPYTREE_SHARE} "locales resources" ${DATADIR} ${INSTALL_DATA} ${WRKDIR}/chromium-browser.desktop ${DESKTOPDIR} ${LN} -sf ${DATADIR}/chrome ${PREFIX}/bin post-install: ${CAT} ${PKGMESSAGE} .include Commit message (Expand)AuthorAgeFilesLines * Convert to UCL & cleanup pkg-message (categories x)mat2019-08-141-0/+6 * x11-fonts/mkfontscale: Update to 1.2.0zeising2019-03-121-1/+1 * Reset ports maintained by bf@ until he has time again to work on them.rene2016-06-281-1/+1 * MASTER_SITES cleanup.mat2015-05-141-1/+0 * Rework XORG_CAT= fontbapt2015-03-203-19/+8 * Add DOCS to OPTIONS_DEFINE to ports that check for PORT_OPTIONS:MDOCS.adamw2014-07-161-0/+2 * Unbreak INDEXantoine2014-07-031-1/+0 * Use options and stagingbf2014-07-031-3/+9 * x11-fonts/doulos{,-compact}: STAGEifybsam2014-07-031-14/+4 * First batch at resetting maintainership on ports that have not been staged andbapt2014-07-031-1/+1 * Convert x* to USES=zipbapt2014-03-111-1/+1 * - Update LICENSE accordingly, now that OFL10 and OFL11 are definedtabthorpe2013-11-051-4/+1