From owner-svn-ports-all@freebsd.org Sun Feb 24 06:21:48 2019 Return-Path: Delivered-To: svn-ports-all@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 427341513FB3; Sun, 24 Feb 2019 06:21:48 +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 D1F7988581; Sun, 24 Feb 2019 06:21:47 +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 A9968115B; Sun, 24 Feb 2019 06:21:47 +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 x1O6LluV075395; Sun, 24 Feb 2019 06:21:47 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1O6LlPO075392; Sun, 24 Feb 2019 06:21:47 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201902240621.x1O6LlPO075392@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 24 Feb 2019 06:21:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493741 - in head/multimedia/svt-hevc: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/multimedia/svt-hevc: . files X-SVN-Commit-Revision: 493741 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D1F7988581 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.92 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.92)[-0.924,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 06:21:48 -0000 Author: jbeich Date: Sun Feb 24 06:21:46 2019 New Revision: 493741 URL: https://svnweb.freebsd.org/changeset/ports/493741 Log: multimedia/svt-hevc: use all cores by default Thread affinity isn't supported yet. Mounting /proc is no help as it doesn't expose CPU topology e.g.., physical id is always 0. Modified: head/multimedia/svt-hevc/Makefile (contents, props changed) head/multimedia/svt-hevc/distinfo (contents, props changed) head/multimedia/svt-hevc/files/patch-Source_Lib_Codec_EbThreads.h (contents, props changed) Modified: head/multimedia/svt-hevc/Makefile ============================================================================== --- head/multimedia/svt-hevc/Makefile Sun Feb 24 03:42:06 2019 (r493740) +++ head/multimedia/svt-hevc/Makefile Sun Feb 24 06:21:46 2019 (r493741) @@ -3,7 +3,11 @@ PORTNAME= svt-hevc DISTVERSIONPREFIX= v PORTVERSION= 1.3.0 +PORTREVISION= 1 CATEGORIES= multimedia + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= ad0942db4ce4.patch:-p1 MAINTAINER= jbeich@FreeBSD.org COMMENT= Scalable HEVC encoder Modified: head/multimedia/svt-hevc/distinfo ============================================================================== --- head/multimedia/svt-hevc/distinfo Sun Feb 24 03:42:06 2019 (r493740) +++ head/multimedia/svt-hevc/distinfo Sun Feb 24 06:21:46 2019 (r493741) @@ -1,3 +1,5 @@ TIMESTAMP = 1550104614 SHA256 (Intel-SVT-HEVC-v1.3.0_GH0.tar.gz) = ef21f3a13e33b4f61af4a0c79337ce9e4f73f6fe13d1c2afe2c3b0712f4158d9 SIZE (Intel-SVT-HEVC-v1.3.0_GH0.tar.gz) = 1137878 +SHA256 (ad0942db4ce4.patch) = 2165f1b1d658dbbac91f8a2e86976f6692f93fcc6649feacbc6013d811874f48 +SIZE (ad0942db4ce4.patch) = 864 Modified: head/multimedia/svt-hevc/files/patch-Source_Lib_Codec_EbThreads.h ============================================================================== --- head/multimedia/svt-hevc/files/patch-Source_Lib_Codec_EbThreads.h Sun Feb 24 03:42:06 2019 (r493740) +++ head/multimedia/svt-hevc/files/patch-Source_Lib_Codec_EbThreads.h Sun Feb 24 06:21:46 2019 (r493741) @@ -1,5 +1,3 @@ -FreeBSD (unlike DragonFly) didn't try to be compatible with GNU libc at first. - In file included from Source/Lib/Codec/EbEncDecProcess.c:9: In file included from Source/Lib/Codec/EbTransforms.h:14: In file included from Source/Lib/Codec/EbSequenceControlSet.h:10: @@ -9,16 +7,18 @@ extern cpu_set_t groupAffinity; --- Source/Lib/Codec/EbThreads.h.orig 2019-02-14 00:36:54 UTC +++ Source/Lib/Codec/EbThreads.h -@@ -95,7 +95,12 @@ extern EB_BOOL alternateGroups; +@@ -95,7 +95,14 @@ extern EB_BOOL alternateGroups; #else #define __USE_GNU #define _GNU_SOURCE +#ifdef __FreeBSD__ -+#include +#define cpu_set_t cpuset_t +#else #include +#endif #include ++#if defined(__DragonFly__) || defined(__FreeBSD__) ++#include ++#endif extern cpu_set_t groupAffinity; #define EB_CREATETHREAD(type, pointer, nElements, pointerClass, threadFunction, threadContext) \