33 lines
745 B
Bash
33 lines
745 B
Bash
|
# Copyright 1999-2022 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
inherit cmake
|
||
|
|
||
|
DESCRIPTION="Media Path Key Agreement for Unicast Secure RTP"
|
||
|
HOMEPAGE="https://gitlab.linphone.org/BC/public/bzrtp"
|
||
|
SRC_URI="https://gitlab.linphone.org/BC/public/${PN}/-/archive/${PV}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
SLOT="0"
|
||
|
IUSE="sqlite static-libs test"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
RDEPEND="net-libs/bctoolbox[test?]
|
||
|
sqlite? ( dev-db/sqlite:3
|
||
|
dev-libs/libxml2:2 )"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DENABLE_STATIC="$(usex static-libs)"
|
||
|
-DENABLE_TESTS="$(usex test)"
|
||
|
-DENABLE_ZIDCACHE="$(usex sqlite)"
|
||
|
)
|
||
|
|
||
|
cmake_src_configure
|
||
|
}
|