public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: media-tv/droidcam/files/, media-tv/droidcam/
  2020-04-22  8:45 [gentoo-commits] repo/proj/guru:master commit in: media-tv/droidcam/files/, media-tv/droidcam/ Andrew Ammerlaan
@ 2020-04-22  8:45 ` Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2020-04-22  8:45 UTC (permalink / raw
  To: gentoo-commits

commit:     0af367a2ee1ccbcb4efa2c2299c3245501eb4e5a
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Apr 22 08:38:14 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 22 08:38:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0af367a2

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 <AT> riseup.net>

 media-tv/droidcam/Manifest                         |  1 +
 media-tv/droidcam/droidcam-0_pre20200416.ebuild    | 68 ++++++++++++++++++++++
 .../files/droidcam-0-libjpeg-location.patch        | 13 +++++
 media-tv/droidcam/metadata.xml                     |  8 +++
 4 files changed, 90 insertions(+)

diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest
new file mode 100644
index 0000000..c507a46
--- /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 0000000..1afe5a6
--- /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 0000000..2b1f9cd
--- /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 0000000..1210e7e
--- /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>


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:master commit in: media-tv/droidcam/files/, media-tv/droidcam/
@ 2020-04-22  8:45 Andrew Ammerlaan
  2020-04-22  8:45 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Ammerlaan @ 2020-04-22  8:45 UTC (permalink / raw
  To: gentoo-commits

commit:     0af367a2ee1ccbcb4efa2c2299c3245501eb4e5a
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Apr 22 08:38:14 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 22 08:38:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0af367a2

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 <AT> riseup.net>

 media-tv/droidcam/Manifest                         |  1 +
 media-tv/droidcam/droidcam-0_pre20200416.ebuild    | 68 ++++++++++++++++++++++
 .../files/droidcam-0-libjpeg-location.patch        | 13 +++++
 media-tv/droidcam/metadata.xml                     |  8 +++
 4 files changed, 90 insertions(+)

diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest
new file mode 100644
index 0000000..c507a46
--- /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 0000000..1afe5a6
--- /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 0000000..2b1f9cd
--- /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 0000000..1210e7e
--- /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>


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: media-tv/droidcam/files/, media-tv/droidcam/
@ 2020-07-29 11:22 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2020-07-29 11:22 UTC (permalink / raw
  To: gentoo-commits

commit:     c5e77d623333c44dd5ef82715a11a22ade63ad51
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Jul 29 11:21:50 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Jul 29 11:21:50 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c5e77d62

media-tv/droidcam: many fixes to the ebuild

- added missing deps
- bumped to a offical release version
	(jeej there are now releases)
- improved makefile patch
- added gtk use flag, it is now possible to
	only install the cli part of the program
- expanded config check, package now has audio support

Many thanks to @henrikp
See also: https://github.com/gentoo/gentoo/pull/16736

Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 media-tv/droidcam/Manifest                         |   2 +-
 media-tv/droidcam/droidcam-1.4.ebuild              | 126 +++++++++++++++++++++
 .../droidcam/droidcam-6.7.7_pre20200506.ebuild     |  74 ------------
 media-tv/droidcam/files/README.gentoo              |   6 +
 .../droidcam/files/droidcam-libjpeg-location.patch |  13 ---
 .../droidcam/files/droidcam-makefile-fixes.patch   |  44 +++++++
 6 files changed, 177 insertions(+), 88 deletions(-)

diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest
index affc279..13a8d36 100644
--- a/media-tv/droidcam/Manifest
+++ b/media-tv/droidcam/Manifest
@@ -1 +1 @@
-DIST droidcam-6.7.7_pre20200506.tar.gz 54514 BLAKE2B 1a68736bf70b11f216eea9893bc858ea6b859c2d0b6a89d9e5e5c9d7a9dc1a7ed97d6e1cea96ae3c8683d08effa861c59b9576dcf804bbae7a25c368b3fee50b SHA512 e9864cdd311e91fd417ce5d33ec15ce76dd9b4f3fa50eef7dadddee8db2f788ad992dd869b1d27e41df02df1e9a08fec3544e539378808d3fa862ffdecea11a7
+DIST droidcam-1.4.tar.gz 84350 BLAKE2B 3d627f94aa9d04b3ce9785005b5a3d06895c74254001033c7d881bdc2359e3d34db5668e0df59a9f293014f7cd78e6f4aa07f25cd8a8ed3f54c1658a9406e7d8 SHA512 60ca2d15514a03a71e04e0f5e1382a5af4e7244329d4113e8af1dd0adb8a448febc60adf94bbcad8db8de0e0ffd906de1f2427488dc9e27ebe7739c7331ac99d

diff --git a/media-tv/droidcam/droidcam-1.4.ebuild b/media-tv/droidcam/droidcam-1.4.ebuild
new file mode 100644
index 0000000..9048b4b
--- /dev/null
+++ b/media-tv/droidcam/droidcam-1.4.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop eutils linux-mod readme.gentoo-r1 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/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64"
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="gtk"
+
+# Requires connection to android phone
+RESTRICT="test"
+
+DEPEND="
+	gtk? (
+		dev-cpp/gtkmm:3.0
+		media-video/ffmpeg
+	)
+	=app-pda/libusbmuxd-1*
+	media-libs/alsa-lib
+"
+
+BDEPEND="
+	media-libs/libjpeg-turbo
+	>=media-libs/speex-1.2.0-r1
+	virtual/pkgconfig
+"
+
+S="${WORKDIR}/${P}/linux"
+
+PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
+
+DOCS=( README.md README-DKMS.md )
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="
+		The default resolution for v4l2loopback-dc[1] is 640x480. You can override the
+		value by copying droidcam.conf.default to /etc/modprobe.d/droidcam.conf
+		and modifying 'width' and 'height'.
+		[1] https://github.com/aramg/droidcam/issues/56
+"
+
+BUILD_TARGETS="all"
+MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
+CONFIG_CHECK="VIDEO_DEV ~SND_ALOOP MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
+ERROR_SND_ALOOP="CONFIG_SND_ALOOP: missing, required for audio support"
+MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
+
+src_prepare() {
+	default
+	if ! use gtk ; then
+		sed -i -e '/cflags gtk+/d' Makefile
+	fi
+	linux-mod_pkg_setup
+}
+
+src_configure() {
+	set_arch_to_kernel
+	default
+}
+
+src_compile() {
+	if use gtk ; then
+		emake droidcam
+	fi
+	emake droidcam-cli
+	KERNELRELEASE="${KV_FULL}" linux-mod_src_compile
+}
+
+src_test() {
+	pushd "v4l2loopback"
+	default
+	./test || die
+	popd
+}
+
+src_install() {
+	if use gtk ; then
+		dobin droidcam
+		newicon -s 32 icon.png droidcam.png
+		newicon -s 48 icon2.png droidcam.png
+		make_desktop_entry "${PN}" "DroidCam Client" "${PN}" AudioVideo
+	fi
+	dobin "${PN}-cli"
+
+	readme.gentoo_create_doc
+
+	# The cli and gui do not auto load the module if unloaded (why not tho?)
+	# so we just put it in modules-load.d to make sure it always works
+	insinto /usr/lib/modules-load.d/
+	doins "${FILESDIR}/v4l2loopback-dc.conf"
+
+	einstalldocs
+	linux-mod_src_install
+}
+
+pkg_postinst() {
+	linux-mod_pkg_postinst
+
+	if use gtk ; then
+		xdg_pkg_postinst
+	fi
+
+	elog ""
+	elog "To use this package, 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"
+
+	elog ""
+	optfeature "to connection with USB via ADB instead of over wifi" dev-util/android-tools
+}
+
+pkg_postrm() {
+	if use gtk ; then
+		xdg_pkg_postrm
+	fi
+
+	linux-mod_pkg_postrm
+}

diff --git a/media-tv/droidcam/droidcam-6.7.7_pre20200506.ebuild b/media-tv/droidcam/droidcam-6.7.7_pre20200506.ebuild
deleted file mode 100644
index 580c12f..0000000
--- a/media-tv/droidcam/droidcam-6.7.7_pre20200506.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 2019-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-COMMIT="98cbf07def9604f92fd74ea2964d483347388909"
-
-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"
-
-RDEPEND="x11-libs/gtk+:2"
-
-S="${WORKDIR}/${PN}-${COMMIT}/linux"
-
-PATCHES="${FILESDIR}/${PN}-libjpeg-location.patch"
-
-CONFIG_CHECK="VIDEO_DEV"
-MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
-MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
-BUILD_TARGETS="all"
-
-src_configure() {
-	set_arch_to_kernel
-	default
-}
-
-src_compile() {
-	default
-	KERNELRELEASE="${KV_FULL}" 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'
-
-	# The cli and gui do not auto load the module if unloaded (why not tho?)
-	# so we just put it in modules-load.d to make sure it always works
-	insinto /usr/lib/modules-load.d/
-	doins "${FILESDIR}/v4l2loopback-dc.conf"
-}
-
-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/README.gentoo b/media-tv/droidcam/files/README.gentoo
new file mode 100644
index 0000000..6a5bdb4
--- /dev/null
+++ b/media-tv/droidcam/files/README.gentoo
@@ -0,0 +1,6 @@
+The default resolution for v4l2loopback-dc is 640x480. You can override these
+values in /etc/modprobe.d/v4l2loopback-dc.conf 
+and modifying 'width' and 'height'.
+
+See https://github.com/aramg/droidcam/issues/56 on why a fork of v4l2loopback
+is currently being used here.

diff --git a/media-tv/droidcam/files/droidcam-libjpeg-location.patch b/media-tv/droidcam/files/droidcam-libjpeg-location.patch
deleted file mode 100644
index 1b1a1e0..0000000
--- a/media-tv/droidcam/files/droidcam-libjpeg-location.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 3a37443..2a68b2e 100644
---- a/Makefile
-+++ b/Makefile
-@@ -13,7 +13,7 @@ JPEG_LIB ?= $(JPEG_DIR)/lib`getconf LONG_BIT`
- CC    = -no-pie
- GTK   = `pkg-config --libs --cflags gtk+-2.0` `pkg-config --libs x11`
- LIBS  = `pkg-config --libs --cflags libswscale libavutil`
--JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.a
-+JPEG  = -I/usr/include /usr/lib`getconf LONG_BIT`/libturbojpeg.so
- 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/files/droidcam-makefile-fixes.patch b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
new file mode 100644
index 0000000..238898c
--- /dev/null
+++ b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
@@ -0,0 +1,44 @@
+diff --git a/Makefile b/Makefile
+index 97a6e1f..6779293 100644
+--- a/Makefile
++++ b/Makefile
+@@ -6,7 +6,7 @@
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ # Use at your own risk. See README file for more details.
+
+-JPEG_DIR ?= /opt/libjpeg-turbo
++JPEG_DIR ?= /usr
+ JPEG_INCLUDE ?= $(JPEG_DIR)/include
+ JPEG_LIB ?= $(JPEG_DIR)/lib`getconf LONG_BIT`
+
+@@ -15,14 +15,14 @@ CC    = -std=c++11 -x c++ -Wall -fPIC -no-pie
+ GTK   = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
+ LIBAV = `pkg-config --libs --cflags libswscale libavutil`
+ LIBS  =  -lspeex -lasound -lpthread -lm
+-JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.a
++JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.so
+ SRC      = src/connection.c src/settings.c src/decoder*.c src/av.c src/usb.c
+
+ all: droidcam-cli droidcam
+
+ ifeq "$(RELEASE)" "1"
+-LIBAV = /usr/lib/x86_64-linux-gnu/libswscale.a /usr/lib/x86_64-linux-gnu/libavutil.a
+-SRC  += /usr/lib/x86_64-linux-gnu/libusbmuxd.a /usr/lib/x86_64-linux-gnu/libxml2.a src/libplist-2.0.a
++LIBAV = /usr/lib/x86_64-linux-gnu/libswscale.so /usr/lib/x86_64-linux-gnu/libavutil.so
++SRC  += /usr/lib/x86_64-linux-gnu/libusbmuxd.so /usr/lib/x86_64-linux-gnu/libxml2.so src/libplist-2.0.so
+ package: clean all
+ 	zip -x *.png src/ src/* Makefile -r droidcam_`date +%s`.zip ./*
+
+@@ -34,10 +34,10 @@ gresource: .gresource.xml icon2.png
+ 	glib-compile-resources .gresource.xml --generate-source --target=src/resources.c
+
+ droidcam-cli: src/droidcam-cli.c $(SRC)
+-	$(GXX) $(CC) $^ $(JPEG) $(LIBAV) $(LIBS) -o droidcam-cli
++	$(GXX) $(CC) $(LDFLAGS) $(CFLAGS) $^ $(JPEG) $(LIBAV) $(LIBS) -o droidcam-cli
+
+ droidcam: src/droidcam.c src/resources.c $(SRC)
+-	$(GXX) $(CC) $^ $(GTK) $(JPEG) $(LIBAV) $(LIBS) -o droidcam
++	$(GXX) $(CC) $(LDFLAGS) $(CFLAGS) $^ $(GTK) $(JPEG) $(LIBAV) $(LIBS) -o droidcam
+
+ clean:
+ 	rm droidcam || true


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: media-tv/droidcam/files/, media-tv/droidcam/
  2020-12-21 11:06 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
@ 2020-12-21 11:02 ` Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2020-12-21 11:02 UTC (permalink / raw
  To: gentoo-commits

commit:     5bdaa5668a57ff6e39632575ce56915b23f8be9d
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Dec 21 11:01:56 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Dec 21 11:02:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5bdaa566

media-tv/droidcam: allow use of libusbmuxd-2.0

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 media-tv/droidcam/droidcam-1.6.ebuild                 | 2 +-
 media-tv/droidcam/files/droidcam-makefile-fixes.patch | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/media-tv/droidcam/droidcam-1.6.ebuild b/media-tv/droidcam/droidcam-1.6.ebuild
index 64118f6d..42caab29 100644
--- a/media-tv/droidcam/droidcam-1.6.ebuild
+++ b/media-tv/droidcam/droidcam-1.6.ebuild
@@ -20,7 +20,7 @@ IUSE="gtk"
 RESTRICT="test"
 
 DEPEND="
-	=app-pda/libusbmuxd-1*
+	app-pda/libusbmuxd
 	dev-libs/glib
 	dev-libs/libappindicator:3
 	dev-util/android-tools

diff --git a/media-tv/droidcam/files/droidcam-makefile-fixes.patch b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
index 8ba20c4b..4fe51776 100644
--- a/media-tv/droidcam/files/droidcam-makefile-fixes.patch
+++ b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
@@ -1,5 +1,5 @@
 diff --git a/Makefile b/Makefile
-index 91ca3af..408de37 100644
+index 91ca3af..16afe8b 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -6,7 +6,7 @@
@@ -18,7 +18,8 @@ index 91ca3af..408de37 100644
 -JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.a
 +JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.so
  SRC      = src/connection.c src/settings.c src/decoder*.c src/av.c src/usb.c
- USBMUXD = -lusbmuxd
+-USBMUXD = -lusbmuxd
++USBMUXD = -lusbmuxd-2.0
  
  all: droidcam-cli droidcam
  
@@ -26,7 +27,7 @@ index 91ca3af..408de37 100644
 -LIBAV = /usr/lib/x86_64-linux-gnu/libswscale.a /usr/lib/x86_64-linux-gnu/libavutil.a
 -SRC  += /usr/lib/x86_64-linux-gnu/libusbmuxd.a /usr/lib/x86_64-linux-gnu/libxml2.a src/libplist-2.0.a
 +LIBAV = /usr/lib/x86_64-linux-gnu/libswscale.so /usr/lib/x86_64-linux-gnu/libavutil.so
-+SRC  += /usr/lib/x86_64-linux-gnu/libusbmuxd.so /usr/lib/x86_64-linux-gnu/libxml2.so src/libplist-2.0.so
++SRC  += /usr/lib/x86_64-linux-gnu/libusbmuxd-2.0.so /usr/lib/x86_64-linux-gnu/libxml2.so src/libplist-2.0.so
  package: clean all
  	zip -x icon.png src/ src/* Makefile -r droidcam_`date +%s`.zip ./*
  


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: media-tv/droidcam/files/, media-tv/droidcam/
@ 2021-03-05 21:12 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2021-03-05 21:12 UTC (permalink / raw
  To: gentoo-commits

commit:     cf22746fd32aec0d4c386d59f69f55d22d7c1ae5
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Mar  5 21:12:21 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Mar  5 21:12:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf22746f

media-tv/droidcam: version bump 1.7.2

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 media-tv/droidcam/Manifest                         |  2 +-
 .../{droidcam-1.7.ebuild => droidcam-1.7.2.ebuild} |  0
 .../droidcam/files/droidcam-makefile-fixes.patch   | 28 ++++++++++++----------
 3 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest
index 74545b19..cd933296 100644
--- a/media-tv/droidcam/Manifest
+++ b/media-tv/droidcam/Manifest
@@ -1 +1 @@
-DIST droidcam-1.7.tar.gz 81605 BLAKE2B 81d2ffa1b3cb0f9791c4459c75aeaacb701d03cbde11c76cd18ff569854f304b5bb359552a9c0a3a8bbb32f2d9c0fa8bdc7a2eec9b60a047138098c3dea4aaf4 SHA512 d41df620734c51fca49d411b96cd2889269df9548044af2c0b165025f08205a5a99a9e4c5896742174833a2b00ed89d8dd955b593d4acc39cbac658282841439
+DIST droidcam-1.7.2.tar.gz 82690 BLAKE2B 3b7312f081dff747ccc9f8fab9a81bee079f697fa6bf8eb6982efa443a300751b9e8ebaa196950fc2c543e9abda3d9d7d26edc986cc916c36dcbccf9f6db0102 SHA512 0515760b3705abcb46acae5bbc05bba1d82416853c6438f776f6170e7469372d4d4236aae3500d409e572ae4e5289d3bd7416ed2729ea929e21146994c2de51c

diff --git a/media-tv/droidcam/droidcam-1.7.ebuild b/media-tv/droidcam/droidcam-1.7.2.ebuild
similarity index 100%
rename from media-tv/droidcam/droidcam-1.7.ebuild
rename to media-tv/droidcam/droidcam-1.7.2.ebuild

diff --git a/media-tv/droidcam/files/droidcam-makefile-fixes.patch b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
index 33270582..fb3c37b6 100644
--- a/media-tv/droidcam/files/droidcam-makefile-fixes.patch
+++ b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
@@ -1,8 +1,8 @@
 diff --git a/Makefile b/Makefile
-index d1c514e..5abd541 100644
+index 54738f5..bcb5800 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -6,7 +6,7 @@
+@@ -6,25 +6,25 @@
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  # Use at your own risk. See README file for more details.
  
@@ -11,13 +11,16 @@ index d1c514e..5abd541 100644
  JPEG_INCLUDE ?= $(JPEG_DIR)/include
  JPEG_LIB ?= $(JPEG_DIR)/lib`getconf LONG_BIT`
  
-@@ -16,15 +16,15 @@ GTK   = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
- GTK  += `pkg-config --cflags --libs appindicator3-0.1`
+ CXX   = g++
+ CXXFLAGS = -std=c++11 -Wall -fPIC -no-pie
+ GTK   = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
+-#GTK  += `pkg-config --cflags --libs appindicator3-0.1`
++GTK  += `pkg-config --cflags --libs appindicator3-0.1`
  LIBAV = `pkg-config --libs --cflags libswscale libavutil`
  LIBS  =  -lspeex -lasound -lpthread -lm
 -JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.a
 +JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.so
- SRC      = src/connection.c src/settings.c src/decoder*.c src/av.c src/usb.c
+ SRC   = src/connection.c src/settings.c src/decoder*.c src/av.c src/usb.c
 -USBMUXD = -lusbmuxd
 +USBMUXD = -lusbmuxd-2.0
  
@@ -31,16 +34,17 @@ index d1c514e..5abd541 100644
  package: clean all
  	zip "droidcam_$(RELEASE).zip" \
  		LICENSE README* icon2.png  \
-@@ -39,10 +39,10 @@ gresource: .gresource.xml icon2.png
- 	glib-compile-resources .gresource.xml --generate-source --target=src/resources.c
+@@ -40,11 +40,11 @@ gresource: .gresource.xml icon2.png
  
+ droidcam-cli: LDLIBS += $(JPEG) $(LIBAV) $(LIBS)
  droidcam-cli: src/droidcam-cli.c $(SRC)
--	$(GXX) $(CC) $^ $(JPEG) $(LIBAV) $(LIBS) -o droidcam-cli
-+	$(GXX) $(CC) $(LDFLAGS) $(CFLAGS) $^ $(JPEG) $(LIBAV) $(LIBS) -o droidcam-cli
+-	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
  
+ droidcam: LDLIBS += $(GTK) $(JPEG) $(LIBAV) $(LIBS)
  droidcam: src/droidcam.c src/resources.c $(SRC)
--	$(GXX) $(CC) $^ $(GTK) $(JPEG) $(LIBAV) $(LIBS) -o droidcam
-+	$(GXX) $(CC) $(LDFLAGS) $(CFLAGS) $^ $(GTK) $(JPEG) $(LIBAV) $(LIBS) -o droidcam
+-	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
++	$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
  
  clean:
- 	rm droidcam || true
+ 	rm -f droidcam


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: media-tv/droidcam/files/, media-tv/droidcam/
@ 2021-05-04  8:33 Andrew Ammerlaan
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Ammerlaan @ 2021-05-04  8:33 UTC (permalink / raw
  To: gentoo-commits

commit:     863b6671ca136cea9c8a2b728ce4939b59e28106
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue May  4 08:33:22 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue May  4 08:33:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=863b6671

media-tv/droidcam: version bump 1.7.3

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 media-tv/droidcam/Manifest                                    |  2 +-
 .../droidcam/{droidcam-1.7.2.ebuild => droidcam-1.7.3.ebuild} |  2 +-
 media-tv/droidcam/files/droidcam-makefile-fixes.patch         | 11 ++++-------
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/media-tv/droidcam/Manifest b/media-tv/droidcam/Manifest
index cd933296e..9d21ae1f8 100644
--- a/media-tv/droidcam/Manifest
+++ b/media-tv/droidcam/Manifest
@@ -1 +1 @@
-DIST droidcam-1.7.2.tar.gz 82690 BLAKE2B 3b7312f081dff747ccc9f8fab9a81bee079f697fa6bf8eb6982efa443a300751b9e8ebaa196950fc2c543e9abda3d9d7d26edc986cc916c36dcbccf9f6db0102 SHA512 0515760b3705abcb46acae5bbc05bba1d82416853c6438f776f6170e7469372d4d4236aae3500d409e572ae4e5289d3bd7416ed2729ea929e21146994c2de51c
+DIST droidcam-1.7.3.tar.gz 83146 BLAKE2B b79d210a7d6a3cee7322b373cd92b2c1a326dd9887dff1df752e9818f9e7ed88dfdfd4a33a22ccb39c601df81c4e9538b1efa8029a9ad56f39d400fc50bc746b SHA512 39d6947b66f1be7896c56aa01d471cbd025deaeb2d2359f9434e5ea91e4302f4c16ee31486bb04fab1dfc7f6d8b2de3f6800ead665b7b3d366b01b25297beaba

diff --git a/media-tv/droidcam/droidcam-1.7.2.ebuild b/media-tv/droidcam/droidcam-1.7.3.ebuild
similarity index 97%
rename from media-tv/droidcam/droidcam-1.7.2.ebuild
rename to media-tv/droidcam/droidcam-1.7.3.ebuild
index 69067567d..6d94b398a 100644
--- a/media-tv/droidcam/droidcam-1.7.2.ebuild
+++ b/media-tv/droidcam/droidcam-1.7.3.ebuild
@@ -134,7 +134,7 @@ pkg_postinst() {
 	linux-mod_pkg_postinst
 	readme.gentoo_print_elog
 
-	elog "Links to the Android/iPhone/iPad apps can be reached at"
+	elog "Links to the Android/iPhone/iPad apps can be found at"
 	elog "https://www.dev47apps.com/"
 }
 

diff --git a/media-tv/droidcam/files/droidcam-makefile-fixes.patch b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
index fb3c37b6d..c413d7edd 100644
--- a/media-tv/droidcam/files/droidcam-makefile-fixes.patch
+++ b/media-tv/droidcam/files/droidcam-makefile-fixes.patch
@@ -1,8 +1,8 @@
 diff --git a/Makefile b/Makefile
-index 54738f5..bcb5800 100644
+index b5f696c..bcb5800 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -6,25 +6,25 @@
+@@ -6,7 +6,7 @@
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  # Use at your own risk. See README file for more details.
  
@@ -11,11 +11,8 @@ index 54738f5..bcb5800 100644
  JPEG_INCLUDE ?= $(JPEG_DIR)/include
  JPEG_LIB ?= $(JPEG_DIR)/lib`getconf LONG_BIT`
  
- CXX   = g++
- CXXFLAGS = -std=c++11 -Wall -fPIC -no-pie
- GTK   = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
--#GTK  += `pkg-config --cflags --libs appindicator3-0.1`
-+GTK  += `pkg-config --cflags --libs appindicator3-0.1`
+@@ -16,15 +16,15 @@ GTK   = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
+ GTK  += `pkg-config --cflags --libs appindicator3-0.1`
  LIBAV = `pkg-config --libs --cflags libswscale libavutil`
  LIBS  =  -lspeex -lasound -lpthread -lm
 -JPEG  = -I$(JPEG_INCLUDE) $(JPEG_LIB)/libturbojpeg.a


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-04  8:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-22  8:45 [gentoo-commits] repo/proj/guru:master commit in: media-tv/droidcam/files/, media-tv/droidcam/ Andrew Ammerlaan
2020-04-22  8:45 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2020-07-29 11:22 Andrew Ammerlaan
2020-12-21 11:06 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-12-21 11:02 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-05 21:12 Andrew Ammerlaan
2021-05-04  8:33 Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox