# New ports collection makefile for:	quvi
# Date created:		2 February 2010
# Whom:			Toni Gundogdu <legatvs@gmail.com>
#
# $FreeBSD: ports/multimedia/quvi/Makefile,v 1.15 2011/01/24 05:49:22 sunpoet Exp $
#

PORTNAME=	quvi
PORTVERSION=	0.2.12
CATEGORIES=	multimedia devel
MASTER_SITES=	GOOGLE_CODE \
		SF/${PORTNAME}/${PORTVERSION:R}/

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Query video library for Youtube like websites

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

LICENSE=	GPLv3

CONFIGURE_ARGS=	--enable-broken --enable-examples
CONFIGURE_ENV=	CPPFLAGS='${CPPFLAGS} -I${WRKSRC}/include \
		-I${LOCALBASE}/include'
GNU_CONFIGURE=	yes
USE_BZIP2=	yes
USE_GNOME=	gnomehack pkgconfig
USE_ICONV=	yes
USE_LDCONFIG=	yes
USE_LUA=	yes

MAN1=		quvi.1
PLIST_SUB=	SHLIB_VER="${SHLIB_VER}"

OPTIONS=	NSFW "Enable adult website support" off

SHLIB_VER=	3

.if defined(NOPORTDOCS)
CONFIGURE_ARGS+=--without-doc
.endif

.include <bsd.port.pre.mk>

.if defined(WITH_NSFW)
CONFIGURE_ARGS+=--enable-nsfw
PLIST_SUB+=	NSFW=""
.else
PLIST_SUB+=	NSFW="@comment "
.endif

post-patch:
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e '/install-data-am:/ s| install-docDATA||' \
		${WRKSRC}/doc/Makefile.in
.endif

.include <bsd.port.post.mk>
