File: rules

package info (click to toggle)
esound 0.2.41-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,492 kB
  • ctags: 807
  • sloc: ansic: 10,605; sh: 9,254; makefile: 186; csh: 86
file content (31 lines) | stat: -rwxr-xr-x 1,004 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

DEB_CONFIGURE_EXTRA_FLAGS += --enable-ipv6 --with-libwrap

DEB_DH_MAKESHLIBS_ARGS_ALL := -V "libesd0 (>= 0.2.35)"
DEB_DH_MAKESHLIBS_ARGS_esound-clients := --no-act

ifeq ($(DEB_HOST_ARCH_OS),linux)
    DEB_CONFIGURE_EXTRA_FLAGS += --enable-alsa --disable-oss
else
    DEB_CONFIGURE_EXTRA_FLAGS += --enable-oss --disable-alsa
endif

ifeq ($(DEB_HOST_ARCH),hurd-i386)
    DEB_CONFIGURE_EXTRA_FLAGS += --disable-local-sound
endif

DEB_CONFIGURE_SYSCONFDIR := /etc/esound

binary-post-install/%::
	if [ $* != esound-common ]; then \
		rm -rf debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg) ;\
		ln -s esound-common debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg) ;\
	fi