shithub: openh264

Download patch

ref: 0c0199b994fd394cb0580254f2417b39935de3ba
parent: 43c5d26b800a378dc8c80827586b94a6704ce89c
author: Julien Isorce <[email protected]>
date: Tue Jan 28 09:08:02 EST 2020

meson: fix libdir in openh264.pc.in

Parse --libdir option passed to meson and reflect
that into the openh264.pc file.

Useful when libopenh264.so is installed in the
directory /usr/lib/x86_64-linux-gnu/. Otherwise
programs that link with openh264 might fail with
error: "/usr/bin/ld: cannot find -lopenh264"

--- a/meson.build
+++ b/meson.build
@@ -125,6 +125,7 @@
 foreach t : ['', '-static']
   pkgconf = configuration_data()
   pkgconf.set('prefix', join_paths(get_option('prefix')))
+  pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
   pkgconf.set('VERSION', meson.project_version())
   if t == '-static'
     do_install = false
--- a/openh264.pc.in
+++ b/openh264.pc.in
@@ -1,5 +1,5 @@
 prefix=@prefix@
-libdir=${prefix}/lib
+libdir=@libdir@
 includedir=${prefix}/include
 
 Name: OpenH264