| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
include /usr/share/dpkg/architecture.mk |
| 6 |
|
| 7 |
WRAPPER_TARGETS:=mpg123-oss mpg123-jack mpg123-openal mpg123-portaudio |
| 8 |
ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 9 |
WRAPPER_TARGETS += mpg123-alsa mpg123-pulse |
| 10 |
endif |
| 11 |
|
| 12 |
CONF_i386:=--with-cpu=x86_dither |
| 13 |
CONF_armhf:=--with-cpu=arm_fpu |
| 14 |
CONF_arm64:=--with-cpu=aarch64 |
| 15 |
|
| 16 |
mpg123-%: debian/mpg123-wrapper.in |
| 17 |
dh_testdir |
| 18 |
o=`echo $@ | sed -e 's/^mpg123-\([^-]\+\).*/\1/'`; \ |
| 19 |
sed -e "s/@OUTPUT@/$$o/g" < debian/mpg123-wrapper.in > $@ |
| 20 |
|
| 21 |
override_dh_auto_configure: |
| 22 |
dh_auto_configure -- \ |
| 23 |
--enable-static=no \ |
| 24 |
--enable-shared \ |
| 25 |
--enable-lfs-alias \ |
| 26 |
--includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) \ |
| 27 |
$(CONF_$(DEB_HOST_ARCH)) |
| 28 |
|
| 29 |
execute_after_dh_auto_clean: |
| 30 |
rm -f $(WRAPPER_TARGETS) |
| 31 |
|
| 32 |
execute_after_dh_auto_install: $(WRAPPER_TARGETS) |
| 33 |
install $(WRAPPER_TARGETS) $(CURDIR)/debian/tmp/usr/bin/ |
| 34 |
for i in $(WRAPPER_TARGETS); do \ |
| 35 |
install debian/mpg123-wrapper.1 \ |
| 36 |
$(CURDIR)/debian/tmp/usr/share/man/man1/$$i.1; \ |
| 37 |
done |
| 38 |
|
| 39 |
override_dh_installchangelogs: |
| 40 |
dh_installchangelogs -pmpg123 NEWS |
| 41 |
dh_installchangelogs --remaining-packages |
| 42 |
|
| 43 |
%: |
| 44 |
dh $@ |