# New ports collection makefile for: icecast
# Date created:         28 Jan 1999
# Whom:                 Chip Marshall <chip@eboai.org>
#
# $FreeBSD: ports/audio/icecast2/Makefile,v 1.46 2005/06/22 20:08:27 lofi Exp $
#

PORTNAME=	icecast2
PORTVERSION=	2.2.0
PORTREVISION=	3
PORTEPOCH=	1
CATEGORIES=	audio net ipv6
MASTER_SITES=	http://svn.xiph.org/releases/icecast/
DISTNAME=	icecast-${PORTVERSION}

MAINTAINER=	lofi@freebsd.org
COMMENT=	A streaming mp3/ogg-vorbis audio server

LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl \
		shout.4:${PORTSDIR}/audio/libshout2 \
		theora.1:${PORTSDIR}/multimedia/libtheora \
		vorbis.3:${PORTSDIR}/audio/libvorbis \
		xslt.2:${PORTSDIR}/textproc/libxslt

USE_GMAKE=	yes
USE_LIBTOOL_VER=15
USE_RC_SUBR=	icecast2.sh
SUB_FILES+=	pkg-message
PKGMESSAGE=	${WRKDIR}/pkg-message
CONFIGURE_ENV=	OGG_PREFIX=${LOCALBASE}

WRKSRC=		${WRKDIR}/icecast-${PORTVERSION}

.include <bsd.port.pre.mk>

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
