From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] icecast: new package
Date: Sun, 7 Jul 2013 16:57:40 -0300 [thread overview]
Message-ID: <20130707195738.GA5413@localhost> (raw)
In-Reply-To: <20130707214249.2677a569@skate>
Hi Thomas.
On Sun, Jul 07, 2013 at 09:42:49PM +0200, Thomas Petazzoni wrote:
> Dear Ezequiel Garcia,
>
> On Sun, 7 Jul 2013 15:40:41 -0300, Ezequiel Garcia wrote:
> > Icecast is a streaming media server which currently supports Ogg
> > Vorbis and MP3 audio streams. It can be used to create an Internet
> > radio station or a privately running jukebox and many things in
> > between. It is very versatile in that new formats can be added
> > relatively easily and supports open standards for commuincation and
> > interaction.
> >
> > Icecast is distributed under the GNU GPL, version 2. A copy of this
> > license is included with this software in the COPYING file.
> >
> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > ---
> > I'm no longer working on this stuff because the box I was interested
> > in hadn't hardware FP support making it impossible to achieve what
> > I originally planned.
>
> Are you still willing to do a few iterations to get it merged?
>
Sure. I was just about to wipe this from my branch, but thought I could
submit in case someone finds it interesting.
> A couple of comments below.
>
> > diff --git a/package/multimedia/icecast/Config.in b/package/multimedia/icecast/Config.in
> > new file mode 100644
> > index 0000000..0d2c343
> > --- /dev/null
> > +++ b/package/multimedia/icecast/Config.in
> > @@ -0,0 +1,13 @@
> > +config BR2_PACKAGE_ICECAST
> > + bool "icecast"
> > + select BR2_PACKAGE_LIBOGG
> > + select BR2_PACKAGE_LIBVORBIS
> > + select BR2_PACKAGE_LIBXML2
> > + select BR2_PACKAGE_LIBXSLT
> > + help
> > + Icecast is a streaming media server which currently supports Ogg
> > + Vorbis and MP3 audio streams. It can be used to create an Internet
> > + radio station or a privately running jukebox and many things in
> > + between. It is very versatile in that new formats can be added
> > + relatively easily and supports open standards for commuincation and
> > + interaction.
>
> We normally add a empty line here, and then one line with the upstream
> project URL.
>
Right.
> > diff --git a/package/multimedia/icecast/icecast-curl-config.patch b/package/multimedia/icecast/icecast-curl-config.patch
> > new file mode 100644
> > index 0000000..c193aa9
> > --- /dev/null
> > +++ b/package/multimedia/icecast/icecast-curl-config.patch
> > @@ -0,0 +1,12 @@
>
> We always want a description + Signed-off-by line. We also generally
> prefer patches on the configure.in or configure.ac file, rather than on
> configure directly. For efficiency reasons (avoid the need of
> autoreconfiguring the package), we may accept a patch on configure, but
> I would say that configure.in or configure.ac should also be patched
> appropriately.
>
Right. I'll try that.
Also, please note that I tried to patch this on 2.3.3 but failed
(don't remember why). I found this fix in OpenWRT, if I remember
correctly.
And this the reason why I had to stick to 2.3.2. I remember someone
complained about being *very* old, but unless we can get over this
silly configure bug, we'll have to stick to 2.3.2.
> > diff --git a/package/multimedia/icecast/icecast.mk b/package/multimedia/icecast/icecast.mk
> > new file mode 100644
> > index 0000000..f840be1
> > --- /dev/null
> > +++ b/package/multimedia/icecast/icecast.mk
> > @@ -0,0 +1,25 @@
> > +############################################################
>
> 80 # are needed now.
>
Ok.
> > +#
> > +# Icecast (Shoutcast compatible streaming server)
>
> Just the package name, not more.
>
Ok.
> > +#
> > +############################################################
> > +
> > +ICECAST_SITE = http://downloads.xiph.org/releases/icecast
> > +ICECAST_VERSION = 2.3.2
> > +ICECAST_LICENSE = GPLv2
>
> Have you checked whether is GPLv2 only, or GPLv2 or later? If the
> latter, then it should be GPLv2+.
>
I'll check.
> > +ICECAST_LICENSE_FILES = COPYING
> > +
> > +ICECAST_DEPENDENCIES = host-pkgconf libxslt libxml2 libogg libvorbis libcurl
>
> Why do you have libcurl here? From the rest of your package, it seems
> like an optional dependency.
>
Right.
> > +ICECAST_CONF_OPT += --with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config
> > +ICECAST_CONF_OPT += --with-ogg=$(STAGING_DIR)/usr
> > +ICECAST_CONF_OPT += --with-vorbis=$(STAGING_DIR)/usr
>
> We normally write this like:
>
> ICECAST_CONF_OPT = \
> --with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config \
> --with-ogg=$(STAGING_DIR)/usr \
> --with-vorbis=$(STAGING_DIR)/usr
>
Of course.
> > +
> > +ifeq ($(BR2_PACKAGE_LIBCURL),y)
> > +ICECAST_DEPENDENCIES += libcurl
> > +ICECAST_CONF_OPT += --with-curl-config=$(STAGING_DIR)/usr/bin/curl-config
> > +else
> > +ICECAST_CONF_OPT += --without-curl
> > +endif
> > +
> > +$(eval $(autotools-package))
>
> Otherwise, looks good to me.
>
Thanks for the feedback!
--
Ezequiel Garc?a, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
prev parent reply other threads:[~2013-07-07 19:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-07 18:40 [Buildroot] [PATCH] icecast: new package Ezequiel Garcia
2013-07-07 19:42 ` Thomas Petazzoni
2013-07-07 19:57 ` Ezequiel Garcia [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130707195738.GA5413@localhost \
--to=ezequiel.garcia@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.