commit:     44b3afc9239ba10d98a3717f313068dfa69fb01f
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 21 18:01:20 2023 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Tue Mar 21 18:01:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44b3afc9

media-radio/fldigi: add 4.1.26

Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 media-radio/fldigi/Manifest             |  1 +
 media-radio/fldigi/fldigi-4.1.26.ebuild | 62 +++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/media-radio/fldigi/Manifest b/media-radio/fldigi/Manifest
index 8a35d00f9d22..c5e26ee68284 100644
--- a/media-radio/fldigi/Manifest
+++ b/media-radio/fldigi/Manifest
@@ -1,3 +1,4 @@
 DIST fldigi-4.1.23.tar.gz 4933875 BLAKE2B 
73c9598d73e3f8f4a4299edebf687254830196d81470b4563bc530b0434e7b8beb6d9d0cbbd97029fba2da3491ec354f3fc723045e4691b60db7d03666624a07
 SHA512 
c01d579fb23325f097969cbb93bd488c8e0c61ef552097166c902a56ce119d7c20694df5cd76ae9b2cb485d68570720745d961b1f1dd9918c6f466f0441005fb
 DIST fldigi-4.1.24.tar.gz 4958881 BLAKE2B 
9f138cee6ad16e5fc7e66aa8d985a838d5394417fa4f914c35ea737064433f8be9da4d798de65b2e72c321cf7ebf52242bec4e8c68bc7ad984c899c839146d71
 SHA512 
e5509e8904b2ee779e655483529b76aecc65ec927b358346b63b2ce1062194472713ea99ff6305acf7da68cb38c59c7a3bee31d867faea72bc51328c3050a4b7
 DIST fldigi-4.1.25.tar.gz 4959378 BLAKE2B 
6d4ba6fa1c33fb7be29517a46fdf5c25fdf2d083700d41776e8365de99f6bd893be9af91c49a16e4b1192730781274551c45d7ae40138cd32cde4032d27f5329
 SHA512 
68b1327433b6f42e1daee5a1af912303ba876c9b2b65851e955807a5ae611dfdb572404d0336454c46ccf536c025ebf5efe58c33a3604a0e521f7c902b680c5b
+DIST fldigi-4.1.26.tar.gz 4964877 BLAKE2B 
73048df0543b10602c7b49d8e5b426d20d4c563f3f2d3d5bd9cc5f91e071c429931e4f6307df8b256b3ab2be45c8023765cd0719a70310733c478b38d44fda0d
 SHA512 
dee7cd8ce2a89ea6837a4515ef93c3e27d9674bbbb87f121b42c682bcd47e996de860796e45cd86ebfad5812569bbdc7c995a32953881987c84a6f8402b85faf

diff --git a/media-radio/fldigi/fldigi-4.1.26.ebuild 
b/media-radio/fldigi/fldigi-4.1.26.ebuild
new file mode 100644
index 000000000000..aacc12ff8a01
--- /dev/null
+++ b/media-radio/fldigi/fldigi-4.1.26.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic
+
+DESCRIPTION="Sound card based multimode software modem for Amateur Radio use"
+HOMEPAGE="http://www.w1hkj.com";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="hamlib nls pulseaudio"
+IUSE_CPU_FLAGS=" sse sse2 sse3"
+IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}"
+
+RDEPEND="x11-libs/fltk:1[threads,xft]
+       media-libs/libsamplerate
+       media-libs/libpng:0
+       x11-misc/xdg-utils
+       dev-perl/RPC-XML
+       dev-perl/Term-ReadLine-Perl
+       || (
+               media-libs/portaudio[oss]
+               media-libs/portaudio[alsa]
+       )
+       hamlib? ( media-libs/hamlib:= )
+       pulseaudio? ( media-sound/pulseaudio )
+       >=media-libs/libsndfile-1.0.10"
+DEPEND="${RDEPEND}
+       nls? ( sys-devel/gettext )
+       virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+PATCHES=( "${FILESDIR}/${PN}-drop-nullptr-definition.patch" )
+
+src_prepare() {
+       eapply ${PATCHES[@]}
+       eapply_user
+}
+
+src_configure() {
+       #fails to compile with -flto (bug #860405)
+       filter-lto
+
+       append-cxxflags $(test-flags-CXX -std=c++14)
+       local myconf=""
+
+       use cpu_flags_x86_sse && myconf="${myconf} --enable-optimizations=sse"
+       use cpu_flags_x86_sse2 && myconf="${myconf} --enable-optimizations=sse2"
+       use cpu_flags_x86_sse3 && myconf="${myconf} --enable-optimizations=sse3"
+
+       econf ${myconf} \
+               --with-sndfile \
+               $(use_with hamlib) \
+               $(use_enable nls) \
+               $(use_with pulseaudio) \
+               --without-asciidoc
+}

Reply via email to