diff options
author | Sam James <sam@gentoo.org> | 2024-10-04 06:51:35 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-10-04 06:51:35 +0100 |
commit | 227692ec4ba10518af189271ef44b26ea083bf95 (patch) | |
tree | 4e98f46c2698b8cbe507f77adc0fd36ef91fd5e2 /media-libs | |
parent | package.mask: Unmask dev-python/rapidfuzz (diff) | |
download | gentoo-227692ec4ba10518af189271ef44b26ea083bf95.tar.gz gentoo-227692ec4ba10518af189271ef44b26ea083bf95.tar.bz2 gentoo-227692ec4ba10518af189271ef44b26ea083bf95.zip |
media-libs/openfec: add 1.4.2.11
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/openfec/Manifest | 1 | ||||
-rw-r--r-- | media-libs/openfec/files/openfec-1.4.2.11-opt.patch | 16 | ||||
-rw-r--r-- | media-libs/openfec/openfec-1.4.2.11.ebuild | 32 |
3 files changed, 49 insertions, 0 deletions
diff --git a/media-libs/openfec/Manifest b/media-libs/openfec/Manifest index 904d2863daaa..10c6010d44f2 100644 --- a/media-libs/openfec/Manifest +++ b/media-libs/openfec/Manifest @@ -1 +1,2 @@ +DIST openfec-1.4.2.11.tar.gz 1112095 BLAKE2B d54fcb6f3a6ea76e44519384fb288e1a896315642175694ed887ee7637c9b479d94a4e461e446b92baf669695f496eb30b5b7836b86b297c3cc95bd63edbd48d SHA512 e77da3997296e6518574102e54af2f60d27a691bb32ea9eb61a5de714974e35287d2c18e1564fa7d299fa2191af1ad718ffd8f9fd5ad7ea468aca0dd6b88e9e5 DIST openfec-1.4.2.9.tar.gz 1111548 BLAKE2B c3fd234c6f758144e514a262028024cb61a2379d065ab645067200618181a5ba4ae793fda82f60f0a870906d1978ef08ba8e73f9711bccf27b5161c5732702d1 SHA512 6c23f4d4263c514170f6abf806d7faf4c3fbf7fe34f55128383dcd84808a6966edd13587f7549ead74578ca219bdce9e42a32fc04071df0d54dae5b1336ed2b3 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/openfec-1.4.2.11.ebuild b/media-libs/openfec/openfec-1.4.2.11.ebuild new file mode 100644 index 000000000000..cd6ad2b2f564 --- /dev/null +++ b/media-libs/openfec/openfec-1.4.2.11.ebuild @@ -0,0 +1,32 @@ +# 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" +IUSE="cpu_flags_x86_sse" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.2.11-opt.patch +) + +src_configure() { + local mycmakeargs=( + -DASSEMBLY_SSE_OPT=$(usex cpu_flags_x86_sse) + ) + + cmake_src_configure +} + +src_test() { + cmake_src_test tests +} |