File: rules

package info (click to toggle)
ezstream 0.5.3~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,176 kB
  • ctags: 439
  • sloc: ansic: 5,187; sh: 3,877; xml: 163; makefile: 73
file content (35 lines) | stat: -rwxr-xr-x 1,386 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
#!/usr/bin/make -f

# See debian/README.cdbs-tweaks for info on local overrides
include debian/cdbs/1/rules/upstream-tarball.mk
include debian/cdbs/1/rules/copyright-check.mk
include /usr/share/cdbs/1/class/autotools.mk
include debian/cdbs/1/rules/buildinfo.mk
include /usr/share/cdbs/1/rules/debhelper.mk

# In order to regenerate 'debian/control' :
#   DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
# Then check manually if everything's ok

DEB_UPSTREAM_URL = http://downloads.us.xiph.org/releases/ezstream
DEB_UPSTREAM_TARBALL_MD5 = a07941d52a4705f8d02c9c9ee6e05750

build/ezstream::
	docbook-to-man debian/ezstream.sgml > debian/ezstream.1

cleanbuilddir/ezstream::
	rm -f debian/ezstream.1

install/ezstream::
	find debian/ezstream -depth \( -name "COPYING" \) -exec rm -rf {} \;
	mv $(CURDIR)/debian/ezstream/usr/share/examples\
		$(CURDIR)/debian/ezstream/usr/share/doc/ezstream/examples

# Upstream requirements
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libogg-dev (>> 1.1.0), libshout3-dev (>= 2.0-9), libvorbis-dev (>> 1.0.1), libxml2-dev (>= 2.6.11)

# Packaging requirements
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), docbook-to-man

# Fix double cdbs build-dependencies
CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\|0.4.27-1\)) *,* */, /g' -e 's/^ *, *//' -e 's/ *, *$$//')