File: rules

package info (click to toggle)
libmad 0.15.1b-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,796 kB
  • sloc: ansic: 8,930; sh: 8,295; asm: 545; makefile: 86; sed: 15
file content (39 lines) | stat: -rwxr-xr-x 1,030 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
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f
# makefile for libmad

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

include /usr/share/dpkg/default.mk

export AUTOMAKE = automake --foreign

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEB_CONFIGURE_EXTRA_FLAGS += --enable-profiling --enable-debugging
else
DEB_CONFIGURE_EXTRA_FLAGS += --disable-profiling --disable-debugging
endif

ifneq (,$(findstring $(DEB_HOST_ARCH),armel armhf))
DEB_CONFIGURE_EXTRA_FLAGS += --disable-aso
endif

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_clean:
	dh_clean
	cp -a debian/upstream/$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz.asc ..

override_dh_auto_configure:
	dh_auto_configure -- --enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_install:
	dh_install
	install -m644 -D debian/mad.pc debian/libmad0-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/mad.pc

override_dh_makeshlibs:
	dh_makeshlibs -plibmad0  -V 'libmad0 (>= 0.15.1b-3)'
	dh_makeshlibs -plibmad0-dev