File: rules

package info (click to toggle)
mpg321 0.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 876 kB
  • sloc: ansic: 7,038; sh: 767; makefile: 46
file content (29 lines) | stat: -rwxr-xr-x 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

export CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wall -Wunused -Wno-error=format-security -fcommon

CONFIGURE_FLAGS = --disable-mpg123-symlink
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_FLAGS += --enable-alsa=yes
else
CONFIGURE_FLAGS += --enable-alsa=no
endif

LDFLAGS += -Wl,-z,defs -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_install:
	# mandir here has DESTDIR prepended to it
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/mpg321 mandir=/usr/share/man