summaryrefslogtreecommitdiff
path: root/debian/rules
blob: b77a010afede80cf4b2555bec83ff9404dd077d2 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/make -f
# -*- makefile -*-

# Avoid overlinking and reduce library dependencies.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --parallel --with autoreconf

.PHONY: override_dh_autoreconf
override_dh_autoreconf:
	dh_autoreconf sh -- autogen.sh

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- \
	    --enable-nullout \
	    --enable-alsa \
	    --disable-oss \
	    --enable-pulse \
	    --disable-coreaudio \
	    --enable-gtk2 \
	    --enable-gtk3 \
	    --enable-vfs-curl \
	    --enable-lfm \
	    --disable-artwork \
	    --disable-artwork-network \
	    --enable-supereq \
	    --disable-sid \
	    --enable-mad \
	    --disable-ffap \
	    --disable-vtx \
	    --disable-adplug \
	    --enable-hotkeys \
	    --enable-vorbis \
	    --enable-ffmpeg \
	    --enable-flac \
	    --enable-sndfile \
	    --enable-wavpack \
	    --enable-cdda \
	    --disable-gme \
	    --enable-notify \
	    --enable-shellexec \
	    --disable-musepack \
	    --disable-wildmidi \
	    --disable-tta \
	    --disable-dca \
	    --disable-aac \
	    --disable-mms \
	    --disable-staticlink \
	    --disable-src \
	    --enable-m3u \
	    --disable-vfs-zip \
	    --disable-converter \
	    --disable-artwork-imlib2 \
	    --disable-dumb \
	    --disable-shn \
	    --disable-psf \
	    --enable-mono2stereo \
	    --enable-shellexecui \
	    --disable-alac \
	    --disable-wma \
	    --enable-pltbrowser \
	    --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

.PHONY: override_dh_compress
override_dh_compress:
	dh_compress -XChangeLog

.PHONY: override_dh_install
override_dh_install:
	-$(RM) debian/tmp/usr/lib/*/deadbeef/*.la
	-$(RM) debian/tmp/usr/lib/*/deadbeef/*.a
	-$(RM) debian/deadbeef/usr/lib/*/deadbeef/*.so.0*
	dh_install -XCOPYING.GPLv2 -XCOPYING.LGPLv2.1 --fail-missing

.PHONY: override_dh_installdocs
override_dh_installdocs:
	dh_installdocs -XREADME