summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-radio/fldigi/fldigi-3.11.2.ebuild')
-rw-r--r--media-radio/fldigi/fldigi-3.11.2.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/media-radio/fldigi/fldigi-3.11.2.ebuild b/media-radio/fldigi/fldigi-3.11.2.ebuild
new file mode 100644
index 000000000..ca66e50a7
--- /dev/null
+++ b/media-radio/fldigi/fldigi-3.11.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator
+
+MY_DOC_PN=${PN}-$(get_version_component_range 1-2)
+
+DESCRIPTION="Sound card based multimode software modem for Amateur Radio use."
+HOMEPAGE="http://www.w1hkj.com/Fldigi.html"
+SRC_URI="http://www.w1hkj.com/${PN}-distro/${P}.tar.gz
+ doc? ( http://www.w1hkj.com/${PN}-distro/${MY_DOC_PN}.pdf )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc hamlib nls portaudio pulseaudio sndfile xmlrpc"
+
+RDEPEND=">=x11-libs/fltk-1.1.7
+ dev-libs/libxml2
+ media-libs/libsamplerate
+ media-libs/jpeg
+ media-libs/libpng
+ x11-misc/xdg-utils
+ hamlib? ( media-libs/hamlib )
+ portaudio? ( >=media-libs/portaudio-19_pre20071207 )
+ pulseaudio? ( media-sound/pulseaudio )
+ sndfile? ( >=media-libs/libsndfile-1.0.10 )
+ xmlrpc? ( dev-libs/xmlrpc-c )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ dev-util/pkgconfig"
+
+src_compile() {
+ econf $(use_with sndfile) \
+ $(use_with portaudio) \
+ $(use_with hamlib) \
+ $(use_enable nls) \
+ $(use_with pulseaudio) \
+ $(use_with xmlrpc)
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog README || die "dodoc failed"
+ if use doc ; then
+ dodoc "${DISTDIR}"/${MY_DOC_PN}.pdf
+ fi
+}
+