# $FreeBSD: tags/RELEASE_10_2_0/multimedia/minitube/Makefile 382531 2015-03-28 17:53:28Z makc $

PORTNAME=	minitube
PORTVERSION=	2.3
CATEGORIES=	multimedia www
MASTER_SITES=	http://flavio.tordini.org/files/minitube/

MAINTAINER=	makc@FreeBSD.org
COMMENT=	TV-like client for YouTube

USE_QT4=	dbus gui network phonon script sql xml \
		moc_build rcc_build imageformats_run
USES=		qmake
INSTALLS_ICONS=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

QMAKE_ARGS=	QMAKE_LRELEASE=${LRELEASE}

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes
NLS_USE=	QT4=linguisttools_build

.include <bsd.port.options.mk>

pre-configure:
.if !${PORT_OPTIONS:MNLS}
	${REINPLACE_CMD} -e '/include(locale\/locale.pri)/d' ${WRKSRC}/minitube.pro
.endif
# Remove BOM
	${REINPLACE_CMD} -e '1 s|^.*/|/|g' \
		 ${WRKSRC}/src/aggregatevideosource.cpp

.include <bsd.port.mk>
