From owner-svn-ports-head@freebsd.org Sun Aug 11 05:05:46 2019 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 CB69DAF9B5; Sun, 11 Aug 2019 05:05:46 +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) 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 465n4B4sm0z4Ywx; Sun, 11 Aug 2019 05:05:46 +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 845B6932D; Sun, 11 Aug 2019 05:05:46 +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 x7B55km5005220; Sun, 11 Aug 2019 05:05:46 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7B55jnQ005217; Sun, 11 Aug 2019 05:05:45 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201908110505.x7B55jnQ005217@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 11 Aug 2019 05:05:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r508582 - in head/net/waypipe: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/net/waypipe: . files X-SVN-Commit-Revision: 508582 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.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: Sun, 11 Aug 2019 05:05:46 -0000 Author: jbeich Date: Sun Aug 11 05:05:45 2019 New Revision: 508582 URL: https://svnweb.freebsd.org/changeset/ports/508582 Log: net/waypipe: update to 0.5.0 Changes: https://gitlab.freedesktop.org/mstoeckl/waypipe/compare/v0.4.0...v0.5.0 MFH: 2019Q3 (better OpenGL support on Intel) Added: head/net/waypipe/files/ head/net/waypipe/files/patch-neon-freebsd11 (contents, props changed) Modified: head/net/waypipe/Makefile (contents, props changed) head/net/waypipe/distinfo (contents, props changed) Modified: head/net/waypipe/Makefile ============================================================================== --- head/net/waypipe/Makefile Sun Aug 11 00:49:33 2019 (r508581) +++ head/net/waypipe/Makefile Sun Aug 11 05:05:45 2019 (r508582) @@ -2,8 +2,7 @@ PORTNAME= waypipe DISTVERSIONPREFIX= v -DISTVERSION= 0.4.0 -PORTREVISION= 1 +DISTVERSION= 0.5.0 CATEGORIES= net MAINTAINER= jbeich@FreeBSD.org @@ -19,8 +18,19 @@ USES= compiler:c11 localbase:ldflags meson pkgconfig USE_GITLAB= yes GL_SITE= https://gitlab.freedesktop.org GL_ACCOUNT= mstoeckl -GL_COMMIT= 039bd9acb20fe423f6c3b068bb08c6e6935f0d2b +GL_COMMIT= e66f42444d81633f5b413cfe158809efd9c437f0 PLIST_FILES= bin/${PORTNAME} +# XXX armv6 needs https://github.com/mesonbuild/meson/commit/147d3f752c41 +CONFIGURE_ENV= UNAME_m=${ARCH} + +# XXX Drop after FreeBSD 12.0 EOL +.if exists(/usr/lib/clang/6.0.0) || exists(/usr/lib/clang/6.0.1) +.if ${CC} == cc && (${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386) +USES:= ${USES:Ncompiler*} # silence warning +BUILD_DEPENDS+= clang${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} +CC= clang${LLVM_DEFAULT} +.endif +.endif OPTIONS_DEFINE= FFMPEG LZ4 MANPAGES OPENGL VAAPI ZSTD OPTIONS_DEFAULT=FFMPEG LZ4 MANPAGES OPENGL VAAPI ZSTD Modified: head/net/waypipe/distinfo ============================================================================== --- head/net/waypipe/distinfo Sun Aug 11 00:49:33 2019 (r508581) +++ head/net/waypipe/distinfo Sun Aug 11 05:05:45 2019 (r508582) @@ -1,3 +1,3 @@ -TIMESTAMP = 1564420188 -SHA256 (mstoeckl-waypipe-039bd9acb20fe423f6c3b068bb08c6e6935f0d2b_GL0.tar.gz) = 8ab2f3898ad50910576f3f63cc9ea4182a106aab83e191139c0d3f95325a6eb8 -SIZE (mstoeckl-waypipe-039bd9acb20fe423f6c3b068bb08c6e6935f0d2b_GL0.tar.gz) = 124271 +TIMESTAMP = 1565392944 +SHA256 (mstoeckl-waypipe-e66f42444d81633f5b413cfe158809efd9c437f0_GL0.tar.gz) = 4a78dd943b617e2d39a34f4908f7acd0d0d59e838a83f739effcbf4d452bcec0 +SIZE (mstoeckl-waypipe-e66f42444d81633f5b413cfe158809efd9c437f0_GL0.tar.gz) = 135515 Added: head/net/waypipe/files/patch-neon-freebsd11 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/waypipe/files/patch-neon-freebsd11 Sun Aug 11 05:05:45 2019 (r508582) @@ -0,0 +1,55 @@ +- Implement NEON runtime detection on FreeBSD 11.* armv6 + +--- src/kernel.c.orig 2019-08-09 23:22:24 UTC ++++ src/kernel.c +@@ -36,8 +36,36 @@ + #include + #include + #elif defined(__FreeBSD__) && defined(__arm__) ++#if __FreeBSD__ >= 12 + #include ++#else ++#include ++#include ++#include ++#include ++#include ++ ++static unsigned long getauxval(unsigned long type) { ++ Elf_Auxinfo auxv[AT_COUNT]; ++ size_t len = sizeof(auxv); ++ int mib[] = { ++ CTL_KERN, ++ KERN_PROC, ++ KERN_PROC_AUXV, ++ getpid(), ++ }; ++ ++ if (sysctl(mib, nitems(mib), auxv, &len, NULL, 0) != -1) { ++ for (size_t i = 0; i < nitems(auxv); i++) ++ if ((unsigned long)auxv[i].a_type == type) ++ return auxv[i].a_un.a_val; ++ ++ errno = ENOENT; ++ } ++ return 0; ++} + #endif ++#endif + + size_t run_interval_diff_C(const int diff_window_size, + const void *__restrict__ imod, void *__restrict__ ibase, +@@ -127,9 +155,13 @@ static bool neon_available(void) + #if defined(__linux__) && defined(__arm__) + return (getauxval(AT_HWCAP) & HWCAP_NEON) != 0; + #elif defined(__FreeBSD__) && defined(__arm__) ++#if __FreeBSD__ < 12 ++ return (getauxval(AT_HWCAP) & HWCAP_NEON) != 0; ++#else + unsigned long hwcap = 0; + elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); + return (hwcap & HWCAP_NEON) != 0; ++#endif + #endif + return true; + }