From owner-svn-ports-head@freebsd.org Mon Sep 14 22:45:19 2020 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 DEAB93E4072; Mon, 14 Sep 2020 22:45:19 +0000 (UTC) (envelope-from jbeich@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Br1f75YPFz4Qrx; Mon, 14 Sep 2020 22:45:19 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A2C7E1E5B3; Mon, 14 Sep 2020 22:45:19 +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 08EMjJmO096141; Mon, 14 Sep 2020 22:45:19 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08EMjI9A096137; Mon, 14 Sep 2020 22:45:18 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202009142245.08EMjI9A096137@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Mon, 14 Sep 2020 22:45:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548686 - in head/graphics/sekrit-twc-zimg: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/graphics/sekrit-twc-zimg: . files X-SVN-Commit-Revision: 548686 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.33 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: Mon, 14 Sep 2020 22:45:19 -0000 Author: jbeich Date: Mon Sep 14 22:45:18 2020 New Revision: 548686 URL: https://svnweb.freebsd.org/changeset/ports/548686 Log: graphics/sekrit-twc-zimg: update to 3.0.1 Changes: https://github.com/sekrit-twc/zimg/compare/release-2.9.3...release-3.0.1 ABI: https://abi-laboratory.pro/tracker/timeline/z/ Reported by: GitHub (watch releases) Added: head/graphics/sekrit-twc-zimg/files/patch-neon (contents, props changed) Modified: head/graphics/sekrit-twc-zimg/Makefile (contents, props changed) head/graphics/sekrit-twc-zimg/distinfo (contents, props changed) head/graphics/sekrit-twc-zimg/files/patch-no-extra-deps (contents, props changed) Modified: head/graphics/sekrit-twc-zimg/Makefile ============================================================================== --- head/graphics/sekrit-twc-zimg/Makefile Mon Sep 14 22:27:37 2020 (r548685) +++ head/graphics/sekrit-twc-zimg/Makefile Mon Sep 14 22:45:18 2020 (r548686) @@ -2,7 +2,7 @@ PORTNAME= zimg DISTVERSIONPREFIX= release- -DISTVERSION= 2.9.3 +DISTVERSION= 3.0.1 CATEGORIES= graphics PKGNAMEPREFIX= ${GH_ACCOUNT}- Modified: head/graphics/sekrit-twc-zimg/distinfo ============================================================================== --- head/graphics/sekrit-twc-zimg/distinfo Mon Sep 14 22:27:37 2020 (r548685) +++ head/graphics/sekrit-twc-zimg/distinfo Mon Sep 14 22:45:18 2020 (r548686) @@ -1,3 +1,3 @@ -TIMESTAMP = 1583124602 -SHA256 (sekrit-twc-zimg-release-2.9.3_GH0.tar.gz) = a15c0483fbe945ffe695a1a989bc43b3381c8bf33e2d1760464ec21d32cdf30b -SIZE (sekrit-twc-zimg-release-2.9.3_GH0.tar.gz) = 266236 +TIMESTAMP = 1598190477 +SHA256 (sekrit-twc-zimg-release-3.0.1_GH0.tar.gz) = c50a0922f4adac4efad77427d13520ed89b8366eef0ef2fa379572951afcc73f +SIZE (sekrit-twc-zimg-release-3.0.1_GH0.tar.gz) = 326304 Added: head/graphics/sekrit-twc-zimg/files/patch-neon ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/sekrit-twc-zimg/files/patch-neon Mon Sep 14 22:45:18 2020 (r548686) @@ -0,0 +1,33 @@ +Detect NEON and VFPv4 on armv7 + +--- src/zimg/common/arm/cpuinfo_arm.cpp.orig 2020-08-23 13:47:57 UTC ++++ src/zimg/common/arm/cpuinfo_arm.cpp +@@ -8,6 +8,19 @@ + #elif defined(__linux__) + #include + #include ++#elif defined(__FreeBSD__) ++ #include ++ static unsigned long getauxval(unsigned long type) ++ { ++ /* Only AT_HWCAP* return unsigned long */ ++ if (type != AT_HWCAP && type != AT_HWCAP2) { ++ return 0; ++ } ++ ++ unsigned long ret = 0; ++ elf_aux_info(type, &ret, sizeof(ret)); ++ return ret; ++ } + #endif + + #include "cpuinfo_arm.h" +@@ -28,7 +41,7 @@ ARMCapabilities do_query_arm_capabilities() noexcept + #elif defined(_WIN32) + caps.neon = IsProcessorFeaturePresent(PF_ARM_NEON_INSTRUCTIONS_AVAILABLE); + caps.vfpv4 = IsProcessorFeaturePresent(PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE); +-#elif defined(__linux__) ++#elif defined(__linux__) || defined(__FreeBSD__) + long hwcaps = getauxval(AT_HWCAP); + caps.neon = !!(hwcaps & HWCAP_NEON); + caps.vfpv4 = !!(hwcaps & HWCAP_VFPv4); Modified: head/graphics/sekrit-twc-zimg/files/patch-no-extra-deps ============================================================================== --- head/graphics/sekrit-twc-zimg/files/patch-no-extra-deps Mon Sep 14 22:27:37 2020 (r548685) +++ head/graphics/sekrit-twc-zimg/files/patch-no-extra-deps Mon Sep 14 22:45:18 2020 (r548686) @@ -1,6 +1,6 @@ ---- Makefile.am.orig 2017-12-21 02:35:58 UTC +--- Makefile.am.orig 2020-08-23 13:47:57 UTC +++ Makefile.am -@@ -314,8 +313,7 @@ test_unit_test_CPPFLAGS = \ +@@ -357,8 +357,7 @@ test_unit_test_CPPFLAGS = \ $(AM_CPPFLAGS) \ -I$(srcdir)/src/zimg \ -I$(srcdir)/test \ @@ -10,7 +10,7 @@ test_unit_test_SOURCES = \ test/main.cpp \ -@@ -324,9 +322,6 @@ test_unit_test_SOURCES = \ +@@ -367,9 +366,6 @@ test_unit_test_SOURCES = \ test/colorspace/gamma_test.cpp \ test/depth/depth_convert_test.cpp \ test/depth/dither_test.cpp \ @@ -19,24 +19,27 @@ - test/extra/sha1/sha1.h \ test/graph/audit_buffer.cpp \ test/graph/audit_buffer.h \ - test/graph/copy_filter_test.cpp \ -@@ -368,7 +363,7 @@ test_unit_test_SOURCES += \ - endif # X86SIMD_AVX512 + test/graph/filter_validator.cpp \ +@@ -426,7 +422,7 @@ test/extra/googletest/build/lib/libgtest.a: .FAKE + .FAKE: test_unit_test_LDADD = \ -- test/extra/googletest/googletest/lib/libgtest.la \ +- test/extra/googletest/build/lib/libgtest.a \ + -lgtest -lmd -lpthread \ test/libmusl_m.la \ libzimg_internal.la endif # UNIT_TEST ---- configure.ac.orig 2016-05-08 20:08:38 UTC +--- configure.ac.orig 2020-08-23 13:47:57 UTC +++ configure.ac -@@ -30,8 +30,6 @@ AS_IF([test "x$enable_unit_test" = "xyes - [i?86], [CFLAGS="$CFLAGS -mfpmath=sse -msse2" CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse2"], - [x86_64], [], +@@ -45,11 +45,6 @@ AS_IF([test "x$enable_unit_test" = "xyes"], + [i?86], [CFLAGS="$CFLAGS -mfpmath=sse -msse2" CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse2"], + [x86_64], [], [AC_MSG_WARN([Could not determine how to enable IEEE-754 compliance on host. Tests may fail.])]) -- AC_CONFIG_SUBDIRS(test/extra/googletest/googletest) -- AC_SUBST([CONFIG_SUBDIRS], [test/extra/googletest/googletest]) +- +- AC_CHECK_PROG([CMAKE], [cmake], [cmake]) +- AS_MKDIR_P([test/extra/googletest/build]) +- AS_IF([(cd "test/extra/googletest/build" && $CMAKE -Dgtest_disable_pthreads=ON "$ac_abs_confdir/test/extra/googletest")], +- [], [AC_MSG_ERROR([CMake error])]) ])