Name mpg123
Description MPEG layer 1/2/3 audio player
Version 1.32.5-1ubuntu1.1
Package Base
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/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', 'https://git.launchpad.net/ubuntu/+source/mpg123/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libasound2t64', 'libaudio2', 'libc6', 'libjack-jackd2-0', 'libmpg123-0t64', 'libopenal1', 'libout123-0t64', 'libportaudio2', 'libpulse0', 'libsyn123-0t64']
Optional-Dependencies ['alsa-utils', 'jackd', 'nas', 'oss-compat', 'oss4-base', 'pulseaudio']
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 6135049aa3f6639c3151dc4627c43a855bf874daa7254b0466137605acf2d116
#!/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 $@