1 # Copyright 2018-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Secure Reliable Transport (SRT) library and tools"
9 HOMEPAGE="https://github.com/Haivision/srt"
11 if [[ ${PV} == *9999 ]] ; then
12 EGIT_REPO_URI="https://github.com/Haivision/${PN}.git"
15 SRC_URI="https://github.com/Haivision/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
21 IUSE="gnutls libressl"
25 dev-libs/nettle:0=[${MULTILIB_USEDEP}]
26 net-libs/gnutls:0=[${MULTILIB_USEDEP}]
29 !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] )
30 libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
36 "${FILESDIR}/${PN}-always-GNUInstallDirs.patch"
40 cmake-utils_src_prepare
41 sed -i -e "s:hcrypt_ut.c::" "${S}"/haicrypt/*.maf || die
47 -DUSE_GNUTLS=$(usex gnutls)
49 cmake-multilib_src_configure