diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-04-22 10:38:14 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-04-22 10:38:14 +0200 |
commit | 0af367a2ee1ccbcb4efa2c2299c3245501eb4e5a (patch) | |
tree | 185a6acf6de9747ebc9149cb1def9a4e4ca5aec9 /media-tv | |
parent | app-emulation/dxvk-bin: Fix maintainer name in metadata. (diff) | |
download | guru-0af367a2ee1ccbcb4efa2c2299c3245501eb4e5a.tar.gz guru-0af367a2ee1ccbcb4efa2c2299c3245501eb4e5a.tar.bz2 guru-0af367a2ee1ccbcb4efa2c2299c3245501eb4e5a.zip |
media-tv/droidcam: Use your android phone as webcam
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/droidcam/Manifest | 1 | ||||
-rw-r--r-- | media-tv/droidcam/droidcam-0_pre20200416.ebuild | 68 | ||||
-rw-r--r-- | media-tv/droidcam/files/droidcam-0-libjpeg-location.patch | 13 | ||||
-rw-r--r-- | media-tv/droidcam/metadata.xml | 8 |
4 files changed, 90 insertions, 0 deletions
diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest new file mode 100644 index 000000000..c507a4665 --- /dev/null +++ b/media-tv/droidcam/Manifest @@ -0,0 +1 @@ +DIST droidcam-0_pre20200416.tar.gz 47695 BLAKE2B 98970a8b0d530a414017757fe09457ded56993511af067ea10d6588191807117db94aaa704bad301339d05a59b61ab23f92d48a551df7d398c39a8c4cd1e2bfb SHA512 22357880edbcee4ef1d247dffc0fcc95c7c121befd43d53594cdabe9770fa167bffb887c719a2fb924b81e6beceecb66a25c6ed31eac930af6000802efb83c00 diff --git a/media-tv/droidcam/droidcam-0_pre20200416.ebuild b/media-tv/droidcam/droidcam-0_pre20200416.ebuild new file mode 100644 index 000000000..1afe5a6e2 --- /dev/null +++ b/media-tv/droidcam/droidcam-0_pre20200416.ebuild @@ -0,0 +1,68 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +COMMIT="fee087c7f699cb38fba7934c77c588d246355372" + +inherit desktop linux-mod xdg + +DESCRIPTION="Use android phone as webcam, using a v4l device driver and app" +HOMEPAGE="https://www.dev47apps.com/droidcam/linuxx/ + https://github.com/aramg/droidcam" +SRC_URI="https://github.com/aramg/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64" +LICENSE="droidcam" +SLOT="0" + +# Requires connection to android phone +RESTRICT="test" + +BDEPEND="media-libs/libjpeg-turbo[static-libs]" + +RDEPEND="x11-libs/gtk+:2" + +S="${WORKDIR}/${PN}-${COMMIT}/linux" + +PATCHES="${FILESDIR}/${PN}-0-libjpeg-location.patch" + +CONFIG_CHECK="VIDEO_DEV" +MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)" +BUILD_TARGETS="all" + +src_configure() { + set_arch_to_kernel + default +} + +src_compile() { + default + linux-mod_src_compile +} + +src_test() { + pushd "v4l2loopback" + default + ./test || die + popd +} + +src_install() { + linux-mod_src_install + dobin "${PN}" + dobin "${PN}-cli" + + newicon -s 32x32 icon.png ${PN}.png + newicon -s 64x64 icon2.png ${PN}.png + make_desktop_entry ${PN} "Droidcam" ${PN} 'AudioVideo;Video' +} + +pkg_postinst() { + linux-mod_pkg_postinst + xdg_pkg_postinst + + elog "To use this, you'll need to download the android app as well:" + elog "Free version: https://play.google.com/store/apps/details?id=com.dev47apps.droidcam" + elog "Paid version: https://play.google.com/store/apps/details?id=com.dev47apps.droidcamx" +} diff --git a/media-tv/droidcam/files/droidcam-0-libjpeg-location.patch b/media-tv/droidcam/files/droidcam-0-libjpeg-location.patch new file mode 100644 index 000000000..2b1f9cdad --- /dev/null +++ b/media-tv/droidcam/files/droidcam-0-libjpeg-location.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 134f723..44e2c2f 100644 +--- a/Makefile ++++ b/Makefile +@@ -9,7 +9,7 @@ + CC = -no-pie + GTK = `pkg-config --libs --cflags gtk+-2.0` + LIBS = `pkg-config --libs libswscale libavutil` +-JPEG = -I/opt/libjpeg-turbo/include /opt/libjpeg-turbo/lib`getconf LONG_BIT`/libturbojpeg.a ++JPEG = -I/usr/include /usr/lib`getconf LONG_BIT`/libturbojpeg.a + SRC = src/connection.c src/decoder.c + NO_WARN = -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast + diff --git a/media-tv/droidcam/metadata.xml b/media-tv/droidcam/metadata.xml new file mode 100644 index 000000000..1210e7ebc --- /dev/null +++ b/media-tv/droidcam/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>andrewammerlaan@riseup.net</email> + <name>Andrew Ammerlaan</name> + </maintainer> +</pkgmetadata> |