mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
media-video/droidcam: use pkg-config to find libjpeg-turbo
Closes: https://bugs.gentoo.org/870607 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
+1
-1
@@ -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
|
||||
+7
-8
@@ -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)
|
||||
Reference in New Issue
Block a user