From: Benjamin Bara <[email protected]>

Disable neon if the machine does not support it.

Signed-off-by: Benjamin Bara <[email protected]>
---
 meta/recipes-extended/ghostscript/ghostscript_10.01.2.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.01.2.bb 
b/meta/recipes-extended/ghostscript/ghostscript_10.01.2.bb
index 0ddf708f93..e149efe0f9 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_10.01.2.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_10.01.2.bb
@@ -56,6 +56,14 @@ prune_sources() {
 }
 do_unpack[postfuncs] += "prune_sources"
 
+do_configure:prepend () {
+    if ! [ "${@bb.utils.filter('TUNE_FEATURES', 'neon', d)}" ]; then
+        # unset the neon-specific variables if no neon available
+        sed -i 's/HAVE_NEON=".*"/HAVE_NEON=""/g' ${S}/configure.ac
+        sed -i 's/TESS_NEON=".*"/TESS_NEON=""/g' ${S}/configure.ac
+    fi
+}
+
 do_install:append () {
     mkdir -p ${D}${datadir}/ghostscript/${PV}/
     cp -r ${S}/Resource ${D}${datadir}/ghostscript/${PV}/
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187167): 
https://lists.openembedded.org/g/openembedded-core/message/187167
Mute This Topic: https://lists.openembedded.org/mt/101144716/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to