forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Thomas Beierlein <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 1999-2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
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-c++11.patch ) | ||
|
||
src_configure() { | ||
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 | ||
} |