# Created by: Michael Nottebrock <michaelnottebrock@gmx.net>
# $FreeBSD: tags/RELEASE_10_3_0/audio/ices/Makefile 399554 2015-10-17 18:07:29Z sunpoet $

PORTNAME=	ices
PORTVERSION=	2.0.2
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	audio net
MASTER_SITES=	http://downloads.xiph.org/releases/${PORTNAME}/ \
		http://svn.xiph.org/releases/${PORTNAME}/

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Vorbis streaming source client for icecast 2

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libogg.so:${PORTSDIR}/audio/libogg \
		libshout.so:${PORTSDIR}/audio/libshout \
		libspeex.so:${PORTSDIR}/audio/speex \
		libtheora.so:${PORTSDIR}/multimedia/libtheora \
		libvorbis.so:${PORTSDIR}/audio/libvorbis

OPTIONS_DEFINE=	ALSA

CONFIGURE_ARGS=	--disable-roaraudio --disable-sun-audio
GNU_CONFIGURE=	yes
USE_GNOME=	libxml2
USES=		gmake iconv pkgconfig tar:bzip2

PLIST_FILES=	bin/ices
PORTDATA=	*

ALSA_LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ENABLE=	alsa

.include <bsd.port.mk>
