112 lines
2.5 KiB
Bash
112 lines
2.5 KiB
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
if [[ ${PV} == *9999* ]]; then
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://git.jami.net/savoirfairelinux/jami-daemon"
|
|
SRC_URI=""
|
|
|
|
IUSE="+alsa +dbus doc graph +gsm +hwaccel ipv6 jack -libav +libilbc +nat-pmp +opus pipewire portaudio pulseaudio +sdes +speex +speexdsp +upnp +vaapi vdpau +video +vpx +x264"
|
|
KEYWORDS=""
|
|
else
|
|
SRC_URI="https://git.jami.net/savoirfairelinux/jami-daemon"
|
|
EGIT_COMMIT="afe2446133eb3c9279e42b0d1dcfdd9a3c76a35f"
|
|
|
|
IUSE="+alsa +dbus doc graph +gsm +hwaccel ipv6 jack -libav +libilbc +nat-pmp +opus pipewire portaudio pulseaudio +sdes +speex +speexdsp +upnp +vaapi vdpau +video +vpx +x264"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
DESCRIPTION="Jami (formerly Ring) daemon"
|
|
HOMEPAGE="https://jami.net/"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
RDEPEND="
|
|
>=dev-cpp/yaml-cpp-0.5.3
|
|
>=dev-libs/boost-1.61.0
|
|
>=dev-libs/crypto++-5.6.5
|
|
>=dev-libs/jsoncpp-1.7.2
|
|
>=media-video/ffmpeg-3.4[gsm?,libilbc?,opus?,speex?,v4l,vaapi?,vdpau?,vpx?,x264?,zlib]
|
|
libilbc? ( media-libs/libilbc )
|
|
speex? ( >=media-libs/speex-1.2.0 )
|
|
speexdsp? ( >=media-libs/speexdsp-1.2_rc3 )
|
|
>=net-libs/gnutls-3.4.14
|
|
>=net-libs/opendht-1.10.1
|
|
>=sys-libs/zlib-1.2.8
|
|
media-libs/libva
|
|
dev-libs/libsecp256k1
|
|
net-libs/restinio
|
|
net-libs/dhtnet
|
|
net-libs/http-parser
|
|
dev-libs/libgit2
|
|
dev-cpp/sdbus-c++[tools(+)]
|
|
<=media-libs/webrtc-audio-processing-1.0.0
|
|
dev-libs/msgpack
|
|
alsa? ( media-libs/alsa-lib )
|
|
jack? ( virtual/jack )
|
|
portaudio? ( >=media-libs/portaudio-19_pre20140130 )
|
|
pulseaudio? ( media-libs/libpulse )
|
|
dbus? ( dev-libs/dbus-c++ )
|
|
sdes? ( >=dev-libs/libpcre-8.40 )
|
|
video? ( virtual/libudev )
|
|
nat-pmp? ( net-libs/libnatpmp )
|
|
pipewire? ( media-video/pipewire )
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
doc? (
|
|
graph? ( app-doc/doxygen[dot] )
|
|
!graph? ( app-doc/doxygen )
|
|
)"
|
|
|
|
REQUIRED_USE="dbus? ( sdes )
|
|
graph? ( doc )
|
|
hwaccel? ( video )
|
|
vaapi? ( hwaccel )
|
|
?? ( dbus )"
|
|
|
|
src_prepare() {
|
|
default
|
|
eapply "${FILESDIR}"/cmake.patch
|
|
eapply "${FILESDIR}"/ffmpeg-7.patch
|
|
eapply "${FILESDIR}"/ffmpeg-8.patch
|
|
#cmake_src_prepare
|
|
#eautoreconf
|
|
}
|
|
|
|
#src_configure() {
|
|
# mkdir build
|
|
# cd build
|
|
# cmake .. -DBUILD_CONTRIB=OFF -DJAMI_DBUS=ON
|
|
#}
|
|
|
|
src_configure() {
|
|
#local mycmakeargs=(
|
|
# -DJAMI_DBUS=ON
|
|
# -DBUILD_CONTRIB=OFF
|
|
# -DJAMI_VIDEO=ON
|
|
# -DENABLE_COVERAGE=OFF
|
|
# -DBUILD_TESTING=OFF
|
|
# -DBUILD_EXTRA_TOOLS=ON
|
|
#)
|
|
#cmake_src_configure
|
|
local emesonargs=(
|
|
-Dinterfaces=library,dbus
|
|
-Dopensl=disabled
|
|
-Dportaudio=disabled
|
|
)
|
|
meson_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
#cmake_src_install
|
|
meson_src_install
|
|
}
|