File: rules

package info (click to toggle)
ices2 2.0.1-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 2,100 kB
  • ctags: 817
  • sloc: sh: 8,401; ansic: 6,448; xml: 121; makefile: 108
file content (42 lines) | stat: -rwxr-xr-x 1,722 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
36
37
38
39
40
41
42
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003 Keegan Quinn <ice@thebasement.org>
# Copyright © 2004-2007 Jonas Smedegaard <dr@jones.dk>

DEB_AUTO_UPDATE_LIBTOOL = pre
DEB_AUTO_UPDATE_ACLOCAL = 1.10
DEB_AUTO_UPDATE_AUTOMAKE = 1.10
DEB_AUTO_UPDATE_AUTOCONF = 2.60

ifneq ($(DEB_MAINTAINER_BUILD),)
  # Maintainer mode build, enable optional operations
  DEB_COPYRIGHT_CHECK_STRICT = yes
  DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
endif

# 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

DEB_UPSTREAM_PACKAGE = ices
DEB_UPSTREAM_URL = http://downloads.us.xiph.org/releases/ices
DEB_UPSTREAM_TARBALL_MD5 = 0d95ac34d59fed337028d5e7771076d8

DEB_CONFIGURE_EXTRA_FLAGS = --program-transform-name="s/ices$$/ices2/"
DEB_INSTALL_EXAMPLES_ices2 = conf/*.xml
DEB_INSTALL_MANPAGES_ices2 = debian/ices2.1
DEB_COMPRESS_EXCLUDE = .xml

# Debian places documentation below /usr/share/doc
binary-post-install/ices2::
	mv debian/ices2/usr/share/ices debian/ices2/usr/share/doc/ices2/html

# Upstream requirements
#  Icecast is GPL so needs gnutls variant of CURL
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libogg-dev (>> 1.0.0), libvorbis-dev (>> 1.0.0), libshout3-dev (>> 2.0), libxml2-dev, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], pkg-config

# 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\)) *,* */, /g' -e 's/^ *, *//' -e 's/ *, *$$//')