You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/tg_owt/tg_owt-0_pre20201105.ebuild

53 lines
1.1 KiB

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake flag-o-matic
TG_OWT_COMMIT="12f4a27f2f02f9dd40f9891d8ec6e58bc1ff5263"
DESCRIPTION="WebRTC build for Telegram"
HOMEPAGE="https://github.com/desktop-app/tg_owt"
SRC_URI="https://github.com/desktop-app/tg_owt/archive/${TG_OWT_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~ppc64"
IUSE="pulseaudio"
# some things from this list are bundled
# work on unbundling in progress
DEPEND="
dev-libs/openssl:=
dev-libs/protobuf:=
media-libs/alsa-lib
media-libs/libjpeg-turbo:=
media-libs/libvpx:=
media-libs/openh264:=
media-libs/opus
media-video/ffmpeg:=
!pulseaudio? ( media-sound/apulse[sdk] )
pulseaudio? ( media-sound/pulseaudio )
"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
amd64? ( dev-lang/yasm )
"
S="${WORKDIR}/${PN}-${TG_OWT_COMMIT}"
src_configure() {
# lacks nop, can't restore toc
append-flags '-fPIC'
local mycmakeargs=(
-DBUILD_SHARED_LIBS=TRUE
-DTG_OWT_PACKAGED_BUILD=TRUE
-DTG_OWT_USE_PROTOBUF=TRUE
)
cmake_src_configure
}