diff options
author | tcberner <tcberner@FreeBSD.org> | 2018-06-22 00:52:09 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2018-06-22 00:52:09 +0800 |
commit | 63ee4070a55ed2109e71d5c914450adc925a2bdf (patch) | |
tree | 52d56bde5dacbad51f88fdfd8939a709ff216747 /multimedia/phonon-vlc | |
parent | eeb8d6bc4ad3c7a45b1be0626949bc2de53ff341 (diff) | |
download | freebsd-ports-gnome-63ee4070a55ed2109e71d5c914450adc925a2bdf.tar.gz freebsd-ports-gnome-63ee4070a55ed2109e71d5c914450adc925a2bdf.tar.zst freebsd-ports-gnome-63ee4070a55ed2109e71d5c914450adc925a2bdf.zip |
multimedia/*phonon*: update and flavorize with @qt4/@qt5
Approved by: portmgr (mat)
Differential Revision: https://reviews.freebsd.org/D14632
Diffstat (limited to 'multimedia/phonon-vlc')
-rw-r--r-- | multimedia/phonon-vlc/Makefile | 39 | ||||
-rw-r--r-- | multimedia/phonon-vlc/distinfo | 6 | ||||
-rw-r--r-- | multimedia/phonon-vlc/pkg-plist | 3 |
3 files changed, 34 insertions, 14 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> diff --git a/multimedia/phonon-vlc/distinfo b/multimedia/phonon-vlc/distinfo index 7f1a5a970f58..67862d5a95c6 100644 --- a/multimedia/phonon-vlc/distinfo +++ b/multimedia/phonon-vlc/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1489242326 -SHA256 (KDE/phonon-backend-vlc-0.9.1.tar.xz) = e698729ba8487299105309623722344f2cd84c46482516d51cd6609fac297313 -SIZE (KDE/phonon-backend-vlc-0.9.1.tar.xz) = 59972 +TIMESTAMP = 1520670394 +SHA256 (KDE/phonon/phonon-backend-vlc-0.10.1.tar.xz) = 09966da6aedeb1b3a6a7d64341682ea065cb4b2c7c06681fcfb3b9c4e7af072d +SIZE (KDE/phonon/phonon-backend-vlc-0.10.1.tar.xz) = 61096 diff --git a/multimedia/phonon-vlc/pkg-plist b/multimedia/phonon-vlc/pkg-plist deleted file mode 100644 index 387892e64d68..000000000000 --- a/multimedia/phonon-vlc/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -lib/kde4/plugins/phonon_backend/phonon_vlc.so -share/kde4/services/phononbackends/vlc.desktop -%%QT_PLUGINDIR%%/phonon_backend/libphonon_vlc.so |