summaryrefslogtreecommitdiff
path: root/media-video/webcamoid
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/webcamoid')
-rw-r--r--media-video/webcamoid/Manifest3
-rw-r--r--media-video/webcamoid/metadata.xml22
-rw-r--r--media-video/webcamoid/webcamoid-8.1.0.ebuild101
3 files changed, 126 insertions, 0 deletions
diff --git a/media-video/webcamoid/Manifest b/media-video/webcamoid/Manifest
new file mode 100644
index 000000000000..f9d3af7cc19a
--- /dev/null
+++ b/media-video/webcamoid/Manifest
@@ -0,0 +1,3 @@
+DIST webcamoid-8.1.0.tar.gz 10062681 BLAKE2B e9501ace9ba42abdae4be4e9e689329b02796198fe2610ef3a404535d389a6aa7a7e540148548dd63ea6ba78c9b650b30f5497396e49b37d7ab06ca8708ad056 SHA512 6db53ed29288889c05955967d961b53fa0e4171aeed12cd1557829c26bb2e2031804319fcead4c5b888a695cfd84f531a27f992be56c38366076ff2945ec2dbb
+EBUILD webcamoid-8.1.0.ebuild 2150 BLAKE2B 07cccb730dafc0d1f576b38b3fc2896632ef651cc7774281948fc77d61fb31274a210ad8444da1d35acccb61e54f8d1eaa3bcf1624290053bc50cd31e7025797 SHA512 47b736f8fe4671f0bfa75a4b030eeae211a3bd36c69e4914d0db001cf1ba4a5a24c6848a6cb1bb8f47558e6764bb9f2f5cf6c6244e1916213ff2f06ff2dde449
+MISC metadata.xml 784 BLAKE2B ce617d4a9bcbf3f8e4ce651fd673bf3c0015e13bc8814d4b4e97eaa4a6c5428553d4a314054315fd3dc8a6b1362b4a322a4af78745f3c3d2378e2e731bdc9ef9 SHA512 6518965213e9deffdb6163243865c9e37ec0a14b6e83558761ff27ad7984003be1b6c6518d455631cd2af29f663b6e91f60dd061151e63b3a4f5ad73e35df5cf
diff --git a/media-video/webcamoid/metadata.xml b/media-video/webcamoid/metadata.xml
new file mode 100644
index 000000000000..9140e9d45b53
--- /dev/null
+++ b/media-video/webcamoid/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>reagentoo@gmail.com</email>
+ <name>Dmitry Baranov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">webcamoid/webcamoid</remote-id>
+ </upstream>
+ <use>
+ <flag name="headers">Install development headers</flag>
+ <flag name="libuvc">Build with libuvc support</flag>
+ <flag name="qtaudio">Enable audio capture/play via <pkg>dev-qt/qtmultimedia</pkg></flag>
+ <flag name="v4lutils">Build with V4L-utils support</flag>
+ <flag name="videoeffects">Build video effects</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-video/webcamoid/webcamoid-8.1.0.ebuild b/media-video/webcamoid/webcamoid-8.1.0.ebuild
new file mode 100644
index 000000000000..50eb5018b024
--- /dev/null
+++ b/media-video/webcamoid/webcamoid-8.1.0.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# 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/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
+}