2013-02-04 16:18:24 +00:00
|
|
|
# Created by: Martin Wilke <miwi@FreeBSD.org>
|
2010-05-11 09:47:27 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= phonon
|
2013-02-04 17:00:36 +00:00
|
|
|
PORTVERSION= 4.6.3
|
2011-04-11 22:01:59 +00:00
|
|
|
CATEGORIES= multimedia kde
|
2010-06-09 19:39:52 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2011-03-25 10:14:53 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PHONON_BRANCH}/${PORTNAME}/${PORTNAME}-backend${PKGNAMESUFFIX}/${PORTVERSION}/src
|
2010-05-11 09:47:27 +00:00
|
|
|
PKGNAMESUFFIX= -gstreamer
|
2011-03-25 10:14:53 +00:00
|
|
|
DISTNAME= ${PORTNAME}-backend${PKGNAMESUFFIX}-${PORTVERSION}
|
2010-05-11 09:47:27 +00:00
|
|
|
DIST_SUBDIR= KDE
|
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2011-10-16 23:03:26 +00:00
|
|
|
COMMENT= GStreamer backend for Phonon
|
2010-05-11 09:47:27 +00:00
|
|
|
|
2011-10-29 01:00:36 +00:00
|
|
|
# Required in order to avoid conflicts with multimedia/phonon's OPTIONS.
|
|
|
|
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
2010-05-11 09:47:27 +00:00
|
|
|
CONFLICTS= qt4-phonon-gst-4*
|
|
|
|
|
|
|
|
PHONON_BRANCH= stable
|
2011-10-16 23:03:26 +00:00
|
|
|
|
2012-05-25 01:53:50 +00:00
|
|
|
USE_GL= gl
|
2011-10-16 23:03:26 +00:00
|
|
|
USE_GNOME= glib20 libxml2
|
|
|
|
USE_GSTREAMER= yes
|
|
|
|
USE_KDE4= kdehier kdeprefix automoc4
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4= gui phonon xml \
|
2010-05-11 09:47:27 +00:00
|
|
|
qmake_build moc_build rcc_build uic_build
|
2011-10-16 23:03:26 +00:00
|
|
|
USE_XORG= x11
|
2012-05-25 01:53:50 +00:00
|
|
|
USE_XZ= yes
|
2013-09-03 12:42:48 +00:00
|
|
|
USES= cmake pkgconfig
|
2010-05-11 09:47:27 +00:00
|
|
|
|
|
|
|
PLIST_SUB+= QT_PREFIX=${QT_PREFIX}
|
|
|
|
|
2013-02-04 16:18:24 +00:00
|
|
|
OPTIONS_DEFINE= GST_PLUGINS
|
|
|
|
|
|
|
|
GST_PLUGINS_DESC= Install GStreamer plugins
|
2012-08-14 00:40:29 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFAULT=
|
2011-10-29 01:00:36 +00:00
|
|
|
|
2013-09-20 20:57:48 +00:00
|
|
|
NO_STAGE= yes
|
2011-10-29 01:00:36 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-02-04 16:18:24 +00:00
|
|
|
.if ${PORT_OPTIONS:MGST_PLUGINS}
|
2011-10-29 01:00:36 +00:00
|
|
|
RUN_DEPENDS+= gstreamer-plugins-all>=0:${PORTSDIR}/multimedia/gstreamer-plugins-all
|
|
|
|
.else
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.endif
|
|
|
|
|
2011-03-25 10:14:53 +00:00
|
|
|
pre-su-install:
|
2010-05-11 09:47:27 +00:00
|
|
|
${MKDIR} ${QT_PLUGINDIR}/phonon_backend
|
|
|
|
|
|
|
|
post-install:
|
2011-10-16 23:03:26 +00:00
|
|
|
${LN} -sf ${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so \
|
|
|
|
${QT_PLUGINDIR}/phonon_backend/libphonon_gstreamer.so
|
2013-02-04 16:18:24 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MGST_PLUGINS}
|
2011-10-29 01:00:36 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2010-05-11 09:47:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|