blob: f11c2a2d41d697425f2a4179d900062cf2611f58 (
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
|
# $FreeBSD$
PORTNAME= phonon
DISTVERSION= 0.10.1
PORTREVISION= 3
CATEGORIES= multimedia kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTNAME}-backend-${PHONON_PLUGIN}/${DISTVERSION}
PKGNAMESUFFIX= -${PHONON_PLUGIN}-${FLAVOR}
DISTNAME= ${PORTNAME}-backend-${PHONON_PLUGIN}-${DISTVERSION}
DIST_SUBDIR= KDE/phonon
MAINTAINER= kde@FreeBSD.org
COMMENT= VLC backend for Phonon
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
FLAVORS= qt5 qt4
FLAVOR?= ${FLAVORS:[1]}
qt4_LIB_DEPENDS= libvlc.so:multimedia/vlc-qt4
qt5_LIB_DEPENDS= libvlc.so:multimedia/vlc3
qt4_DEPRECATED= Qt4 has been EOL since december 2015
qt4_EXPIRATION_DATE= 2019-03-15
USES= cmake:outsource pkgconfig tar:xz
. if ${FLAVOR} == qt4
USES+= kde:4 qt:4
USE_KDE= automoc4
USE_QT= corelib gui phonon \
qmake_build moc_build rcc_build uic_build
PLIST_FILES= lib/kde4/plugins/phonon_backend/phonon_vlc.so \
share/kde4/services/phononbackends/vlc.desktop \
${QT_PLUGINDIR}/phonon_backend/libphonon_vlc.so
. else
USES+= kde:5 qt:5
USE_KDE= ecm
USE_QT= core gui widgets phonon4 \
buildtools_build qmake_build
CMAKE_ON= PHONON_BUILD_PHONON4QT5
PLIST_FILES= ${QT_PLUGINDIR_REL}/phonon4qt5_backend/phonon_vlc.so
. endif
PHONON_PLUGIN= vlc
WRKSRC= ${WRKDIR}/${PORTNAME}-${PHONON_PLUGIN}-${DISTVERSION}
. if ${FLAVOR} == qt4
post-install:
${MKDIR} ${STAGEDIR}${QT_PLUGINDIR}/phonon_backend
${RLN} ${STAGEDIR}${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_vlc.so \
${STAGEDIR}${QT_PLUGINDIR}/phonon_backend/libphonon_vlc.so
. endif
.include <bsd.port.mk>
|