| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/architecture.mk |
| 7 |
|
| 8 |
export CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wall -Wunused -Wno-error=format-security -fcommon |
| 9 |
|
| 10 |
CONFIGURE_FLAGS = --disable-mpg123-symlink |
| 11 |
ifeq ($(DEB_HOST_ARCH_OS),linux) |
| 12 |
CONFIGURE_FLAGS += --enable-alsa=yes |
| 13 |
else |
| 14 |
CONFIGURE_FLAGS += --enable-alsa=no |
| 15 |
endif |
| 16 |
|
| 17 |
LDFLAGS += -Wl,-z,defs -Wl,--as-needed |
| 18 |
|
| 19 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 20 |
|
| 21 |
%: |
| 22 |
dh $@ |
| 23 |
|
| 24 |
override_dh_auto_configure: |
| 25 |
dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
# mandir here has DESTDIR prepended to it |
| 29 |
dh_auto_install -- DESTDIR=$(CURDIR)/debian/mpg321 mandir=/usr/share/man |