Name libsyn123-0t64
Description MPEG layer 1/2/3 audio decoder (libsyn123 shared library)
Version 1.32.5-1ubuntu1.1
Package Base mpg123
Homepage http://mpg123.org/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors [' Reinhard Tartler <siretart@tauware.de>', 'Miguel A. Colón Vélez <debian.micove@gmail.com>', 'Sebastian Ramacher <sramacher@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/mpg123/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libsyn123-0t64/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/mpg123/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/mpg123/plain/debian/patches/0001-Disable-function-mpg123_noise.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/mpg123/plain/debian/patches/series?h=ubuntu/noble']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'libasound2-dev [linux-any]', 'libaudio-dev', 'libjack-dev', 'libltdl-dev', 'libopenal-dev', 'libpulse-dev [!hurd-i386]', 'pkgconf', 'portaudio19-dev']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash d2637169b00db0851047c3c9600ea89e999bbf41be3d4c7ba911ef5d8e938ad4
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

WRAPPER_TARGETS:=mpg123-oss mpg123-nas mpg123-jack mpg123-openal mpg123-portaudio
ifeq ($(DEB_HOST_ARCH_OS),linux)
	WRAPPER_TARGETS += mpg123-alsa
endif
ifneq ($(DEB_HOST_ARCH_OS),hurd)
	WRAPPER_TARGETS += mpg123-pulse
endif

CONF_i386:=--with-cpu=x86_dither
CONF_arm:=--with-cpu=generic_fpu

mpg123-%: debian/mpg123-wrapper.in
	dh_testdir
	o=`echo $@ | sed -e 's/^mpg123-\([^-]\+\).*/\1/'`; \
	sed -e "s/@OUTPUT@/$$o/g" < debian/mpg123-wrapper.in > $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-static=no \
		--enable-shared \
		--enable-lfs-alias \
		--includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) \
		$(CONF_$(DEB_HOST_ARCH_CPU))

override_dh_auto_clean:
	dh_auto_clean
	rm -f $(WRAPPER_TARGETS)

override_dh_auto_install: $(WRAPPER_TARGETS)
	dh_auto_install

	mv $(CURDIR)/debian/tmp/usr/bin/mpg123 \
	   $(CURDIR)/debian/tmp/usr/bin/mpg123.bin
	mv $(CURDIR)/debian/tmp/usr/share/man/man1/mpg123.1 \
	   $(CURDIR)/debian/tmp/usr/share/man/man1/mpg123.bin.1
	install $(WRAPPER_TARGETS) $(CURDIR)/debian/tmp/usr/bin/
	for i in $(WRAPPER_TARGETS); do \
		install debian/mpg123-wrapper.1 \
		        $(CURDIR)/debian/tmp/usr/share/man/man1/$$i.1; \
	done

override_dh_installchangelogs:
	dh_installchangelogs -pmpg123 NEWS
	dh_installchangelogs --remaining-packages

%:
	dh $@