summaryrefslogtreecommitdiff
path: root/media-libs/openfec
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /media-libs/openfec
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'media-libs/openfec')
-rw-r--r--media-libs/openfec/Manifest1
-rw-r--r--media-libs/openfec/files/openfec-1.4.2.11-opt.patch16
-rw-r--r--media-libs/openfec/metadata.xml11
-rw-r--r--media-libs/openfec/openfec-1.4.2.12.ebuild33
4 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/openfec/Manifest b/media-libs/openfec/Manifest
new file mode 100644
index 000000000000..b62fbebb87ce
--- /dev/null
+++ b/media-libs/openfec/Manifest
@@ -0,0 +1 @@
+DIST openfec-1.4.2.12.tar.gz 1114214 BLAKE2B 3a53ee5330398d22b4f98038a4f9d0285b375f389e0fd80ed7e01f3fcb0e15fc78008dde98f33786e04a2707290a3ae39915f1b06ae686a0c5fe01fa76faa8fd SHA512 8228dffe7be5ef687d1d38775eae077fd0f7011099580b9cdfc0963704ee7b1332f73e911f244d20876578a394773d2eaa51d54f5851905d7c99ba0c117da295
diff --git a/media-libs/openfec/files/openfec-1.4.2.11-opt.patch b/media-libs/openfec/files/openfec-1.4.2.11-opt.patch
new file mode 100644
index 000000000000..97339443437f
--- /dev/null
+++ b/media-libs/openfec/files/openfec-1.4.2.11-opt.patch
@@ -0,0 +1,16 @@
+This breaks with e.g. -Wa,-O2.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,12 +36,6 @@ message(STATUS "Debug mode ON" )
+ else(DEBUG STREQUAL "ON")
+ # Release mode
+ set(CMAKE_BUILD_TYPE Release)
+-set(OPTIMIZE "3" CACHE STRING "Set optimization level (0-3 or DEFAULT)")
+-if (NOT OPTIMIZE STREQUAL "DEFAULT")
+- string(REGEX REPLACE "(-O[A-Za-z0-9]+)" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
+- string(REGEX REPLACE "(-O[A-Za-z0-9]+)" "" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
+- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O${OPTIMIZE}")
+-endif()
+ message(STATUS "Debug mode OFF")
+ message(STATUS "Optimization level ${OPTIMIZE}")
+
diff --git a/media-libs/openfec/metadata.xml b/media-libs/openfec/metadata.xml
new file mode 100644
index 000000000000..ea38f9b2b356
--- /dev/null
+++ b/media-libs/openfec/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">roc-streaming/openfec</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-libs/openfec/openfec-1.4.2.12.ebuild b/media-libs/openfec/openfec-1.4.2.12.ebuild
new file mode 100644
index 000000000000..ce3d57c55a15
--- /dev/null
+++ b/media-libs/openfec/openfec-1.4.2.12.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2023-2025 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
+}