debian swirl logo

Back to the packages list ezstream

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2007 Jonas Smedegaard 
# Copyright © 2007 Romain Beauxis 
# Copyright © 2005-2007 Guillaume Pellerin 

# See debian/README.cdbs-tweaks for info on local overrides
ifneq (,$(DEB_MAINTAINER_MODE))
  # Enable stuff not policy compliant (eg. unsuitable for build daemons)
  DEB_COPYRIGHT_CHECK_STRICT = yes
  DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
endif
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_URL = http://downloads.us.xiph.org/releases/ezstream
DEB_UPSTREAM_TARBALL_MD5 = a07941d52a4705f8d02c9c9ee6e05750

# Set examples dir:
DEB_CONFIGURE_EXTRA_FLAGS := --enable-examplesdir="\$${prefix}/share/doc/ezstream/examples"

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 {} \;
	# Remove language-specific extension
		[ ! -f debian/ezstream/usr/bin/ezstream-file.sh ] || mv debian/ezstream/usr/bin/ezstream-file.sh debian/ezstream/usr/bin/ezstream-file
		[ ! -f debian/ezstream/usr/bin/ezstream-file ] || sed -e 's#ezstream-file.sh#ezstream-file#g' \
										-i debian/ezstream/usr/bin/ezstream-file
		[ ! -f debian/ezstream/usr/share/man/man1/ezstream-file.sh.1 ] || mv debian/ezstream/usr/share/man/man1/ezstream-file.sh.1 \
										     debian/ezstream/usr/share/man/man1/ezstream-file.1
		[ ! -f debian/ezstream/usr/share/man/man1/ezstream-file.1 ] || sed -e 's#ezstream-file.sh#ezstream-file#g' \
										-i debian/ezstream/usr/share/man/man1/ezstream-file.1

# 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, autotools-dev

# 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/ *, *$$//')

Builds:

ezstream
easy media streaming client over icecast servers