summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2021-06-23 13:03:43 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2021-06-23 13:03:43 +0200
commited52fe19968d1a1412da63b9a583a92cd91825a7 (patch)
treeee3a8670829a68cb60881f8c0519707cfff64843 /media-radio
parentmedia-radio/tlf: Add subslot dependency (diff)
downloadgentoo-ed52fe19968d1a1412da63b9a583a92cd91825a7.tar.gz
gentoo-ed52fe19968d1a1412da63b9a583a92cd91825a7.tar.bz2
gentoo-ed52fe19968d1a1412da63b9a583a92cd91825a7.zip
media-radio/tlf: Prepare for coming media-libs/hamlib-4.2
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
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