Name libroc0.4
Description real-time audio streaming over the network (shared library)
Version 0.4.0+dfsg-5
Package Base roc-toolkit
Homepage https://roc-streaming.org/
Maintainers ['Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>']
Contributors ['Dylan Aïssi <daissi@debian.org>']
Distro-repo https://salsa.debian.org/multimedia-team/roc-toolkit
Sources ['https://sources.debian.org/data/main/r/roc-toolkit/0.4.0+dfsg-5/debian/watch', 'https://sources.debian.org/src/roc-toolkit/0.4.0+dfsg-5/debian/patches/Don-t-strip-symbols.patch', 'https://sources.debian.org/src/roc-toolkit/0.4.0+dfsg-5/debian/patches/series']
Dependencies ['libc6', 'libopenfec1', 'libspeexdsp1', 'libstdc++6', 'libuv1t64']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'gengetopt', 'libcpputest-dev', 'libopenfec-dev [!sparc64]', 'libpulse-dev', 'libsndfile1-dev', 'libsox-dev', 'libspeexdsp-dev', 'libssl-dev', 'libuv1-dev', 'pkgconf', 'ragel', 'scons']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash bbadb0f807d6e51278698674032e4dd0e3639af02b13e5600f30efe2cd0fbaea
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

SCONS_BUILD_FLAGS = --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
                    --enable-tests \
                    --disable-libunwind

ifneq (,$(filter sparc64,$(DEB_HOST_ARCH)))
SCONS_BUILD_FLAGS += --disable-openfec
endif

%:
	dh $@

override_dh_auto_build:
	scons ${SCONS_BUILD_FLAGS}

override_dh_auto_test:
	scons ${SCONS_BUILD_FLAGS} test/roc_core

override_dh_auto_install:
	scons ${SCONS_BUILD_FLAGS} install DESTDIR=debian/tmp
	# Don't install the symlink "libroc.so.0" -> "libroc.so.0.X"
	# This symlink is undesirable since the soname is not "libroc.so.0"
	# but "libroc.so.0.X"; and usually versions 0.X break the API.
	find debian/tmp/ -name 'libroc.so.0' -delete -print