blob: 3263804c9f8af58bb660169b1ce1eeb8a5d6fc03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit qmake-utils
MY_P=${P/-/_}
DESCRIPTION="Amateur radio SSTV software"
HOMEPAGE="http://users.telenet.be/on4qz/"
SRC_URI="http://users.telenet.be/on4qz/qsstv/downloads/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
CDEPEND="dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
dev-qt/qtxml:5
media-libs/hamlib:=
media-libs/openjpeg:2
media-libs/alsa-lib
media-libs/libv4l
sci-libs/fftw:3.0=
|| (
media-sound/pulseaudio
media-sound/apulse[sdk]
)"
DEPEND="${CDEPEND}
virtual/pkgconfig"
RDEPEND="${CDEPEND}
x11-misc/xdg-utils"
S="${WORKDIR}/${MY_P}"
src_prepare() {
eapply_user
# fix docdirectory, install path and hamlib search path
sed -i -e "s:/doc/\$\$TARGET:/doc/${PF}:" \
-e "s:-lhamlib:-L/usr/$(get_libdir)/hamlib -lhamlib:g" \
qsstv.pro || die
# prepare for media-radio/hamlib-4.2 change of API
if has_version '>=media-libs/hamlib-4.2' ; then
sed -i -e "s/FILPATHLEN/HAMLIB_FILPATHLEN/g" "${S}"/rig/rigcontrol.cpp \
|| die
fi
}
src_configure() {
eqmake5 PREFIX="/usr"
}
src_install() {
emake INSTALL_ROOT="${D}" install
dodoc README.txt
}
|