Name libsyn123-0t64
Description MPEG layer 1/2/3 audio decoder (libsyn123 shared library)
Version 1.32.10-1
Package Base mpg123
Homepage http://mpg123.org/
Maintainers ['Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>']
Contributors ['Miguel A. Colón Vélez <debian.micove@gmail.com>', 'Reinhard Tartler <siretart@tauware.de>', 'Sebastian Ramacher <sramacher@debian.org>']
Distro-repo https://salsa.debian.org/multimedia-team/mpg123
Sources ['https://sources.debian.org/data/main/m/mpg123/1.32.10-1/debian/watch', 'https://sources.debian.org/src/mpg123/1.32.10-1/debian/patches/0001-Disable-function-mpg123_noise.patch', 'https://sources.debian.org/src/mpg123/1.32.10-1/debian/patches/series']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['dpkg-dev', 'debhelper-compat', 'libasound2-dev [linux-any]', 'libaudio-dev', 'libjack-dev', 'libltdl-dev', 'libopenal-dev', 'libpulse-dev [!hurd-any]', 'pkgconf', 'portaudio19-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 2110b43bf925bc9eefb12a89802d0a30cd1cc743b93c9200914575ae34559699
#!/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_armel:=--with-cpu=arm_nofpu
CONF_armhf:=--with-cpu=arm_fpu
CONF_arm64:=--with-cpu=aarch64

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))

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 $@