summaryrefslogtreecommitdiff
blob: 316e50512f587b0f1637ffef8ac92ff8e74b3805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Library of various AL-FEC codecs"
HOMEPAGE="https://github.com/roc-streaming/openfec http://openfec.org/"
SRC_URI="https://github.com/roc-streaming/openfec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

# See https://github.com/roc-streaming/openfec/blob/d87b258e3de3cdddf700b40e94c51ec9bd44a47f/CHANGELOG#L47.
LICENSE="CeCILL-2 CeCILL-C"
SLOT="0"
KEYWORDS="~amd64"

PATCHES=(
	"${FILESDIR}"/${PN}-1.4.2.11-opt.patch
)

src_configure() {
	local mycmakeargs=(
		# Causes crashes in media-libs/roc-toolkit (bug #941750)
		# https://github.com/roc-streaming/openfec/issues/22
		-DASSEMBLY_SSE_OPT=OFF
	)

	cmake_src_configure
}

src_test() {
	cmake_src_test tests
}