Name libsphinxbase3t64
Description Speech recognition tool - shared library
Version 0.8+5prealpha+1-17build2
Package Base sphinxbase
Homepage https://cmusphinx.sourceforge.net/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Samuel Thibault <sthibault@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/sphinxbase/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libsphinxbase3t64/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/debug?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/fix-sphinx_lm_convert-manpage.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/git-doxygen?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/log_shifted_ignore?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/python3.10?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/spurious-link?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/swig4.2?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/test-log?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/sphinxbase/plain/debian/patches/utf-8?h=ubuntu/noble']
Dependencies ['libblas3 | libblas.so.3', 'libc6', 'liblapack3 | liblapack.so.3', 'libpulse0']
Optional-Dependencies []
Build-Dependencies ['dpkg-dev', 'debhelper-compat', 'bison', 'pkgconf', 'libpulse-dev', 'libblas-dev', 'liblapack-dev', 'doxygen', 'python3-all-dev', 'libpython3-all-dev', 'dh-sequence-python3', 'swig', 'libjs-jquery', 'strace [linux-any]', 'ltrace [amd64 i386 s390x powerpc ppc64]']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 80c184d04290cd1a55d6abac7c4b9f15bbf736e43a410857f992eba16b005a4c
#!/usr/bin/make -f

# Taken from the pygobject packaging.
PY3VERS := $(shell py3versions -r)

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_MULTIARCH)
endif

%:
	dh $@

override_dh_auto_clean:
	set -e ; for pyver in $(PY3VERS); do \
	  rm -fr build-$$pyver ; \
	done
	dh_auto_clean

override_dh_auto_configure:
	set -e ; for pyver in $(PY3VERS); do \
	  mkdir -p build-$$pyver; \
	  PYTHON=/usr/bin/$$pyver dh_auto_configure -B build-$$pyver -- --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) ; \
	done

override_dh_auto_build:
	set -e ; for pyver in $(PY3VERS); do \
	  dh_auto_build -B build-$$pyver ; \
	done

ifeq (big,$(shell dpkg-architecture -qDEB_BUILD_ARCH_ENDIAN))
override_dh_auto_test:
	echo "Big-endian archs do not work yet and create hundreds of gigabytes of log, don't even try for now."
	false
else
override_dh_auto_test:
	set -e ; for pyver in $(PY3VERS); do \
	  dh_auto_test -B build-$$pyver ; \
	done
endif

override_dh_auto_install:
	set -e ; for pyver in $(PY3VERS); do \
	  dh_auto_install -B build-$$pyver ; \
	done
	for file in $$(find debian/tmp/usr/lib/ -name "*.la" -o -name _sphinxbase.a); do \
		rm $$file ; \
	done
	# sphinx_config.h is installed alongside the other header files. Make sure
	# it can be found.
	# https://bugs.launchpad.net/ubuntu/+bug/1648877
	sed --in-place s#sphinx_config\.h#sphinxbase/sphinx_config.h# \
		debian/tmp/usr/include/*/sphinxbase/ad.h \
		debian/tmp/usr/include/*/sphinxbase/prim_type.h \
		debian/tmp/usr/include/*/sphinxbase/sbthread.h