diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2024-01-31 15:02:30 +0100 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2024-01-31 15:02:30 +0100 |
commit | d03af815255359563cef13733e459dc844d18060 (patch) | |
tree | a2e7cea524e203c36a71e0f019c5d2852853fc31 /media-radio | |
parent | dev-python/quart: Add missing dev-python/python-dotenv test dep (diff) | |
download | gentoo-d03af815255359563cef13733e459dc844d18060.tar.gz gentoo-d03af815255359563cef13733e459dc844d18060.tar.bz2 gentoo-d03af815255359563cef13733e459dc844d18060.zip |
media-radio/fldigi: add 4.2.04
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'media-radio')
-rw-r--r-- | media-radio/fldigi/Manifest | 1 | ||||
-rw-r--r-- | media-radio/fldigi/fldigi-4.2.04.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/media-radio/fldigi/Manifest b/media-radio/fldigi/Manifest index d60e7ca6f793..6d2e6fe3cc3e 100644 --- a/media-radio/fldigi/Manifest +++ b/media-radio/fldigi/Manifest @@ -1 +1,2 @@ DIST fldigi-4.2.03.tar.gz 4979861 BLAKE2B fdff1c211bb40acc570e3ec316a02772b4cb378b2983ae24fa4fea9486847c5a4453abb90ee7203fe07e2ea2c685c0ff3e41d68d186f3ec2e8de4397ce609675 SHA512 fc2c0ffe0df83870617e88f7d5ba797440f10a6f3bfa7eaf202c8c94cc4df0319ef5d7212e203998bec08cffcea4e83762ffcd726b28225779cc5666ce722edf +DIST fldigi-4.2.04.tar.gz 5118463 BLAKE2B 9c3f51c4ad7a08c9ce26230f59e7ecbf7a2a3d1734905afbb130145a425bd83c6d11478dddce6499c229d3b87f4670ef94f87ffe34e96168761e2f705464ebf4 SHA512 609f687e47022822674b0188f16ce997712ce2ae605ef915507acf9531edf7c4d4c18dd7df96e3302b3c83bd8abe40afe79232ac1b59fa7014e5e8415784f2b2 diff --git a/media-radio/fldigi/fldigi-4.2.04.ebuild b/media-radio/fldigi/fldigi-4.2.04.ebuild new file mode 100644 index 000000000000..cbbcbb8b6895 --- /dev/null +++ b/media-radio/fldigi/fldigi-4.2.04.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 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 +} |