meson: find libjpeg via pkg-config
authorTim-Philipp Müller <tim@centricular.com>
Sat, 18 Aug 2018 20:01:52 +0000 (21:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 18 Aug 2018 20:01:52 +0000 (21:01 +0100)
This effectively (but optionally) requires libjpeg-turbo which
ships with a .pc file and is what pretty much everyone these days
uses anyway for libjpeg, so shouldn't be a problem hopefully.

https://bugzilla.gnome.org/show_bug.cgi?id=796947

REQUIREMENTS
ext/jpeg/meson.build

index 140e824..ee00920 100644 (file)
@@ -110,7 +110,7 @@ Notes:          This dependency is entirely optional, the video4linux plugin
 
 Package:        JPEG library
 Plugins:        jpeg (jpegenc, jpegdec, smokeenc, smokedec)
-DebianPackage:  libjpeg-dev
+DebianPackage:  libjpeg62-turbo-dev
 URL:            http://www.libjpeg-turbo.org/
                 or http://www.ijg.org/ for the IJG version
 
index 2222491..817bdbe 100644 (file)
@@ -4,7 +4,7 @@ jpeg_sources = [
   'gstjpegdec.c',
 ]
 
-jpeglib = cc.find_library('jpeg', required : get_option('jpeg'))
+jpeglib = dependency('libjpeg', required : get_option('jpeg'))
 
 if jpeglib.found()
   gstjpeg = library('gstjpeg',