# $MidnightBSD: trunk/multimedia/phonon-gstreamer/Makefile 20894 2015-11-16 16:56:40Z laffer1 $
# $FreeBSD: ports/multimedia/phonon-gstreamer/Makefile,v 1.13 2011/03/25 10:14:53 avilla Exp $

PORTNAME=	phonon
PORTVERSION=	4.8.2
PORTREVISION=	1
CATEGORIES=	multimedia
MASTER_SITES=	KDE/stable/${PORTNAME}/${PORTNAME}-backend${PKGNAMESUFFIX}/${PORTVERSION}/src
PKGNAMESUFFIX=	-gstreamer
DISTNAME=	${PORTNAME}-backend${PKGNAMESUFFIX}-${PORTVERSION}
DIST_SUBDIR=	KDE

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	The GStreamer backend for Phonon

LICENSE=	lgpl2.1

USE_GL=		gl
USE_GNOME=	glib20 libxml2
USE_GSTREAMER1=	yes
USE_KDE4=	kdeprefix automoc4
USE_QT4=	corelib gui opengl phonon \
		qmake_build moc_build rcc_build uic_build
USE_XORG=	x11
USES=		cmake pkgconfig tar:xz

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	GST_PLUGINS
GST_PLUGINS_DESC=	Install GStreamer plugins
GST_PLUGINS_RUN_DEPENDS=	gstreamer1-plugins-all>=0:${PORTSDIR}/multimedia/gstreamer1-plugins-all

post-install:
	${MKDIR} ${FAKE_DESTDIR}${QT_PLUGINDIR}/phonon_backend
	${LN} -sf ${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so \
		${QT_PLUGINDIR}/phonon_backend/libphonon_gstreamer.so

.include <bsd.port.mk>
