summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-radio')
-rw-r--r--media-radio/tlf/tlf-1.4.1-r1.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/media-radio/tlf/tlf-1.4.1-r1.ebuild b/media-radio/tlf/tlf-1.4.1-r1.ebuild
index 7c2ff3248f6b..e50113487189 100644
--- a/media-radio/tlf/tlf-1.4.1-r1.ebuild
+++ b/media-radio/tlf/tlf-1.4.1-r1.ebuild
@@ -27,6 +27,15 @@ DEPEND="
PATCHES=( "${FILESDIR}"/${P}-zone_nr.patch )
+src_prepare() {
+ if has_version '>=media-libs/hamlib-4.2' ; then
+ sed -i -e "s/FILPATHLEN/HAMLIB_FILPATHLEN/g" "${S}"/src/sendqrg.c || die
+ fi
+
+ eapply ${PATCHES}
+ eapply_user
+}
+
src_configure() {
append-ldflags -L/usr/$(get_libdir)/hamlib
econf --enable-fldigi-xmlrpc