Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2018 13:35:42 +0000 (UTC)
From:      Philip Paeps <philip@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485772 - in head/www/cliqz: . files
Message-ID:  <201811241335.wAODZg8o089848@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: philip
Date: Sat Nov 24 13:35:42 2018
New Revision: 485772
URL: https://svnweb.freebsd.org/changeset/ports/485772

Log:
  www/cliqz: fix build on i386
  
  Submitted by:	Santhosh Raju <santhosh.raju@gmail.com> (maintainer)

Modified:
  head/www/cliqz/Makefile
  head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig

Modified: head/www/cliqz/Makefile
==============================================================================
--- head/www/cliqz/Makefile	Sat Nov 24 13:35:19 2018	(r485771)
+++ head/www/cliqz/Makefile	Sat Nov 24 13:35:42 2018	(r485772)
@@ -50,7 +50,8 @@ BUILD_DEPENDS=	autoconf-2.13:devel/autoconf213 \
 		yasm:devel/yasm \
 		zip:archivers/zip
 
-USES=		tar:xz gmake pkgconfig gnome python desktop-file-utils
+USES=		tar:xz gmake pkgconfig gnome python desktop-file-utils \
+		compiler:c11
 
 USE_GNOME=	gconf2 gtk20 gtk30 cairo gdkpixbuf2
 
@@ -83,6 +84,9 @@ post-extract:
 		${DISTDIR}/${DIST_SUBDIR}/https-everywhere@cliqz.com.xpi \
 		${DISTDIR}/${DIST_SUBDIR}/gdprtool@cliqz.com.xpi \
 		${WRKSRC}/obj/dist/bin/browser/features
+
+.include <bsd.port.pre.mk>
+
 post-patch:
 	@${CP} ${MOZ_DESKTOP} ${CLIQZ_DESKTOP}
 	@${REINPLACE_CMD} -e 's/@MOZ_APP_DISPLAYNAME@/Cliqz Internet/g' \
@@ -90,6 +94,12 @@ post-patch:
 		-e '/Icon=${PORTNAME}/ s/${PORTNAME}/${CLIQZ_ICON}/' \
 		-e '/StartupWMClass/d' \
 		${CLIQZ_DESKTOP}
+.if ${ARCH} == "i386"
+	# This prevents linker exhausting memory in i386 builds
+	@${ECHO_CMD} 'export LDFLAGS="-Wl,--no-keep-memory"' >> \
+		${WRKSRC}/mozilla-release/browser/config/cliqz.mozconfig
+.endif
+
 do-build:
 	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./magic_build_and_package.sh)
 
@@ -106,4 +116,4 @@ post-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
 	@${CP} ${CLIQZ_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${CLIQZ_ICON}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig
==============================================================================
--- head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig	Sat Nov 24 13:35:19 2018	(r485771)
+++ head/www/cliqz/files/patch-mozilla-release_browser_config_cliqz.mozconfig	Sat Nov 24 13:35:42 2018	(r485772)
@@ -1,11 +1,12 @@
 --- mozilla-release/browser/config/cliqz.mozconfig.orig	2018-11-16 08:40:07 UTC
 +++ mozilla-release/browser/config/cliqz.mozconfig
-@@ -10,6 +10,8 @@ ac_add_options --enable-official-brandin
+@@ -10,6 +10,9 @@ ac_add_options --enable-official-brandin
  ac_add_options --with-app-name=cliqz  # name for binaries
  ac_add_options --enable-crashreporter
  ac_add_options --enable-js-shell
 +ac_add_options --disable-crashreporter
 +ac_add_options --disable-updater
++ac_add_options --disable-tests
  
  export MOZ_APP_PROFILE=CLIQZ
  export MOZ_AUTOMATION_UPLOAD=1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811241335.wAODZg8o089848>