File: rules

package info (click to toggle)
mpd 0.13.2-3lenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,036 kB
  • ctags: 2,558
  • sloc: ansic: 24,641; sh: 8,950; makefile: 175
file content (28 lines) | stat: -rwxr-xr-x 654 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
#!/usr/bin/make -f
ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
WITH_TREMOR=
ifeq ($(ARCH), arm)
WITH_TREMOR=--with-tremor
endif
ifeq ($(ARCH), armel)
WITH_TREMOR=--with-tremor
endif
ifeq ($(ARCH), armeb)
WITH_TREMOR=--with-tremor
endif

DEB_BUILDDIR := debian/build
DEB_CONFIGURE_USER_FLAGS += --enable-ao $(WITH_TREMOR)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_FIXPERMS_EXCLUDE:=var/*
DEB_DH_INSTALLINIT_ARGS:=-n

binary-post-install/mpd::
	rm -f debian/mpd/usr/share/doc/mpd/mpdconf.example.gz

clean::
	rm -rf $(DEB_BUILDDIR)
	-make distclean