PortSystem 1.0

name		icecast
version		1.3.12
revision	1
categories	audio net
license		GPL-2+
maintainers	nomaintainer
description	A streaming mp3 audio server
long_description	\
    Icecast is a streaming mp3 audio server. Icecast provides nearly all \
    the functionality of the Shoutcast server. It will accept encoding \
    streams from encoders like winamp, shout and ices. It can also add \
    itself to a directory server such as our own icecast.linuxpower.org \
    or Nullsoft's yp.shoutcast.com.
homepage	http://www.icecast.org/
platforms	darwin
master_sites	http://downloads.us.xiph.org/releases/icecast/
checksums	md5 69ba36d30722884ea538b70628f1de80
configure.args	\
    --with-crypt --without-python

platform darwin {
	patchfiles	apple-patches
	configure.cppflags-append -D_DARWIN_C_SOURCE
	post-configure {
	    # the configure check for this is utterly broken
		reinplace {s|/\* #undef HAVE_SOCKLEN_T \*/|#define HAVE_SOCKLEN_T 1|} \
			${worksrcpath}/config.h
	}
}
#variant python {
#	depends_build   bin:python:python
#	configure.args-append	--with-python
#}
