From owner-svn-ports-head@freebsd.org Sat Jan 30 11:54:44 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4F8824E817B; Sat, 30 Jan 2021 11:54:44 +0000 (UTC) (envelope-from pkubaj@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DSXgm1nySz3nyM; Sat, 30 Jan 2021 11:54:44 +0000 (UTC) (envelope-from pkubaj@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 309A915235; Sat, 30 Jan 2021 11:54:44 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 10UBsil5068071; Sat, 30 Jan 2021 11:54:44 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 10UBshw4068070; Sat, 30 Jan 2021 11:54:43 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202101301154.10UBshw4068070@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sat, 30 Jan 2021 11:54:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r563287 - in head/graphics/png: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/graphics/png: . files X-SVN-Commit-Revision: 563287 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.34 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: Sat, 30 Jan 2021 11:54:44 -0000 Author: pkubaj Date: Sat Jan 30 11:54:43 2021 New Revision: 563287 URL: https://svnweb.freebsd.org/changeset/ports/563287 Log: graphics/png: add SIMD option It's enabled by default on aarch64, amd64 and powerpc64le, which should have optimizations that are enabled in their baselines (NEON, SSE2 and VSX respectively). PR: 251173 Approved by: antoine@ (maintainer) Added: head/graphics/png/files/ head/graphics/png/files/patch-configure (contents, props changed) Modified: head/graphics/png/Makefile Modified: head/graphics/png/Makefile ============================================================================== --- head/graphics/png/Makefile Sat Jan 30 10:43:11 2021 (r563286) +++ head/graphics/png/Makefile Sat Jan 30 11:54:43 2021 (r563287) @@ -3,6 +3,7 @@ PORTNAME= png PORTVERSION= 1.6.37 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}16/${PORTVERSION} \ ftp://ftp.simplesystems.org/pub/lib${PORTNAME}/${PORTNAME}/src/lib${PORTNAME}16/ @@ -26,11 +27,21 @@ INSTALL_TARGET= install-strip TEST_TARGET= check-TESTS USE_LDCONFIG= yes -OPTIONS_DEFINE= APNG +OPTIONS_DEFINE= APNG SIMD OPTIONS_DEFAULT=APNG +OPTIONS_DEFAULT_aarch64= SIMD +OPTIONS_DEFAULT_amd64= SIMD +OPTIONS_DEFAULT_powerpc64le= SIMD APNG_DESC=Enable Animated PNG support +SIMD_CONFIGURE_OFF= --enable-hardware-optimizations=no +SIMD_CONFIGURE_ON= --enable-hardware-optimizations=yes .include + +.if ${ARCH} == powerpc64 && ${PORT_OPTIONS:MSIMD} +USES+= compiler:c11 +CFLAGS+= -maltivec -mvsx +.endif .if ${PORT_OPTIONS:MAPNG} || make(makesum) PATCHFILES= ${DISTNAME}-apng.patch.gz Added: head/graphics/png/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/png/files/patch-configure Sat Jan 30 11:54:43 2021 (r563287) @@ -0,0 +1,11 @@ +--- configure.orig 2021-01-21 14:33:24 UTC ++++ configure +@@ -13533,7 +13533,7 @@ $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h + $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h + + ;; +- i?86|x86_64) ++ i?86|x86_64|amd64) + enable_intel_sse=yes + + $as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h