From owner-svn-ports-head@freebsd.org Fri Jun 30 19:13:46 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51417D98A11; Fri, 30 Jun 2017 19:13:46 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 240BB7974E; Fri, 30 Jun 2017 19:13:46 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5UJDjXk070919; Fri, 30 Jun 2017 19:13:45 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5UJDjC2070918; Fri, 30 Jun 2017 19:13:45 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201706301913.v5UJDjC2070918@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Fri, 30 Jun 2017 19:13:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r444776 - head/www/iridium X-SVN-Group: ports-head X-SVN-Commit-Author: cpm X-SVN-Commit-Paths: head/www/iridium X-SVN-Commit-Revision: 444776 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 19:13:46 -0000 Author: cpm Date: Fri Jun 30 19:13:44 2017 New Revision: 444776 URL: https://svnweb.freebsd.org/changeset/ports/444776 Log: www/iridium: convert to option helpers - Drop USES=compiler as CC/CXX are set manually - Switch to option helpers - Cleanup Makefile - Bump PORTREVISION Modified: head/www/iridium/Makefile Modified: head/www/iridium/Makefile ============================================================================== --- head/www/iridium/Makefile Fri Jun 30 19:10:30 2017 (r444775) +++ head/www/iridium/Makefile Fri Jun 30 19:13:44 2017 (r444776) @@ -3,7 +3,7 @@ PORTNAME= iridium PORTVERSION= 58.0 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= www MASTER_SITES= https://downloads.iridiumbrowser.de/source/ PKGNAMESUFFIX= -browser @@ -61,8 +61,8 @@ RUN_DEPENDS= xdg-open:devel/xdg-utils \ droid-fonts-ttf>0:x11-fonts/droid-fonts-ttf ONLY_FOR_ARCHS= amd64 i386 -USES= bison compiler cpe desktop-file-utils execinfo jpeg \ - ninja perl5 pkgconfig python:2,build shebangfix tar:xz +USES= bison cpe desktop-file-utils execinfo jpeg ninja perl5 \ + pkgconfig python:2,build shebangfix tar:xz USE_PERL5= build USE_XORG= scrnsaverproto x11 xcb xcomposite xcursor xext xdamage xfixes xi \ @@ -72,6 +72,10 @@ MAKE_ARGS= -C out/${BUILDTYPE} ALL_TARGET= chrome INSTALLS_ICONS= yes +CC= clang40 +CXX= clang++40 +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang + # Run "./out/${BUILDTYPE}/gn args out/${BUILDTYPE} --list" for all variables. # Some parts don't have use_system_* flag, and can be turned on/off by using # replace_gn_files.py script, some parts just turned on/off for target host @@ -109,11 +113,40 @@ OPTIONS_GROUP_AUDIO= ALSA PULSEAUDIO SNDIO OPTIONS_DEFAULT= ALSA CODECS GCONF KERBEROS OPTIONS_SUB= yes -GCONF_USE= GNOME=gconf2 ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ alsa-lib>=1.1.1_1:audio/alsa-lib +ALSA_VARS= GN_ARGS+=use_alsa=true +ALSA_VARS_OFF= GN_ARGS+=use_alsa=false + +CODECS_VARS= GN_ARGS+=ffmpeg_branding="Chrome" \ + GN_ARGS+=proprietary_codecs=true \ + GN_ARGS+=enable_hevc_demuxing=true +CODECS_VARS_OFF= GN_ARGS+=ffmpeg_branding="Chromium" \ + GN_ARGS+=proprietary_codecs=false \ + GN_ARGS+=enable_hevc_demuxing=false + +DEBUG_VARS= BUILDTYPE=Debug \ + GN_ARGS+=is_debug=true \ + GN_BOOTSTRAP_FLAGS+=--debug \ + WANTSPACE="lots of free diskspace (~ 8.5GB)" +DEBUG_VARS_OFF= BUILDTYPE=Release \ + GN_ARGS+=is_debug=false \ + GN_ARGS+=symbol_level=0 \ + GN_ARGS+=remove_webcore_debug_symbols=true \ + WANTSPACE="a fair amount of free diskspace (~ 3.7GB)" + +GCONF_USE= GNOME=gconf2 +GCONF_VARS= GN_ARGS+=use_gconf=true +GCONF_VARS_OFF= GN_ARGS+=use_gconf=false + +KERBEROS_VARS= GN_ARGS+=use_kerberos=true +KERBEROS_VARS_OFF= GN_ARGS+=use_kerberos=false + PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio +PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true +PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false + # With SNDIO=on we exclude audio_manager_linux from the build (see # media/audio/BUILD.gn) and use audio_manager_openbsd which does not # support falling back to ALSA. In theory it supports falling back to @@ -125,64 +158,10 @@ SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false .include -.if ${PORT_OPTIONS:MALSA} -GN_ARGS+= use_alsa=true -.else -GN_ARGS+= use_alsa=false -.endif - -.if ${PORT_OPTIONS:MCODECS} -GN_ARGS+= ffmpeg_branding="Chrome" -GN_ARGS+= proprietary_codecs=true -GN_ARGS+= enable_hevc_demuxing=true -.else -GN_ARGS+= ffmpeg_branding="Chromium" -GN_ARGS+= proprietary_codecs=false -GN_ARGS+= enable_hevc_demuxing=false -.endif - -.if ${PORT_OPTIONS:MDEBUG} -BUILDTYPE= Debug -GN_ARGS+= is_debug=true -GN_BOOTSTRAP_FLAGS+= --debug -MAKE_ENV+= V=1 -.else -BUILDTYPE= Release -GN_ARGS+= is_debug=false -GN_ARGS+= symbol_level=0 -GN_ARGS+= remove_webcore_debug_symbols=true -.endif - -.if ${PORT_OPTIONS:MGCONF} -GN_ARGS+= use_gconf=true -.else -GN_ARGS+= use_gconf=false -.endif - -.if ${PORT_OPTIONS:MKERBEROS} -GN_ARGS+= use_kerberos=true -.else -GN_ARGS+= use_kerberos=false -.endif - -.if ${PORT_OPTIONS:MPULSEAUDIO} -GN_ARGS+= use_pulseaudio=true -.else -GN_ARGS+= use_pulseaudio=false -.endif - -.include - -CC= clang40 -CXX= clang++40 -#optionally set AR, LD, NM, READELF ? - # TODO: -isystem, would be just as ugly as this approach, but more reliably # build would fail without C_INCLUDE_PATH/CPLUS_INCLUDE_PATH env var set. MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ CPLUS_INCLUDE_PATH=${LOCALBASE}/include -# TODO: move this big extra to small ones -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang # Work around base r261801 .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100508 @@ -191,13 +170,8 @@ GN_ARGS+= extra_cxxflags="-D_LIBCPP_TRIVIAL_PAIR_COPY_ pre-everything:: @${ECHO_MSG} - @${ECHO_MSG} "To build Iridium, you should have around 2GB of memory," -.if ${PORT_OPTIONS:MDEBUG} - @${ECHO_MSG} "lots of free diskspace (~ 40GB)" - @${ECHO_MSG} "and no less then 16GB of memory for linking." -.else - @${ECHO_MSG} "and a fair amount of free diskspace (~ 3.7GB)." -.endif + @${ECHO_MSG} "To build Iridium, you should have around 2GB of memory" + @${ECHO_MSG} "and ${WANTSPACE}." @${ECHO_MSG} post-patch-SNDIO-on: @@ -259,4 +233,4 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \ ${STAGEDIR}${DATADIR} -.include +.include