Date: Sat, 30 Jan 2021 11:54:43 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r563287 - in head/graphics/png: . files Message-ID: <202101301154.10UBshw4068070@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk> + +.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101301154.10UBshw4068070>