blob: 97d87220104448d1f8b3a88c7c9d601d1725e2a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# New ports collection Makefile for: phonon
# Date created: 2008-01-30
# Whom: Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= phonon
PORTVERSION= 4.5.1
CATEGORIES= multimedia kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${PHONON_BRANCH}/${PORTNAME}/${PORTNAME}-backend${PKGNAMESUFFIX}/${PORTVERSION}/src
PKGNAMESUFFIX= -gstreamer
DISTNAME= ${PORTNAME}-backend${PKGNAMESUFFIX}-${PORTVERSION}
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= GStreamer backend for Phonon
# Required in order to avoid conflicts with multimedia/phonon's OPTIONS.
LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
CONFLICTS= qt4-phonon-gst-4*
PHONON_BRANCH= stable
USE_GNOME= glib20 libxml2
USE_GSTREAMER= yes
USE_KDE4= kdehier kdeprefix automoc4
USE_QT_VER= 4
QT_COMPONENTS= gui opengl phonon xml \
qmake_build moc_build rcc_build uic_build
USE_XORG= x11
USE_BZIP2= yes
USE_CMAKE= yes
MAKE_JOBS_SAFE= yes
PLIST_SUB+= QT_PREFIX=${QT_PREFIX}
# FIXME: Remove this in the next release; phonon-gstreamer does not
# depend on ALSA anymore.
# Explicitly disable ALSA, see for details:
# http://mail.kde.org/pipermail/kde-freebsd/2010-March/008015.html
CMAKE_ARGS+= -DWITH_Alsa:BOOL=OFF
.if defined(WITH_QT_PHONON)
IGNORE= conflicts with Qt 4 Phonon. Please, deinstall qt4-phonon-gst and unset WITH_QT_PHONON to continue
.endif
OPTIONS= PLUGINS "Install GStreamer plugins" off
.include <bsd.port.options.mk>
.if defined(WITH_PLUGINS)
RUN_DEPENDS+= gstreamer-plugins-all>=0:${PORTSDIR}/multimedia/gstreamer-plugins-all
.else
SUB_FILES= pkg-message
.endif
pre-su-install:
${MKDIR} ${QT_PLUGINDIR}/phonon_backend
post-install:
${LN} -sf ${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so \
${QT_PLUGINDIR}/phonon_backend/libphonon_gstreamer.so
.if !defined(WITH_PLUGINS)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>
|