Index: head/www/cliqz/Makefile =================================================================== --- head/www/cliqz/Makefile (revision 514485) +++ head/www/cliqz/Makefile (revision 514486) @@ -1,149 +1,152 @@ # $FreeBSD$ PORTNAME= cliqz -DISTVERSION= 1.29.0 -PORTREVISION= 1 +DISTVERSION= 1.29.2 CATEGORIES= www MASTER_SITES= https://s3.amazonaws.com/cdn.cliqz.com/browser-f/APT/:amazon \ http://repository.cliqz.com/dist/${CLIQZ_CHANNEL}/${DISTVERSION}/${CLIQZ_LAST_BUILD_ID}/:cliqz DISTFILES= adult-domains.bin:amazon \ cliqz@cliqz.com.xpi:cliqz \ gdprtool@cliqz.com.xpi:cliqz \ https-everywhere@cliqz.com.xpi:cliqz DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${_GITHUB_EXTRACT_SUFX} MAINTAINER= fox@FreeBSD.org COMMENT= Secure browser (Mozilla based) with built-in quick search LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE FETCH_DEPENDS= ca_root_nss>=0:security/ca_root_nss LIB_DEPENDS= libdbus-1.so:devel/dbus \ libdbus-glib-1.so:devel/dbus-glib \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ + libgraphite2.so:graphics/graphite2 \ + libharfbuzz.so:print/harfbuzz \ libnspr4.so:devel/nspr \ libnssutil3.so:security/nss \ libplc4.so:devel/nspr \ libplds4.so:devel/nspr -BUILD_DEPENDS= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio \ - ${LOCALBASE}/libdata/pkgconfig/xt.pc:x11-toolkits/libXt \ +BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xt.pc:x11-toolkits/libXt \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ - ${RUST_DEFAULT}>=1.28:lang/${RUST_DEFAULT} \ + ${RUST_DEFAULT}>=1.35:lang/${RUST_DEFAULT} \ autoconf-2.13:devel/autoconf213 \ bash:shells/bash \ - graphite2>=1.3.12:graphics/graphite2 \ - harfbuzz>=1.8.8:print/harfbuzz \ - icu>=59.1,1:devel/icu \ + graphite2>=1.3.13:graphics/graphite2 \ + harfbuzz>=2.5.3:print/harfbuzz \ + icu>=63.1,1:devel/icu \ libevent>=2.1.8:devel/libevent \ libvorbis>=1.3.6,3:audio/libvorbis \ libvpx>=1.5.0:multimedia/libvpx \ llvm${LLVM_DEFAULT}>=0:devel/llvm${LLVM_DEFAULT} \ nasm:devel/nasm \ node:www/node \ - nspr>=4.19:devel/nspr \ + nspr>=4.21:devel/nspr \ nss>=3.39:security/nss \ - png>=1.6.34:graphics/png \ - rust-cbindgen>=0.6.2:devel/rust-cbindgen \ - sqlite3>=3.24.0:databases/sqlite3 \ + png>=1.6.35:graphics/png \ + rust-cbindgen>=0.8.7:devel/rust-cbindgen \ + sqlite3>=3.28.0:databases/sqlite3 \ v4l_compat>0:multimedia/v4l_compat \ yasm:devel/yasm \ zip:archivers/zip USES= compiler:c11 desktop-file-utils gmake gnome pkgconfig \ python:2.7,build shebangfix tar:xz xorg USE_GNOME= cairo gconf2 gdkpixbuf2 gtk20 gtk30 -USE_XORG= x11 xcb xcb xcomposite xcursor xdamage xext xfixes xi xrender \ - xt +USE_XORG= x11 xcb xcomposite xcursor xdamage xext xfixes xi xrender xt USE_GITHUB= yes GH_ACCOUNT= cliqz-oss GH_PROJECT= browser-f +.include "${.CURDIR}/Makefile.options" + USE_LDCONFIG= yes bash_OLD_CMD= "/bin/bash" bash_CMD= ${LOCALBASE}/bin/bash SHEBANG_FILES= magic_build_and_package.sh CLIQZ_CHANNEL= release # If the DISTVERSION is updated, make sure to update the last build id from # fetch -qo - https://repository.cliqz.com/dist/${CLIQZ_CHANNEL}/${DISTVERSION}/lastbuildid -CLIQZ_LAST_BUILD_ID= 20190920100917 +CLIQZ_LAST_BUILD_ID= 20191008110659 CLIQZ_ICON= ${PORTNAME}.png CLIQZ_ICON_SRC= ${WRKSRC}/mozilla-release/browser/branding/${PORTNAME}/default48.png MOZ_DESKTOP= ${WRKSRC}/mozilla-release/toolkit/mozapps/installer/linux/rpm/mozilla.desktop CLIQZ_DESKTOP= ${WRKSRC}/mozilla-release/toolkit/mozapps/installer/linux/rpm/cliqz.desktop MAKE_ENV+= CQZ_BUILD_ID=${CLIQZ_LAST_BUILD_ID} \ CQZ_RELEASE_CHANNEL=${CLIQZ_CHANNEL} \ LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \ LLVM_OBJDUMP=${LOCALBASE}/llvm${LLVM_DEFAULT}/bin/llvm-objdump \ MOZBUILD_STATE_PATH=${WRKDIR} # Configure args passed into mach build system MOZ_CONFIGURE_ARGS+= "ac_add_options --disable-crashreporter" \ "ac_add_options --disable-debug" \ "ac_add_options --disable-debug-symbols" \ "ac_add_options --disable-tests" \ "ac_add_options --disable-updater" \ - "ac_add_options --libclang-path=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib" + "ac_add_options --libclang-path=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib" \ + "ac_add_options --with-system-graphite2" \ + "ac_add_options --with-system-harfbuzz" .include # Require newer Clang than what's in base system unless user opted out .if ${CC} == cc && ${CXX} == c++ && exists(/usr/lib/libc++.so) CPP= ${LOCALBASE}/bin/clang-cpp${LLVM_DEFAULT} CC= ${LOCALBASE}/bin/clang${LLVM_DEFAULT} CXX= ${LOCALBASE}/bin/clang++${LLVM_DEFAULT} # XXX avoid warnings USES:= ${USES:Ncompiler\:*} .endif post-extract: ${CP} ${DISTDIR}/${DIST_SUBDIR}/adult-domains.bin ${WRKSRC} ${MKDIR} ${WRKSRC}/obj/dist/bin/browser/features ${CP} ${DISTDIR}/${DIST_SUBDIR}/cliqz@cliqz.com.xpi \ ${DISTDIR}/${DIST_SUBDIR}/https-everywhere@cliqz.com.xpi \ ${DISTDIR}/${DIST_SUBDIR}/gdprtool@cliqz.com.xpi \ ${WRKSRC}/obj/dist/bin/browser/features post-patch: @${CP} ${MOZ_DESKTOP} ${CLIQZ_DESKTOP} @${REINPLACE_CMD} -e 's/@MOZ_APP_DISPLAYNAME@/Cliqz Internet/g' \ -e 's/@MOZ_APP_NAME@/${PORTNAME}/g' \ -e '/Icon=${PORTNAME}/ s/${PORTNAME}/${CLIQZ_ICON}/' \ -e '/StartupWMClass/d' \ ${CLIQZ_DESKTOP} .for MOZ_CONFIGURE_ARG in ${MOZ_CONFIGURE_ARGS} @${ECHO_CMD} ${MOZ_CONFIGURE_ARG} >> \ ${WRKSRC}/mozilla-release/browser/config/cliqz.mozconfig; .endfor # This prevents linker exhausting memory in i386 builds .if ${ARCH} == "i386" @${ECHO_CMD} 'export LDFLAGS="-Wl,--no-keep-memory -Wl,--as-needed"' >> \ ${WRKSRC}/mozilla-release/browser/config/cliqz.mozconfig .endif do-build: (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./magic_build_and_package.sh) do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} (cd ${WRKSRC}/obj/dist/${PORTNAME} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/${PORTNAME}) @${CHMOD} 755 ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${PORTNAME}-bin @${CHMOD} 755 ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${PORTNAME} post-install: ${RLN} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${PORTNAME}-bin ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_DATA} ${CLIQZ_DESKTOP} ${STAGEDIR}${PREFIX}/share/applications/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps @${CP} ${CLIQZ_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${CLIQZ_ICON} .include Index: head/www/cliqz/Makefile.options =================================================================== --- head/www/cliqz/Makefile.options (nonexistent) +++ head/www/cliqz/Makefile.options (revision 514486) @@ -0,0 +1,32 @@ +# $FreeBSD$ + +# Audio server options +OPTIONS_MULTI= AUDIO +OPTIONS_MULTI_AUDIO= JACK PULSEAUDIO SNDIO +OPTIONS_DEFAULT= JACK PULSEAUDIO SNDIO +AUDIO_DESC= Choose your audio options + +.include + +.if ${PORT_OPTIONS:MJACK} +BUILD_DEPENDS+= ${LOCALBASE}/include/jack/jack.h:audio/jack +MOZ_CONFIGURE_ARGS+= "ac_add_options --enable-jack" +.endif + +.if ${PORT_OPTIONS:MPULSEAUDIO} +BUILD_DEPENDS+= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio +MOZ_CONFIGURE_ARGS+= "ac_add_options --enable-pulseaudio" +.else +MOZ_CONFIGURE_ARGS+= "ac_add_options --disable-pulseaudio" +.endif + +.if ${PORT_OPTIONS:MSNDIO} +BUILD_DEPENDS+= ${LOCALBASE}/include/sndio.h:audio/sndio +LIB_DEPENDS+= libsndio.so:audio/sndio +post-patch-SNDIO-on: + @${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|g' \ + ${WRKSRC}/mozilla-release/media/libcubeb/src/moz.build \ + ${WRKSRC}/mozilla-release/toolkit/library/moz.build + @${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|g' \ + ${WRKSRC}/mozilla-release/media/libcubeb/gtest/moz.build +.endif Property changes on: head/www/cliqz/Makefile.options ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/cliqz/distinfo =================================================================== --- head/www/cliqz/distinfo (revision 514485) +++ head/www/cliqz/distinfo (revision 514486) @@ -1,11 +1,11 @@ -TIMESTAMP = 1569573921 +TIMESTAMP = 1570787248 SHA256 (cliqz/adult-domains.bin) = 3d018d6ffa75107fdfbf39658e4adaa092d9b8a90c7865b21376855f7c382b65 SIZE (cliqz/adult-domains.bin) = 528392 -SHA256 (cliqz/cliqz@cliqz.com.xpi) = 3617f21e0ba06df20022eb95aaa87fd55109d346939f7eaba66a67d821540c6a -SIZE (cliqz/cliqz@cliqz.com.xpi) = 5914074 +SHA256 (cliqz/cliqz@cliqz.com.xpi) = c729bf22cd90c3312f0ea6f142eb6857f50cfe978dafc74710d9e1841cd602b8 +SIZE (cliqz/cliqz@cliqz.com.xpi) = 5903170 SHA256 (cliqz/gdprtool@cliqz.com.xpi) = 95ce7bd4ba1ea301246ce45bc3cdcff550acf7d8f1af1b42fd22984614cd9018 SIZE (cliqz/gdprtool@cliqz.com.xpi) = 222247 SHA256 (cliqz/https-everywhere@cliqz.com.xpi) = 094516da166aa984c836130075184315c5636033899c49fe6bca5b7190f488fc SIZE (cliqz/https-everywhere@cliqz.com.xpi) = 2147608 -SHA256 (cliqz/cliqz-oss-browser-f-1.29.0_GH0.tar.gz) = 10850fa992b8d1cac92bb8f0c06148248a0fb1568d36a408768420b20248d0f6 -SIZE (cliqz/cliqz-oss-browser-f-1.29.0_GH0.tar.gz) = 501511014 +SHA256 (cliqz/cliqz-oss-browser-f-1.29.2_GH0.tar.gz) = dd63c2d435501614ad46df7d934362284f591144cacea6b06dd1b95be1203481 +SIZE (cliqz/cliqz-oss-browser-f-1.29.2_GH0.tar.gz) = 501536649 Index: head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig =================================================================== --- head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig (revision 514485) +++ head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig (nonexistent) @@ -1,14 +0,0 @@ ---- mozilla-release/browser/config/cliqz.mozconfig.orig 2019-05-29 12:52:42 UTC -+++ mozilla-release/browser/config/cliqz.mozconfig -@@ -14,6 +14,11 @@ ac_add_options --enable-verify-mar - ac_add_options --with-mozilla-api-keyfile=$ROOT_PATH/mozilla-desktop-geoloc-api.key - ac_add_options --with-google-safebrowsing-api-keyfile=$ROOT_PATH/google-desktop-api.key - ac_add_options "MOZ_ALLOW_LEGACY_EXTENSIONS=1" -+ac_add_options --disable-crashreporter -+ac_add_options --disable-updater -+ac_add_options --disable-tests -+ac_add_options --disable-debug -+ac_add_options --disable-debug-symbols - - export MOZ_APP_PROFILE=CLIQZ - export MOZ_AUTOMATION_UPLOAD=1 Property changes on: head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -on \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/cliqz/files/patch-bug847568 =================================================================== --- head/www/cliqz/files/patch-bug847568 (nonexistent) +++ head/www/cliqz/files/patch-bug847568 (revision 514486) @@ -0,0 +1,235 @@ +Force building against system-wide graphite2/harfbuzz. + +This was causing cliqz build failures in 13.0-CURRENT (1300050). + +--- mozilla-release/config/system-headers.mozbuild.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/config/system-headers.mozbuild +@@ -1304,6 +1304,19 @@ if CONFIG['MOZ_ENABLE_CONTENTMANAGER']: + 'SelectSingleContentItemPage.h', + ] + ++if CONFIG['MOZ_SYSTEM_GRAPHITE2']: ++ system_headers += [ ++ 'graphite2/Font.h', ++ 'graphite2/Segment.h', ++ ] ++ ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ system_headers += [ ++ 'harfbuzz/hb-glib.h', ++ 'harfbuzz/hb-ot.h', ++ 'harfbuzz/hb.h', ++ ] ++ + if CONFIG['MOZ_SYSTEM_LIBVPX']: + system_headers += [ + 'vpx_mem/vpx_mem.h', +--- mozilla-release/dom/base/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/dom/base/moz.build +@@ -528,6 +528,9 @@ if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/andr + if CONFIG['MOZ_X11']: + CXXFLAGS += CONFIG['TK_CFLAGS'] + ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS'] ++ + GENERATED_FILES += [ + 'PropertyUseCounterMap.inc', + 'UseCounterList.h', +--- mozilla-release/gfx/graphite2/moz-gr-update.sh.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/gfx/graphite2/moz-gr-update.sh +@@ -1,6 +1,7 @@ + #!/bin/bash + + # Script used to update the Graphite2 library in the mozilla source tree ++# and bump version for --with-system-graphite2 + + # This script lives in gfx/graphite2, along with the library source, + # but must be run from the top level of the mozilla-central tree. +@@ -37,12 +38,16 @@ echo "See" $0 "for update procedure." >> gfx/graphite2 + #find gfx/graphite2/ -name "*.cpp" -exec perl -p -i -e "s///;s/Windows.h/windows.h/;" {} \; + #find gfx/graphite2/ -name "*.h" -exec perl -p -i -e "s///;s/Windows.h/windows.h/;" {} \; + ++# chase version for --with-system-graphite2 ++perl -p -i -e "s/[0-9]+\,[0-9]+\,[0-9]+/$RELEASE/ and tr/./,/ \ ++ if /GR2_VERSION_REQUIRE/" old-configure.in ++ + # summarize what's been touched + echo Updated to $RELEASE. + echo Here is what changed in the gfx/graphite2 directory: + echo + +-hg stat gfx/graphite2 ++hg stat old-configure.in gfx/graphite2 + + echo + echo If gfx/graphite2/src/files.mk has changed, please make corresponding +--- mozilla-release/gfx/harfbuzz/README-mozilla.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/gfx/harfbuzz/README-mozilla +@@ -15,3 +15,8 @@ from within the gfx/harfbuzz directory. + + If the collection of source files changes, manual updates to moz.build may be + needed as we don't use the upstream makefiles. ++ ++The in-tree copy may be omitted during build by --with-system-harfbuzz. ++Make sure to keep pkg-config version check within toolkit/moz.configure in sync ++with checkout version or increment latest tag by one if it's not based ++on upstream release. +--- mozilla-release/gfx/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/gfx/moz.build +@@ -12,6 +12,12 @@ with Files('wr/**'): + if CONFIG['MOZ_TREE_CAIRO']: + DIRS += ['cairo'] + ++if not CONFIG['MOZ_SYSTEM_GRAPHITE2']: ++ DIRS += ['graphite2/src' ] ++ ++if not CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ DIRS += ['harfbuzz/src'] ++ + DIRS += [ + '2d', + 'ycbcr', +@@ -20,8 +26,6 @@ DIRS += [ + 'qcms', + 'gl', + 'layers', +- 'graphite2/src', +- 'harfbuzz/src', + 'ots/src', + 'thebes', + 'ipc', +--- mozilla-release/gfx/skia/generate_mozbuild.py.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/gfx/skia/generate_mozbuild.py +@@ -117,6 +117,9 @@ if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'): + '-Wno-unused-private-field', + ] + ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS'] ++ + if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk3', 'android'): + CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] + CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS'] +--- mozilla-release/gfx/skia/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/gfx/skia/moz.build +@@ -493,6 +493,9 @@ if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'): + '-Wno-unused-private-field', + ] + ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS'] ++ + if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk3', 'android'): + CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS'] + CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS'] +--- mozilla-release/gfx/thebes/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/gfx/thebes/moz.build +@@ -284,7 +284,13 @@ if CONFIG['MOZ_WAYLAND']: + + LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES'] + +-DEFINES['GRAPHITE2_STATIC'] = True ++if CONFIG['MOZ_SYSTEM_GRAPHITE2']: ++ CXXFLAGS += CONFIG['MOZ_GRAPHITE2_CFLAGS'] ++else: ++ DEFINES['GRAPHITE2_STATIC'] = True ++ ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS'] + + if CONFIG['CC_TYPE'] == 'clang': + # Suppress warnings from Skia header files. +--- mozilla-release/intl/unicharutil/util/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/intl/unicharutil/util/moz.build +@@ -25,4 +25,7 @@ UNIFIED_SOURCES += [ + 'nsUnicodeProperties.cpp', + ] + ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS'] ++ + FINAL_LIBRARY = 'xul' +--- mozilla-release/netwerk/dns/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/netwerk/dns/moz.build +@@ -83,3 +83,6 @@ USE_LIBS += ['icu'] + + if CONFIG['CC_TYPE'] in ('clang', 'gcc'): + CXXFLAGS += ['-Wno-error=shadow'] ++ ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ CXXFLAGS += CONFIG['MOZ_HARFBUZZ_CFLAGS'] +--- mozilla-release/old-configure.in.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/old-configure.in +@@ -2715,6 +2715,27 @@ dnl ================================================== + AC_SUBST(MOZ_LINUX_32_SSE2_STARTUP_ERROR) + + dnl ======================================================== ++dnl Check for graphite2 ++dnl ======================================================== ++if test -n "$MOZ_SYSTEM_GRAPHITE2"; then ++ dnl graphite2.pc has bogus version, check manually ++ _SAVE_CFLAGS=$CFLAGS ++ CFLAGS="$CFLAGS $MOZ_GRAPHITE2_CFLAGS" ++ AC_TRY_COMPILE([ #include ++ #define GR2_VERSION_REQUIRE(major,minor,bugfix) \ ++ ( GR2_VERSION_MAJOR * 10000 + GR2_VERSION_MINOR \ ++ * 100 + GR2_VERSION_BUGFIX >= \ ++ (major) * 10000 + (minor) * 100 + (bugfix) ) ++ ], [ ++ #if !GR2_VERSION_REQUIRE(1,3,12) ++ #error "Insufficient graphite2 version." ++ #endif ++ ], [], ++ [AC_MSG_ERROR([--with-system-graphite2 requested but no working libgraphite2 found])]) ++ CFLAGS=$_SAVE_CFLAGS ++fi ++ ++dnl ======================================================== + dnl Check for pixman and cairo + dnl ======================================================== + +--- mozilla-release/toolkit/library/moz.build.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/toolkit/library/moz.build +@@ -226,6 +226,12 @@ if CONFIG['MOZ_SYSTEM_PNG']: + if CONFIG['MOZ_SYSTEM_WEBP']: + OS_LIBS += CONFIG['MOZ_WEBP_LIBS'] + ++if CONFIG['MOZ_SYSTEM_GRAPHITE2']: ++ OS_LIBS += CONFIG['MOZ_GRAPHITE2_LIBS'] ++ ++if CONFIG['MOZ_SYSTEM_HARFBUZZ']: ++ OS_LIBS += CONFIG['MOZ_HARFBUZZ_LIBS'] ++ + if CONFIG['MOZ_SYSTEM_LIBEVENT']: + OS_LIBS += CONFIG['MOZ_LIBEVENT_LIBS'] + +--- mozilla-release/toolkit/moz.configure.orig 2019-10-08 09:02:23 UTC ++++ mozilla-release/toolkit/moz.configure +@@ -932,6 +932,26 @@ set_config('ENABLE_REMOTE_AGENT', remote) + set_define('ENABLE_REMOTE_AGENT', remote) + + ++# Graphite2 ++# ============================================================== ++option('--with-system-graphite2', ++ help="Use system graphite2 (located with pkgconfig)") ++ ++system_graphite2 = pkg_check_modules('MOZ_GRAPHITE2', 'graphite2', ++ when='--with-system-graphite2') ++ ++set_config('MOZ_SYSTEM_GRAPHITE2', depends_if(system_graphite2)(lambda _: True)) ++ ++# HarfBuzz ++# ============================================================== ++option('--with-system-harfbuzz', ++ help="Use system harfbuzz (located with pkgconfig)") ++ ++system_harfbuzz = pkg_check_modules('MOZ_HARFBUZZ', 'harfbuzz >= 2.5.3', ++ when='--with-system-harfbuzz') ++ ++set_config('MOZ_SYSTEM_HARFBUZZ', depends_if(system_harfbuzz)(lambda _: True)) ++ + # Marionette remote protocol + # ============================================================== + # Property changes on: head/www/cliqz/files/patch-bug847568 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/cliqz/files/patch-mozilla-release_config_rules.mk =================================================================== --- head/www/cliqz/files/patch-mozilla-release_config_rules.mk (revision 514485) +++ head/www/cliqz/files/patch-mozilla-release_config_rules.mk (revision 514486) @@ -1,26 +1,26 @@ ---- mozilla-release/config/rules.mk.orig 2019-05-29 12:52:42 UTC +--- mozilla-release/config/rules.mk.orig 2019-10-08 09:02:23 UTC +++ mozilla-release/config/rules.mk -@@ -1003,20 +1003,20 @@ $(EXTENSIONS_PATH): +@@ -989,20 +989,20 @@ $(EXTENSIONS_PATH): CLIQZ_XPI_PATH = $(EXTENSIONS_PATH)/cliqz@cliqz.com.xpi $(CLIQZ_XPI_PATH): $(EXTENSIONS_PATH) echo CLIQZ_XPI_PATH in `pwd` - wget --output-document $(CLIQZ_XPI_PATH) $(CLIQZ_EXT_URL) +# wget --output-document $(CLIQZ_XPI_PATH) $(CLIQZ_EXT_URL) HTTPSE_XPI_PATH = $(EXTENSIONS_PATH)/https-everywhere@cliqz.com.xpi $(HTTPSE_XPI_PATH): $(EXTENSIONS_PATH) ifdef HTTPSE_EXT_URL echo HTTPSE_XPI_PATH in `pwd` - wget --output-document $(HTTPSE_XPI_PATH) $(HTTPSE_EXT_URL) +# wget --output-document $(HTTPSE_XPI_PATH) $(HTTPSE_EXT_URL) endif CONSENTRICK_XPI_PATH = $(EXTENSIONS_PATH)/gdprtool@cliqz.com.xpi $(CONSENTRICK_XPI_PATH): $(EXTENSIONS_PATH) ifdef CONSENTRICK_EXT_URL echo CONSENTRICK_XPI_PATH in `pwd` - wget --output-document $(CONSENTRICK_XPI_PATH) $(CONSENTRICK_EXT_URL) +# wget --output-document $(CONSENTRICK_XPI_PATH) $(CONSENTRICK_EXT_URL) endif - CLIQZ_ONIONMODE_XPI_PATH = $(EXTENSIONS_PATH)/onionmode@cliqz.com.xpi + DAT_XPI_PATH = $(EXTENSIONS_PATH)/dat@cliqz.com.xpi