Name libcodec2-1.2
Description Codec2 runtime library
Version 1.2.0-2build1
Package Base codec2
Homepage http://rowetel.com/codec2.html
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/codec2/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/cmake-shared-and-static-targets?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/debian-source-cml?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/debian-source-package?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/fsk-fft-api?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/install-executables?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/lpcnet-check-c-compiler-flag?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/optional-octave-tests?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/codec2/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libcodec2-1.2/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['clang-format [amd64]', 'cmake', 'debhelper-compat', 'libsamplerate0-dev', 'libspeexdsp-dev', 'octave-dev [amd64]', 'octave-signal [amd64]', 'sox [amd64]']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 675a16e7260cc6773a325b9688c29f29fb7089f5780bc5360154ed6136d6331b
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
  RUN_UNITTEST := TRUE
else
  RUN_UNITTEST := FALSE
endif

%:
	dh $@ --builddirectory=Build --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure --builddirectory=Build/lpcnet-build --sourcedirectory=LPCNet -- \
	-DCMAKE_VERBOSE_MAKEFILE=ON -DDISABLE_CPU_OPTIMIZATION=ON \
	-DLPCNET_191005_DIR=$(CURDIR)/lpcnet191005
	cmake --build Build/lpcnet-build
	dh_auto_configure --builddirectory=Build -- \
	-DLPCNET_BUILD_DIR=$(CURDIR)/Build/lpcnet-build \
	-DBUILD_STATIC_LIBS=ON \
	-DINSTALL_EXAMPLES=TRUE \
	-DUNITTEST=$(RUN_UNITTEST) \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo

override_dh_auto_build:
	echo "lpcnet-build"
	cmake --build Build/lpcnet-build
	echo "codec2 build to use lpcnet"
	cmake --build Build

# Some tests are known to fail while building packages:
# - not using resource-intensive valgrind for leakage tests
# - some octave based tests fail without a full graphical environment
# - HF fading files require the octave-signal package
# - some tests use sox
override_dh_auto_test:
	- dh_auto_test