From d374247e23548ab7afba1b3f944d2152457d48b5 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Mon, 11 May 2020 00:13:15 +0200 Subject: openpgp-ffi, ffi: Fix pkgconfig files. - `prefix` in theses files must be the installaton prefix. - Fixes #502. --- ffi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffi') diff --git a/ffi/Makefile b/ffi/Makefile index dde7af48..f35c2238 100644 --- a/ffi/Makefile +++ b/ffi/Makefile @@ -31,10 +31,10 @@ export PREFIX export DESTDIR # $(1) = install dir -# $(2) = whether to set libdir to $(1) (empty string = false) +# $(2) = whether to set libdir and prefix to $(1) (empty string = false) sequoia_pc = \ sed -e 's|VERSION|$(VERSION)|g' \ - -e 's|PREFIX|$(shell pwd)|g' \ + $(if $(2),-e 's|PREFIX|$(shell pwd)|g',-e's|PREFIX|$(PREFIX)|g') \ $(if $(2),-e 's|libdir=.*|libdir=$(1)|g') \ sequoia.pc.in \ >$(1)/sequoia.pc -- cgit v1.2.3