diff options
| -rw-r--r-- | meta/recipes-support/p11-kit/p11-kit_0.23.18.1.bb | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/meta/recipes-support/p11-kit/p11-kit_0.23.18.1.bb b/meta/recipes-support/p11-kit/p11-kit_0.23.18.1.bb index 9193a06ea8..03c8158ae6 100644 --- a/meta/recipes-support/p11-kit/p11-kit_0.23.18.1.bb +++ b/meta/recipes-support/p11-kit/p11-kit_0.23.18.1.bb | |||
| @@ -2,38 +2,20 @@ SUMMARY = "Provides a way to load and enumerate PKCS#11 modules" | |||
| 2 | LICENSE = "BSD-3-Clause" | 2 | LICENSE = "BSD-3-Clause" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=02933887f609807fbb57aa4237d14a50" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=02933887f609807fbb57aa4237d14a50" |
| 4 | 4 | ||
| 5 | inherit autotools gettext pkgconfig gtk-doc | 5 | inherit meson gettext pkgconfig gtk-doc |
| 6 | 6 | ||
| 7 | DEPENDS = "libtasn1 libffi" | 7 | DEPENDS = "libtasn1 libtasn1-native libffi" |
| 8 | |||
| 9 | DEPENDS_append = "${@' glib-2.0' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}" | ||
| 8 | 10 | ||
| 9 | SRC_URI = "git://github.com/p11-glue/p11-kit" | 11 | SRC_URI = "git://github.com/p11-glue/p11-kit" |
| 10 | SRCREV = "b0ebe7555c291808db29377ba79cb8326301f0a6" | 12 | SRCREV = "b0ebe7555c291808db29377ba79cb8326301f0a6" |
| 11 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 12 | 14 | ||
| 13 | AUTOTOOLS_AUXDIR = "${S}/build/litter" | ||
| 14 | |||
| 15 | PACKAGECONFIG ??= "" | 15 | PACKAGECONFIG ??= "" |
| 16 | PACKAGECONFIG[trust-paths] = "--with-trust-paths=/etc/ssl/certs/ca-certificates.crt,--without-trust-paths,,ca-certificates" | 16 | PACKAGECONFIG[trust-paths] = "-Dtrust_paths=/etc/ssl/certs/ca-certificates.crt,,,ca-certificates" |
| 17 | 17 | ||
| 18 | # This recipe does not use the standard gtk-doc m4 macros, and so the ./configure flags | 18 | GTKDOC_MESON_OPTION = 'gtk_doc' |
| 19 | # that control gtk-doc build are non-standard | ||
| 20 | EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GTKDOC_ENABLED', 'True', '--enable-doc --enable-doc-html --disable-doc-pdf', \ | ||
| 21 | '--disable-doc', d)} " | ||
| 22 | |||
| 23 | # When building native recipes, disable gtkdoc, as it is not necessary, | ||
| 24 | # pulls in additional dependencies, and makes build times longer | ||
| 25 | EXTRA_OECONF_prepend_class-native = "--disable-doc " | ||
| 26 | EXTRA_OECONF_prepend_class-nativesdk = "--disable-doc " | ||
| 27 | |||
| 28 | UNKNOWN_CONFIGURE_WHITELIST_append = " --enable-gtk-doc-html --disable-gtk-doc-pdf --enable-gtk-doc --disable-gtk-doc" | ||
| 29 | |||
| 30 | # p11-kit relies on these two being copied from source tree | ||
| 31 | # instead of being regenerated by gtkdoc-scan, but doesn't setup | ||
| 32 | # dependencies correctly when there is a parallel build. Let's pre-copy | ||
| 33 | # them instead. | ||
| 34 | do_compile_prepend () { | ||
| 35 | cp ${S}/doc/manual/p11-kit-overrides.txt ${S}/doc/manual/p11-kit-sections.txt ${B}/doc/manual/ | ||
| 36 | } | ||
| 37 | 19 | ||
| 38 | FILES_${PN} += " \ | 20 | FILES_${PN} += " \ |
| 39 | ${libdir}/p11-kit-proxy.so \ | 21 | ${libdir}/p11-kit-proxy.so \ |
