Commit d2ee31a0 authored by Gabor Karsay's avatar Gabor Karsay

Configure without ASR on architectures without libpocketsphinx

parent 66d35af7
Pipeline #62648 failed with stages
in 9 minutes and 59 seconds
......@@ -3,7 +3,19 @@
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Configure without ASR (Automatic Speech Recognition) on architectures
# that don't have libsphinxbase/libpocketsphinx.
# Recheck this list with next release.
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq (,$(filter mips mips64el mipsel s390x alpha ia64 powerpc sh4,$(DEB_HOST_ARCH)))
ASR = -Dasr=false
override_dh_install:
dh_install -Xlibgstparlasphinx.so \
-Xasr.page \
-Xasr-setup.page
else
ASR = -Dasr=true
endif
override_dh_autoreconf:
dh_autoreconf --as-needed
......@@ -11,7 +23,8 @@ override_dh_autoreconf:
override_dh_auto_configure:
dh_auto_configure -- -Dgtk-doc=true \
-Dglade=true \
-Dgir=true
-Dgir=true \
$(ASR)
override_dh_makeshlibs:
dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/libgstparlasphinx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment