summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-09-17 10:33:24 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-09-17 10:35:13 +0200
commitadfaa9da31cfbfbcd89a3bc97347526787b5c01e (patch)
tree8a902775b6b341ef6b410f015332085057ed18b0 /media-video
parentwww-servers/tornado: Stabilize 6.2 arm64, #870325 (diff)
downloadgentoo-adfaa9da31cfbfbcd89a3bc97347526787b5c01e.tar.gz
gentoo-adfaa9da31cfbfbcd89a3bc97347526787b5c01e.tar.bz2
gentoo-adfaa9da31cfbfbcd89a3bc97347526787b5c01e.zip
media-video/droidcam: use pkg-config to find libjpeg-turbo
Closes: https://bugs.gentoo.org/870607 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/droidcam/droidcam-1.8.2-r1.ebuild (renamed from media-video/droidcam/droidcam-1.8.2.ebuild)2
-rw-r--r--media-video/droidcam/files/droidcam-1.8.2-makefile-fixes.patch (renamed from media-video/droidcam/files/droidcam-makefile-fixes.patch)15
2 files changed, 8 insertions, 9 deletions
diff --git a/media-video/droidcam/droidcam-1.8.2.ebuild b/media-video/droidcam/droidcam-1.8.2-r1.ebuild
index 5f32002d8d66..53150f3a9c28 100644
--- a/media-video/droidcam/droidcam-1.8.2.ebuild
+++ b/media-video/droidcam/droidcam-1.8.2-r1.ebuild
@@ -46,7 +46,7 @@ MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
CONFIG_CHECK="~SND_ALOOP VIDEO_DEV MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
ERROR_SND_ALOOP="CONFIG_SND_ALOOP is optionally required for audio support"
-PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
+PATCHES="${FILESDIR}/${PN}-1.8.2-makefile-fixes.patch"
src_prepare() {
if ! use gtk; then
diff --git a/media-video/droidcam/files/droidcam-makefile-fixes.patch b/media-video/droidcam/files/droidcam-1.8.2-makefile-fixes.patch
index 9c6ad4c45c09..56b7589b2d12 100644
--- a/media-video/droidcam/files/droidcam-makefile-fixes.patch
+++ b/media-video/droidcam/files/droidcam-1.8.2-makefile-fixes.patch
@@ -1,16 +1,15 @@
diff --git a/Makefile b/Makefile
-index 7be3c15..8af0953 100644
+index 7be3c15..85ef623 100644
--- a/Makefile
+++ b/Makefile
-@@ -6,25 +6,23 @@
+@@ -6,25 +6,19 @@
# 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`
-
+-JPEG_INCLUDE ?= $(JPEG_DIR)/include
+-JPEG_LIB ?= $(JPEG_DIR)/lib`getconf LONG_BIT`
+-
-CC = gcc
-CFLAGS = -Wall -O2
GTK = `pkg-config --libs --cflags gtk+-3.0` `pkg-config --libs x11`
@@ -18,7 +17,7 @@ index 7be3c15..8af0953 100644
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
++JPEG = `pkg-config --libs --cflags libturbojpeg`
SRC = src/connection.c src/settings.c src/decoder*.c src/av.c src/usb.c src/queue.c
-USBMUXD = -lusbmuxd
+USBMUXD = -lusbmuxd-2.0
@@ -33,7 +32,7 @@ index 7be3c15..8af0953 100644
package: clean all
zip "droidcam_$(RELEASE).zip" \
LICENSE README* icon2.png \
-@@ -40,11 +38,11 @@ gresource: .gresource.xml icon2.png
+@@ -40,11 +34,11 @@ gresource: .gresource.xml icon2.png
droidcam-cli: LDLIBS += $(JPEG) $(LIBAV) $(LIBS)
droidcam-cli: src/droidcam-cli.c $(SRC)