aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/phonon-vlc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/phonon-vlc/Makefile')
-rw-r--r--multimedia/phonon-vlc/Makefile39
1 files changed, 31 insertions, 8 deletions
diff --git a/multimedia/phonon-vlc/Makefile b/multimedia/phonon-vlc/Makefile
index 90a7dd5c78dd..7cbedab8ca2a 100644
--- a/multimedia/phonon-vlc/Makefile
+++ b/multimedia/phonon-vlc/Makefile
@@ -1,13 +1,13 @@
# $FreeBSD$
PORTNAME= phonon
-PORTVERSION= 0.9.1
+DISTVERSION= 0.10.1
PORTREVISION= 1
CATEGORIES= multimedia kde
-MASTER_SITES= KDE/stable/${PORTNAME}/${PORTNAME}-backend${PKGNAMESUFFIX}/${PORTVERSION}
-PKGNAMESUFFIX= -vlc
-DISTNAME= ${PORTNAME}-backend${PKGNAMESUFFIX}-${PORTVERSION}
-DIST_SUBDIR= 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
@@ -15,16 +15,39 @@ COMMENT= VLC backend for Phonon
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
-LIB_DEPENDS= libvlc.so:multimedia/vlc-qt4
+FLAVORS= qt4 qt5
+FLAVOR?= ${FLAVORS:[1]}
-USES= cmake:outsource kde:4 pkgconfig tar:xz
+qt4_LIB_DEPENDS= libvlc.so:multimedia/vlc-qt4
+qt5_LIB_DEPENDS= libvlc.so:multimedia/vlc
+
+USES= cmake:outsource pkgconfig tar:xz
+
+. if ${FLAVOR} == qt4
+USES+= kde:4
USE_KDE= automoc4
USE_QT4= 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
+USE_KDE= ecm
+USE_QT5= 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
- ${LN} -sf ${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_vlc.so \
+ ${RLN} ${STAGEDIR}${PREFIX}/lib/kde4/plugins/phonon_backend/phonon_vlc.so \
${STAGEDIR}${QT_PLUGINDIR}/phonon_backend/libphonon_vlc.so
+. endif
.include <bsd.port.mk>