From owner-svn-ports-head@freebsd.org Thu Nov 2 21:48:22 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 AB5B8E63CF2; Thu, 2 Nov 2017 21:48:22 +0000 (UTC) (envelope-from jbeich@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 793416B19C; Thu, 2 Nov 2017 21:48:22 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA2LmLJp071097; Thu, 2 Nov 2017 21:48:21 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA2LmLLu071096; Thu, 2 Nov 2017 21:48:21 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201711022148.vA2LmLLu071096@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 2 Nov 2017 21:48:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453382 - head/textproc/ripgrep X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/textproc/ripgrep X-SVN-Commit-Revision: 453382 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: Thu, 02 Nov 2017 21:48:22 -0000 Author: jbeich Date: Thu Nov 2 21:48:21 2017 New Revision: 453382 URL: https://svnweb.freebsd.org/changeset/ports/453382 Log: textproc/ripgrep: expose SIMD options PR: 223314 Approved by: Petteri Valkonen (maintainer) Modified: head/textproc/ripgrep/Makefile (contents, props changed) Modified: head/textproc/ripgrep/Makefile ============================================================================== --- head/textproc/ripgrep/Makefile Thu Nov 2 21:41:47 2017 (r453381) +++ head/textproc/ripgrep/Makefile Thu Nov 2 21:48:21 2017 (r453382) @@ -5,6 +5,7 @@ PORTNAME= ripgrep PORTVERSION= 0.7.1 +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= petteri.valkonen@iki.fi @@ -72,6 +73,22 @@ CARGO_CRATES= aho-corasick-0.6.3 \ RIPGREP_OUTDIR= ${WRKDIR}/cargo-out CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR} + +OPTIONS_DEFINE= SIMD +OPTIONS_DEFAULT=SIMD + +OPTIONS_DEFINE_amd64= AVX +OPTIONS_DEFINE_i386= AVX + +AVX_DESC= ${SSE_DESC:S/SSE/AVX/} +AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" +AVX_IMPLIES= SIMD + +# simd crate uses cfg_target_feature which isn't stable yet, so unlock +# unstable features similar to how lang/rust bootstraps. www/firefox +# uses the same hack when building with --enable-rust-simd. +SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=1 +SIMD_VARS= CARGO_FEATURES+=simd-accel post-patch: @${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs