# Ports collection makefile for:    cclive
# Date created:		1 February 2009
# Whom:			Toni Gundogdu <legatvs@gmail.com>
#
# $FreeBSD: ports/multimedia/cclive/Makefile,v 1.7 2009/04/04 19:11:06 miwi Exp $
#

PORTNAME=	cclive
PORTVERSION=	0.3.1
CATEGORIES=	multimedia net
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	legatvs@gmail.com
COMMENT=	Lightweight command line video extraction utility

LIB_DEPENDS=	curl.5:${PORTSDIR}/ftp/curl

OPTIONS=	TITLE 	 "Enable video title parsing (req. Perl)" off \
		SIGWINCH "Enable SIGWINCH handling; resize progressbar" on

MAN1=		cclive.1

PLIST_FILES=	bin/cclive

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes
USE_GNOME=	pkgconfig

.include <bsd.port.pre.mk>

.if defined(WITH_TITLE)
CONFIGURE_ARGS+=--with-perl
USE_PERL5=	5.8.2+
RUN_DEPENDS+=	p5-HTML-Parser>=3.59:${PORTSDIR}/www/p5-HTML-Parser
.endif

.if defined(WITH_SIGWINCH)
CONFIGURE_ARGS+=	--with-sigwinch
.endif

.include <bsd.port.post.mk>
