summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2023-07-23 20:07:46 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2023-07-23 20:08:23 +0200
commit580c19c7ead65a61058b8db49a785723d691b2ce (patch)
treee442929343a5652a4fc68a0b20797c24fe86e774 /media-radio
parentmedia-video/pipewire: backport two fixes to 0.3.75 (diff)
downloadgentoo-580c19c7ead65a61058b8db49a785723d691b2ce.tar.gz
gentoo-580c19c7ead65a61058b8db49a785723d691b2ce.tar.bz2
gentoo-580c19c7ead65a61058b8db49a785723d691b2ce.zip
media-radio/fldigi: add 4.1.27
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'media-radio')
-rw-r--r--media-radio/fldigi/Manifest1
-rw-r--r--media-radio/fldigi/fldigi-4.1.27.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/media-radio/fldigi/Manifest b/media-radio/fldigi/Manifest
index 4f4ac6648b8c..395b3937f3d6 100644
--- a/media-radio/fldigi/Manifest
+++ b/media-radio/fldigi/Manifest
@@ -1 +1,2 @@
DIST fldigi-4.1.26.tar.gz 4964877 BLAKE2B 73048df0543b10602c7b49d8e5b426d20d4c563f3f2d3d5bd9cc5f91e071c429931e4f6307df8b256b3ab2be45c8023765cd0719a70310733c478b38d44fda0d SHA512 dee7cd8ce2a89ea6837a4515ef93c3e27d9674bbbb87f121b42c682bcd47e996de860796e45cd86ebfad5812569bbdc7c995a32953881987c84a6f8402b85faf
+DIST fldigi-4.1.27.tar.gz 4969090 BLAKE2B ddebcdb4193e42a23b5a74318aae1a2e82e68ba2ef294ae11042a06c6de54633412b8da82d70a166d629a4e8cc53315424398eb391f67ea010f00d96d6b4527f SHA512 fc4bf2cc6287bf11816bd0102c5ec0785cdc7ef6cb06358353ad683e7a50dbee86539239bbaa42bfea08943e608edac1aafc15c78fe62721c5655402842a8187
diff --git a/media-radio/fldigi/fldigi-4.1.27.ebuild b/media-radio/fldigi/fldigi-4.1.27.ebuild
new file mode 100644
index 000000000000..028d7b2b7e37
--- /dev/null
+++ b/media-radio/fldigi/fldigi-4.1.27.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-libs/libpulse )
+ >=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
+}