50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
|
From 5558eb0633a48325970baa647b9e8f4ac9eb4520 Mon Sep 17 00:00:00 2001
|
||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||
|
Date: Sun, 10 Jun 2018 20:33:12 +0100
|
||
|
Subject: [PATCH 3/4] docs: Suggest using PKG_CHECK_VAR to substitute plugindir
|
||
|
and filterdir.
|
||
|
|
||
|
(cherry picked from commit fcd05424c819e433543030373a7f4136b511ddc6)
|
||
|
---
|
||
|
docs/nbdkit-filter.pod | 6 ++++++
|
||
|
docs/nbdkit-plugin.pod | 6 ++++++
|
||
|
2 files changed, 12 insertions(+)
|
||
|
|
||
|
diff --git a/docs/nbdkit-filter.pod b/docs/nbdkit-filter.pod
|
||
|
index 7105a1d..2e23a8e 100644
|
||
|
--- a/docs/nbdkit-filter.pod
|
||
|
+++ b/docs/nbdkit-filter.pod
|
||
|
@@ -463,6 +463,12 @@ You can also run pkg-config/pkgconf directly, for example:
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
+You can also substitute the filterdir variable by doing:
|
||
|
+
|
||
|
+ PKG_CHECK_VAR([NBDKIT_FILTERDIR], [nbdkit], [filterdir])
|
||
|
+
|
||
|
+which defines C<$(NBDKIT_FILTERDIR)> in automake-generated Makefiles.
|
||
|
+
|
||
|
=head1 SEE ALSO
|
||
|
|
||
|
L<nbdkit(1)>,
|
||
|
diff --git a/docs/nbdkit-plugin.pod b/docs/nbdkit-plugin.pod
|
||
|
index 695e588..a393be9 100644
|
||
|
--- a/docs/nbdkit-plugin.pod
|
||
|
+++ b/docs/nbdkit-plugin.pod
|
||
|
@@ -668,6 +668,12 @@ You can also run pkg-config/pkgconf directly, for example:
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
+You can also substitute the plugindir variable by doing:
|
||
|
+
|
||
|
+ PKG_CHECK_VAR([NBDKIT_PLUGINDIR], [nbdkit], [plugindir])
|
||
|
+
|
||
|
+which defines C<$(NBDKIT_PLUGINDIR)> in automake-generated Makefiles.
|
||
|
+
|
||
|
=head1 WRITING PLUGINS IN OTHER PROGRAMMING LANGUAGES
|
||
|
|
||
|
You can also write nbdkit plugins in OCaml, Perl, Python or Ruby.
|
||
|
--
|
||
|
2.16.2
|
||
|
|