Add media-video/webcamoid and media-video/akvcam

This commit is contained in:
Stefan Reimer 2020-04-17 12:16:39 +01:00
parent 7c000e025d
commit 1fc14df846
4 changed files with 140 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST akvcam-1.0.4.tar.gz 67662 BLAKE2B 32a52866d4b0c2f6d4d8de5b572470554a4643e146ba6d5782bc8858ad7d40525980fdf5e01e1fb31776ce153473c41bf757183116ffccb546da5438f7d25895 SHA512 9fcc30335144cee14b0149afc0597ae9aa365de83570d175d50982794121a02290eacbae95fcf2280ce433565b57f82c729f95c15d18fd034fe1216932ed4321
EBUILD akvcam-1.0.4.ebuild 605 BLAKE2B d4857915e11a7ec7ea0802919330dc76defd8cc8977250c7b537490aaa76c454ce5d1bd90693d71d46cc6bc4ce9f374882fb703acf041589a4fbd5d8fb4f6bf0 SHA512 77ab14747623c39ebb92827e4d7b5a7acd7b57ef4f098407fe326a01d9d2fc99d45157dc8a6430060878d7b73e27f217b494728e9b8b4e0f4c03efe1c86f077e

View File

@ -0,0 +1,34 @@
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-mod
DESCRIPTION="akvcam, virtual camera for Linux"
HOMEPAGE="https://github.com/webcamoid/akvcam"
SRC_URI="https://github.com/webcamoid/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
DEPEND="virtual/linux-sources"
MODULE_NAMES="akvcam(extra:src:src)"
BUILD_TARGETS="all"
pkg_setup() {
linux-mod_pkg_setup
}
src_compile(){
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
}
pkg_postinst() {
linux-mod_pkg_postinst
}

View File

@ -0,0 +1,2 @@
DIST webcamoid-8.7.1.tar.gz 8900338 BLAKE2B f379811cf9e44e67caa80c301c2774f13c686fa4721b5adc85dcd803ea97edb07073e53575c7dae8dab4ebfa0a9ee4f3691511cc7ddd6b55f84ae2cc77cd3c52 SHA512 b9a4b1dd4c863ab126e304eabce47c025ec0e3eb85a5b42035d26caa004399bde733913c0a5598ada3deb01673bd42ea54c9d2b06d300608582e63dda75d9bf6
EBUILD webcamoid-8.7.1.ebuild 2174 BLAKE2B 42965ad0055ea4dd85b028f4d81d2e74950903451e04a32995d204b66b53d1e859a5b022ef257ab2c22d1089a63d4133b16b44a04e7479edb47310124a5fadaa SHA512 49e00220b058c9a176db4bb2f3125afeebf3614d30ec4c8c4d0ecc51d078c0d58d9fad786a387027fe4f1d9480876dd1ab1a50f9916a4c23fab9cab46dc7dc4f

View File

@ -0,0 +1,102 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PLOCALES="ca de el es et fr gl it ja kab ko nl pt ru uk zh_CN zh_TW"
inherit l10n qmake-utils
DESCRIPTION="A full featured webcam capture application"
HOMEPAGE="https://webcamoid.github.io"
SRC_URI="https://github.com/webcamoid/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-3"
SLOT="0"
IUSE_AVKYS=( alsa coreaudio ffmpeg gstreamer jack libuvc oss pulseaudio qtaudio v4lutils videoeffects )
IUSE="${IUSE_AVKYS[@]} debug headers libav v4l"
REQUIRED_USE="
libav? ( ffmpeg )
v4lutils? ( v4l )
"
RDEPEND="
dev-qt/qtconcurrent:5
dev-qt/qtcore:5
dev-qt/qtdeclarative:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtopengl:5
dev-qt/qtquickcontrols:5
dev-qt/qtquickcontrols2:5
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
ffmpeg? (
libav? ( media-video/libav:= )
!libav? ( media-video/ffmpeg:= )
)
gstreamer? ( >=media-libs/gstreamer-1.6.0 )
jack? ( virtual/jack )
libuvc? ( media-libs/libuvc )
pulseaudio? ( media-sound/pulseaudio )
qtaudio? ( dev-qt/qtmultimedia:5 )
v4l? ( media-libs/libv4l )
"
DEPEND="${RDEPEND}
dev-qt/linguist-tools:5
>=sys-kernel/linux-headers-3.6
virtual/pkgconfig
"
src_prepare() {
local tsdir="${S}/StandAlone/share/ts"
local mylrelease="$(qt5_get_bindir)"/lrelease
prepare_locale() {
"${mylrelease}" "${tsdir}/${1}.ts" || die "preparing ${1} locale failed"
}
rm_locale() {
sed -i \
-e '/.*share\/ts\/'${1}'\.qm.*/d' \
StandAlone/translations.qrc || die
}
rm ${tsdir}/*.qm
l10n_find_plocales_changes "${tsdir}" "" '.ts'
l10n_for_each_locale_do prepare_locale
l10n_for_each_disabled_locale_do rm_locale
default
}
src_configure() {
local myqmakeargs=(
"CONFIG+=debug"
"PREFIX=/usr"
"BUILDDOCS=0"
"INSTALLDEVHEADERS=$(usex headers 1 0)"
"LIBDIR=/usr/$(get_libdir)"
"NOAVFOUNDATION=1"
"NODSHOW=1"
"NOVCAMWIN=1"
"NOWASAPI=1"
)
use v4l || myqmakeargs+=( "NOV4L2=1" )
for x in ${IUSE_AVKYS[@]}; do
use ${x} || myqmakeargs+=( "NO${x^^}=1" )
done
eqmake5 ${myqmakeargs[@]}
}
src_install() {
emake INSTALL_ROOT="${D}" install
einstalldocs
}