Skip to content

Commit

Permalink
media-radio/svxlink: Fix dependencies, add some USE flags
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Beierlein <[email protected]>
  • Loading branch information
dl1jbe committed Jul 30, 2024
1 parent 0cee8c7 commit 2157e20
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
4 changes: 4 additions & 0 deletions media-radio/svxlink/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@
<remote-id type="sourceforge">svxlink</remote-id>
<remote-id type="github">sm0svx/svxlink</remote-id>
</upstream>
<use>
<flag name="qt5">Build and install qtel application</flag>
<flag name="rtlsdr">Add support for rtlsdr hardware</flag>
</use>
</pkgmetadata>
38 changes: 28 additions & 10 deletions media-radio/svxlink/svxlink-24.02-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ SRC_URI="https://github.com/sm0svx/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ogg qt5 rtlsdr"

DEPEND="dev-lang/tcl:0
dev-libs/jsoncpp
=dev-libs/libgpiod-1*
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
DEPEND="dev-lang/tcl:=
dev-libs/jsoncpp:=
dev-libs/libgcrypt:=
=dev-libs/libgpiod-1*:=
dev-libs/libsigc++:2
dev-libs/popt
media-libs/alsa-lib
media-sound/gsm
dev-libs/libgcrypt:0
media-libs/speex
media-libs/opus
dev-libs/libsigc++:2
dev-libs/popt"
net-misc/curl
ogg? ( media-libs/libogg )
rtlsdr? ( net-wireless/rtl-sdr )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
)"
RDEPEND="${DEPEND}
acct-group/svxlink
acct-user/svxlink"
Expand All @@ -43,6 +49,16 @@ src_prepare() {
if use elibc_musl ; then
eapply -p1 "${FILESDIR}/$P-musl.patch"
fi
if ! use ogg ; then
# drop automatic discovery of dependency
sed -i -e "s/find_package(OGG)/#/g" \
src/async/audio/CMakeLists.txt || die
fi
if ! use rtlsdr ; then
# drop automatic discovery of dependency
sed -i -e "s/find_package(RtlSdr)/#/g" \
src/svxlink/trx/CMakeLists.txt || die
fi
cmake_src_prepare
# drop deprecated desktop category (bug #475730)
sed -i -e "s:Categories=Application;:Categories=:g" src/qtel/qtel.desktop || die
Expand All @@ -53,8 +69,10 @@ src_configure() {
filter-lto

local mycmakeargs=(
-DUSE_QT="$(usex qt5)"
-DSYSCONF_INSTALL_DIR=/etc
-DLOCAL_STATE_DIR=/var
-DUSE_OSS=NO
)
cmake_src_configure
}
Expand Down

0 comments on commit 2157e20

Please sign in to comment.