commit: eaad3f5d85d69347c2a6f0dafb33fffeb1ffba99 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Tue Sep 30 14:31:09 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Tue Sep 30 14:31:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaad3f5d
media-libs/aften: update EAPI 7 -> 8, fix build w/ cmake-4, arm64 Bug: https://bugs.gentoo.org/957254 Closes: https://bugs.gentoo.org/831508 Closes: https://bugs.gentoo.org/957484 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-libs/aften/aften-0.0.8-r3.ebuild | 39 +++++++++++++++++++++++++ media-libs/aften/files/aften-0.0.8-arm64.patch | 12 ++++++++ media-libs/aften/files/aften-0.0.8-cmake4.patch | 18 ++++++++++++ 3 files changed, 69 insertions(+) diff --git a/media-libs/aften/aften-0.0.8-r3.ebuild b/media-libs/aften/aften-0.0.8-r3.ebuild new file mode 100644 index 000000000000..4a619b37fb1b --- /dev/null +++ b/media-libs/aften/aften-0.0.8-r3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A/52 (AC-3) audio encoder" +HOMEPAGE="https://aften.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2.1 BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="cxx" + +DOCS=( README Changelog ) + +PATCHES=( + "${FILESDIR}/${P}-multilib.patch" + "${FILESDIR}/${P}-ppc.patch" + "${FILESDIR}/${P}-no-static-aften.patch" + "${FILESDIR}/${P}-arm64.patch" # thx to macports + "${FILESDIR}/${P}-cmake4.patch" # downstream patch +) + +src_configure() { + local mycmakeargs=( + -DSHARED=1 + -DBINDINGS_CXX=$(usex cxx) # "only lightly tested" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # File collision with media-sound/wavbreaker, upstream informed + mv "${ED}"/usr/bin/wavinfo{,-aften} || die +} diff --git a/media-libs/aften/files/aften-0.0.8-arm64.patch b/media-libs/aften/files/aften-0.0.8-arm64.patch new file mode 100644 index 000000000000..e4347033f504 --- /dev/null +++ b/media-libs/aften/files/aften-0.0.8-arm64.patch @@ -0,0 +1,12 @@ +Source: https://github.com/macports/macports-ports/blob/master/audio/aften/files/patch-fix-apple-silicon.diff + +--- a/libaften/cpu_caps.h ++++ b/libaften/cpu_caps.h +@@ -26,6 +26,7 @@ + #include "ppc_cpu_caps.h" + #else + static inline void cpu_caps_detect(void){} ++static inline void apply_simd_restrictions(AftenSimdInstructions *simd_instructions){} + #endif + + #endif /* CPU_CAPS_H */ diff --git a/media-libs/aften/files/aften-0.0.8-cmake4.patch b/media-libs/aften/files/aften-0.0.8-cmake4.patch new file mode 100644 index 000000000000..761b7bf7823e --- /dev/null +++ b/media-libs/aften/files/aften-0.0.8-cmake4.patch @@ -0,0 +1,18 @@ +--- a/CMakeLists.txt ++++ a/CMakeLists.txt +@@ -1,5 +1,5 @@ + # CMake project file by Prakash Punnoor +-CMAKE_MINIMUM_REQUIRED(VERSION 2.4) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.10) + + SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules") + Project(Aften C) +@@ -76,7 +76,7 @@ + + + IF(CMAKE_UNAME) +- EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_MACHINE) ++ execute_process(COMMAND uname -m OUTPUT_VARIABLE CMAKE_SYSTEM_MACHINE) + ELSE(CMAKE_UNAME) + MESSAGE("Could not detect machine type") + IF(CMAKE_SYSTEM MATCHES "Windows")
