summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 08b7e65a6c25a183e4f390bce972208999183419 (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
80
81
82
83
#!/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 \
	    --enable-oss \
	    --enable-pulse \
	    --disable-coreaudio \
	    --enable-gtk2 \
	    --enable-gtk3 \
	    --enable-vfs-curl \
	    --enable-lfm \
	    --enable-artwork \
	    --disable-artwork-network \
	    --enable-supereq \
	    --disable-sid \
	    --enable-mad \
	    --disable-ffap \
	    --enable-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 \
	    --enable-tta \
	    --disable-dca \
	    --enable-aac \
	    --disable-mms \
	    --disable-staticlink \
	    --enable-src \
	    --enable-m3u \
	    --disable-vfs-zip \
	    --disable-converter \
	    --enable-artwork-imlib2 \
	    --disable-dumb \
	    --disable-shn \
	    --disable-psf \
	    --enable-mono2stereo \
	    --enable-shellexecui \
	    --enable-alac \
	    --disable-wma \
	    --enable-pltbrowser \
	    --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

.PHONY: override_dh_compress
override_dh_compress:
	dh_compress -XChangeLog

.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --dbg-package=deadbeef-dbg

.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