summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2023-10-03 17:17:55 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2023-10-03 17:17:55 +0200
commita8c1226c5889d15bd01cd99c3c527d92e44d1dbd (patch)
tree04d2a61d33d25e58ac229bfb940c8e72c73e2226 /media-radio
parentmedia-radio/flrig: add 2.0.03 (diff)
downloadgentoo-a8c1226c5889d15bd01cd99c3c527d92e44d1dbd.tar.gz
gentoo-a8c1226c5889d15bd01cd99c3c527d92e44d1dbd.tar.bz2
gentoo-a8c1226c5889d15bd01cd99c3c527d92e44d1dbd.zip
media-radio/fldigi: add 4.2.00
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.2.00.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/media-radio/fldigi/Manifest b/media-radio/fldigi/Manifest
index 395b3937f3d6..7eabebb91677 100644
--- a/media-radio/fldigi/Manifest
+++ b/media-radio/fldigi/Manifest
@@ -1,2 +1,3 @@
DIST fldigi-4.1.26.tar.gz 4964877 BLAKE2B 73048df0543b10602c7b49d8e5b426d20d4c563f3f2d3d5bd9cc5f91e071c429931e4f6307df8b256b3ab2be45c8023765cd0719a70310733c478b38d44fda0d SHA512 dee7cd8ce2a89ea6837a4515ef93c3e27d9674bbbb87f121b42c682bcd47e996de860796e45cd86ebfad5812569bbdc7c995a32953881987c84a6f8402b85faf
DIST fldigi-4.1.27.tar.gz 4969090 BLAKE2B ddebcdb4193e42a23b5a74318aae1a2e82e68ba2ef294ae11042a06c6de54633412b8da82d70a166d629a4e8cc53315424398eb391f67ea010f00d96d6b4527f SHA512 fc4bf2cc6287bf11816bd0102c5ec0785cdc7ef6cb06358353ad683e7a50dbee86539239bbaa42bfea08943e608edac1aafc15c78fe62721c5655402842a8187
+DIST fldigi-4.2.00.tar.gz 4973115 BLAKE2B 365e98252d808b96d083451c92ad6d50243994966e2ad71dba0fc1dc83cacd50ce39a56938fa107d5abfa6df8be2d687898a9bb6183522972d8a2d16d0547709 SHA512 4f441872713930044f5e7f7df7dc51cd166bef314f5eaa6f414894af5fbdc417b7c62fea7a8b62f858eefb82e1a8fd821bf563789ed1f2f56cb721120ade6bde
diff --git a/media-radio/fldigi/fldigi-4.2.00.ebuild b/media-radio/fldigi/fldigi-4.2.00.ebuild
new file mode 100644
index 000000000000..028d7b2b7e37
--- /dev/null
+++ b/media-radio/fldigi/fldigi-4.2.00.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
+}