From 09584a3879cc794698f02fc7f27792f7f0dd051d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Dec 2018 16:40:25 +0000 Subject: media-tv/v4l-utils : fix undefined reference to symbol 'jpeg_set_defaults@@LIBJPEG_6.2' --- .../libv4l/files/sdlcam-only-build-if-using-jpeg.patch | 14 ++++++++++++++ media-libs/libv4l/libv4l-1.16.3-r1337.ebuild | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 media-libs/libv4l/files/sdlcam-only-build-if-using-jpeg.patch (limited to 'media-libs/libv4l') diff --git a/media-libs/libv4l/files/sdlcam-only-build-if-using-jpeg.patch b/media-libs/libv4l/files/sdlcam-only-build-if-using-jpeg.patch new file mode 100644 index 00000000..6a429a44 --- /dev/null +++ b/media-libs/libv4l/files/sdlcam-only-build-if-using-jpeg.patch @@ -0,0 +1,14 @@ +diff -Nur a/contrib/test/Makefile.am b/contrib/test/Makefile.am +--- a/contrib/test/Makefile.am 2017-12-27 13:51:17.000000000 +0000 ++++ b/contrib/test/Makefile.am 2018-12-30 16:35:57.823533861 +0000 +@@ -17,8 +17,10 @@ + endif + + if HAVE_SDL ++if HAVE_JPEG + noinst_PROGRAMS += sdlcam + endif ++endif + + driver_test_SOURCES = driver-test.c + driver_test_LDADD = ../../utils/libv4l2util/libv4l2util.la diff --git a/media-libs/libv4l/libv4l-1.16.3-r1337.ebuild b/media-libs/libv4l/libv4l-1.16.3-r1337.ebuild index 5bfea504..1b956928 100644 --- a/media-libs/libv4l/libv4l-1.16.3-r1337.ebuild +++ b/media-libs/libv4l/libv4l-1.16.3-r1337.ebuild @@ -28,6 +28,8 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MY_P} +PATCHES=( "${FILESDIR}/sdlcam-only-build-if-using-jpeg.patch" ) + pkg_setup() { CONFIG_CHECK="~SHMEM" linux-info_pkg_setup -- cgit v1.2.3