Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2019 06:21:47 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
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
Message-ID:  <201902240621.x1O6LlPO075392@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <pthread_np.h>
 +#define cpu_set_t cpuset_t
 +#else
  #include <sched.h>
 +#endif
  #include <pthread.h>
++#if defined(__DragonFly__) || defined(__FreeBSD__)
++#include <pthread_np.h>
++#endif
  extern    cpu_set_t                   groupAffinity;
  #define EB_CREATETHREAD(type, pointer, nElements, pointerClass, threadFunction, threadContext) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902240621.x1O6LlPO075392>