From owner-svn-ports-head@freebsd.org Wed Jan 16 05:38:29 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21B0E14A3BE1; Wed, 16 Jan 2019 05:38:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B49348D623; Wed, 16 Jan 2019 05:38:28 +0000 (UTC) (envelope-from linimon@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A7CCE25CC6; Wed, 16 Jan 2019 05:38:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0G5cSf8090453; Wed, 16 Jan 2019 05:38:28 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0G5cSM1090452; Wed, 16 Jan 2019 05:38:28 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201901160538.x0G5cSM1090452@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Wed, 16 Jan 2019 05:38:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r490453 - head/security/cryptopp X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: head/security/cryptopp X-SVN-Commit-Revision: 490453 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B49348D623 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 16 Jan 2019 05:38:29 -0000 Author: linimon Date: Wed Jan 16 05:38:28 2019 New Revision: 490453 URL: https://svnweb.freebsd.org/changeset/ports/490453 Log: Add support for building with AltiVec extensions. Note that because MACHINE_CPU is not defined on powerpc*, we rely only on ARCH. Because of this we choose to optimize using instructions available in POWER8 and newer, so this port built with SIMD option won't work on older POWER CPUs (we could however add additional options for that, to support AltiVec in older POWER, if desired). While here, also remove BROKEN on powerpc. PR: 234953 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Modified: head/security/cryptopp/Makefile Modified: head/security/cryptopp/Makefile ============================================================================== --- head/security/cryptopp/Makefile Wed Jan 16 05:34:20 2019 (r490452) +++ head/security/cryptopp/Makefile Wed Jan 16 05:38:28 2019 (r490453) @@ -14,8 +14,6 @@ COMMENT= Free C++ class library of Cryptographic Primi LICENSE= BSL LICENSE_FILE= ${WRKSRC}/License.txt -BROKEN_powerpc= does not compile; unrecognized C++ options - USES= cpe compiler:c++11-lang gmake zip USE_LDCONFIG= yes CPE_PRODUCT= crypto++ @@ -35,6 +33,8 @@ PLIST_SUB+= SOVERSION=${SOVERSION} \ OPTIONS_DEFINE= DEBUG DOCS FULL_DEBUG THREADS TOOLS OPTIONS_DEFINE_amd64= SIMD OPTIONS_DEFINE_i386= SIMD +OPTIONS_DEFINE_powerpc= SIMD +OPTIONS_DEFINE_powerpc64= SIMD OPTIONS_DEFAULT= THREADS TOOLS OPTIONS_SUB= yes @@ -57,18 +57,23 @@ THREADS_LDFLAGS= -lpthread .include .if ${PORT_OPTIONS:MSIMD} -. if !${MACHINE_CPU:Msse2} +. if ${ARCH} == i386 || ${ARCH} == amd64 +. if !${MACHINE_CPU:Msse2} CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM -DCRYPTOPP_DISABLE_SSE2 -. endif -. if !${MACHINE_CPU:Mssse3} +. endif +. if !${MACHINE_CPU:Mssse3} CXXFLAGS+= -DCRYPTOPP_DISABLE_SSSE3 -. endif -. if !${MACHINE_CPU:Msse41} +. endif +. if !${MACHINE_CPU:Msse41} CXXFLAGS+= -DCRYPTOPP_DISABLE_SSE4 +. endif +. elif ${ARCH} == powerpc || ${ARCH} == powerpc64 +CXXFLAGS+= -DCRYPTOPP_ALTIVEC_AVAILABLE -maltivec -mcrypto -mvsx . endif .else CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM -DCRYPTOPP_DISABLE_SSE2 \ - -DCRYPTOPP_DISABLE_SSSE3 -DCRYPTOPP_DISABLE_SSE4 + -DCRYPTOPP_DISABLE_SSSE3 -DCRYPTOPP_DISABLE_SSE4 \ + -DCRYPTOPP_DISABLE_ALTIVEC .endif pre-configure-FULL_DEBUG-on: