summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2020-05-11 00:13:15 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-06-08 11:40:10 +0200
commitd374247e23548ab7afba1b3f944d2152457d48b5 (patch)
tree85b37876d72329423742452c5f07c73717e6d6c2 /openpgp-ffi
parent4c7f664493ba35181eca0a6ff8630a4ddf2e01b2 (diff)
openpgp-ffi, ffi: Fix pkgconfig files.
- `prefix` in theses files must be the installaton prefix. - Fixes #502.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r--openpgp-ffi/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/Makefile b/openpgp-ffi/Makefile
index 8d01c41e..49511468 100644
--- a/openpgp-ffi/Makefile
+++ b/openpgp-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_openpgp_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-openpgp.pc.in \
> $(1)/sequoia-openpgp.pc