summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/jq/jq_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/jq/jq_git.bb')
-rw-r--r--meta-oe/recipes-devtools/jq/jq_git.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta-oe/recipes-devtools/jq/jq_git.bb b/meta-oe/recipes-devtools/jq/jq_git.bb
index c6634cd300..4fa98aa44f 100644
--- a/meta-oe/recipes-devtools/jq/jq_git.bb
+++ b/meta-oe/recipes-devtools/jq/jq_git.bb
@@ -24,10 +24,8 @@ PACKAGECONFIG ?= "oniguruma"
24PACKAGECONFIG[docs] = "--enable-docs,--disable-docs,ruby-native" 24PACKAGECONFIG[docs] = "--enable-docs,--disable-docs,ruby-native"
25PACKAGECONFIG[maintainer-mode] = "--enable-maintainer-mode,--disable-maintainer-mode,flex-native bison-native" 25PACKAGECONFIG[maintainer-mode] = "--enable-maintainer-mode,--disable-maintainer-mode,flex-native bison-native"
26PACKAGECONFIG[oniguruma] = "--with-oniguruma,--without-oniguruma,onig" 26PACKAGECONFIG[oniguruma] = "--with-oniguruma,--without-oniguruma,onig"
27 27# enable if you want ptest running under valgrind
28EXTRA_OECONF += " \ 28PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind"
29 --disable-valgrind \
30"
31 29
32do_install_ptest() { 30do_install_ptest() {
33 cp -rf ${B}/tests ${D}${PTEST_PATH} 31 cp -rf ${B}/tests ${D}${PTEST_PATH}
@@ -35,6 +33,11 @@ do_install_ptest() {
35 # libjq.so.* is packaged in the main jq component, so remove it from ptest 33 # libjq.so.* is packaged in the main jq component, so remove it from ptest
36 rm -f ${D}${PTEST_PATH}/.libs/libjq.so.* 34 rm -f ${D}${PTEST_PATH}/.libs/libjq.so.*
37 ln -sf ${bindir}/jq ${D}${PTEST_PATH} 35 ln -sf ${bindir}/jq ${D}${PTEST_PATH}
36 if [ "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', 'true', 'false', d)}" = "false" ]; then
37 sed -i 's:#export NO_VALGRIND=1:export NO_VALGRIND=1:g' ${D}${PTEST_PATH}/run-ptest
38 fi
39 # handle multilib
40 sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest
38} 41}
39 42
40BBCLASSEXTEND = "native" 43BBCLASSEXTEND = "native"