From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SG8Xe-0004ht-SH for ptxdist@pengutronix.de; Fri, 06 Apr 2012 14:45:26 +0200 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.77) (envelope-from ) id 1SG8Xe-00024g-Q1 for ptxdist@pengutronix.de; Fri, 06 Apr 2012 14:45:26 +0200 From: Juergen Beisert Date: Fri, 6 Apr 2012 14:45:20 +0200 Message-Id: <1333716320-7923-6-git-send-email-jbe@pengutronix.de> In-Reply-To: <1333716320-7923-1-git-send-email-jbe@pengutronix.de> References: <1333716320-7923-1-git-send-email-jbe@pengutronix.de> Subject: [ptxdist] [PATCH 5/5] Add ices Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Juergen Beisert --- generic/etc/ices.conf | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ rules/ices.in | 33 +++++++++++++++++++++ rules/ices.make | 71 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 generic/etc/ices.conf create mode 100644 rules/ices.in create mode 100644 rules/ices.make diff --git a/generic/etc/ices.conf b/generic/etc/ices.conf new file mode 100644 index 0000000..b58f71a --- /dev/null +++ b/generic/etc/ices.conf @@ -0,0 +1,78 @@ + + + + + playlist.txt + + 1 + + builtin + + ices + + + + + + 0 + + 0 + + /tmp + + + + + + localhost + + 8000 + + letmein + + http + + + + /ices + + + Default stream + + Default genre + + Default description + + http://localhost/ + + 0 + + + 128 + + 0 + + + 2 + + diff --git a/rules/ices.in b/rules/ices.in new file mode 100644 index 0000000..966fe6c --- /dev/null +++ b/rules/ices.in @@ -0,0 +1,33 @@ +## SECTION=applications + +menuconfig ICES + tristate + prompt "ices " + select LIBVORBIS if ICES_VORBIS + select LIBXML2 + select PYTHON if ICES_PYTHON + select LAME if ICES_LAME + help + Ices is a tool sending an MP3 stream to an icecast server + +if ICES + +config ICES_VORBIS + bool + prompt "support VORBIS" + help + Enable support for VORBIS data format + +config ICES_PYTHON + bool + prompt "enable python support" + help + Enable python based scripting support + +config ICES_LAME + bool + prompt "enable lame support" + help + Enable MP3 lame support + +endif diff --git a/rules/ices.make b/rules/ices.make new file mode 100644 index 0000000..a5687ae --- /dev/null +++ b/rules/ices.make @@ -0,0 +1,71 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Juergen Beisert +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_ICES) += ices + +# +# Paths and names +# +ICES_VERSION := 0.4 +ICES_MD5 := d31450c4011561dae0229f071cb41cb6 +ICES := ices-$(ICES_VERSION) +ICES_SUFFIX := tar.gz +ICES_URL := http://downloads.us.xiph.org/releases/ices/$(ICES).$(ICES_SUFFIX) +ICES_SOURCE := $(SRCDIR)/$(ICES).$(ICES_SUFFIX) +ICES_DIR := $(BUILDDIR)/$(ICES) +ICES_LICENSE := GPLv2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +ICES_CONF_TOOL := autoconf +ICES_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-shared \ + --disable-static \ + --$(call ptx/wwo,PTXCONF_ICES_PYTHON)-python \ + --without-perl \ + --$(call ptx/wwo,PTXCONF_ICES_LAME)-lame \ + --$(call ptx/wwo,PTXCONF_ICES_VORBIS)-vorbis \ + --without-faad \ + --without-flac + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/ices.targetinstall: + @$(call targetinfo) + + @$(call install_init, ices) + @$(call install_fixup, ices,PRIORITY,optional) + @$(call install_fixup, ices,SECTION,base) + @$(call install_fixup, ices,AUTHOR,"Juergen Beisert ") + @$(call install_fixup, ices,DESCRIPTION,missing) + + @$(call install_alternative, ices, 0, 0, 0644, /etc/ices.conf) +ifdef PTXCONF_ICES_PYTHON + @$(call install_copy, ices, 0, 0, 0755, /etc/modules) + @$(call install_copy, ices, 0, 0, 0755, -, /etc/modules/ices.py.dist) +endif + @$(call install_copy, ices, 0, 0, 0755, -, /usr/bin/ices) + + @$(call install_finish, ices) + + @$(call touch) + +# vim: syntax=make -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de