From 476753a688e6ee5059017b6e4401327eb15b5a7d Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Mon, 2 Aug 2021 21:40:59 +0200 Subject: [PATCH] Fix pkgconfig file for libtiff When using cmake/ninja, the pkgconfig file for libtiff has an empty Version field. Add a sed to cure that. --- general/graphlib/libtiff.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/general/graphlib/libtiff.xml b/general/graphlib/libtiff.xml index 9520e226d2..53ee56dbc9 100644 --- a/general/graphlib/libtiff.xml +++ b/general/graphlib/libtiff.xml @@ -119,7 +119,19 @@ ninja user: -ninja install +ninja install +sed -i /Version/s/\$/$(cat ../VERSION)/ /usr/lib/pkgconfig/libtiff-4.pc + + + + + Command Explanations + + + sed -i /Version/...: When building with cmake/ninja, + the Version field in the pkgconfig file is empty. This command allows to + fix that field. +