From 60539b7275681c5d8ac91d2e89508f20b5059ba2 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Thu, 21 Jun 2018 16:52:09 +0000 Subject: multimedia/*phonon*: update and flavorize with @qt4/@qt5 Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D14632 --- multimedia/phonon-designerplugin/Makefile | 32 ++++++++++++++++++++++-------- multimedia/phonon-designerplugin/pkg-descr | 2 +- 2 files changed, 25 insertions(+), 9 deletions(-) (limited to 'multimedia/phonon-designerplugin') diff --git a/multimedia/phonon-designerplugin/Makefile b/multimedia/phonon-designerplugin/Makefile index 2f202426b7ed..f71a6a700d4e 100644 --- a/multimedia/phonon-designerplugin/Makefile +++ b/multimedia/phonon-designerplugin/Makefile @@ -1,26 +1,42 @@ # $FreeBSD$ PORTNAME= phonon -PORTVERSION= 4.9.1 +DISTVERSION= 4.10.1 CATEGORIES= multimedia kde -MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION} -PKGNAMESUFFIX= -designerplugin -DIST_SUBDIR= KDE +MASTER_SITES= KDE/stable/${PORTNAME}/${DISTVERSION} +DIST_SUBDIR= KDE/phonon MAINTAINER= kde@FreeBSD.org COMMENT= Qt Designer plugin for Phonon LICENSE= LGPL21 -USE_QT4= corelib designer gui phonon \ - qmake_build moc_build rcc_build uic_build +FLAVORS= qt4 qt5 +FLAVOR?= ${FLAVORS:[1]} + +qt4_PKGNAMESUFFIX= -designerplugin-qt4 +qt5_PKGNAMESUFFIX= -designerplugin-qt5 + USES= cmake tar:xz + +. if ${FLAVOR} == qt4 +USES+= kde:4 +USE_QT4= corelib designer gui phonon \ + qmake_build moc_build rcc_build uic_build +PLIST_FILES= ${QT_PLUGINDIR_REL}/designer/libphononwidgets.so +. else +USES+= kde:5 +USE_KDE= ecm +USE_QT5= core designer gui phonon4 widgets xml \ + buildtools_build qmake_build +CMAKE_ON= PHONON_BUILD_PHONON4QT5 +PLIST_FILES= ${QT_PLUGINDIR_REL}/designer/phononwidgets.so +. endif + CMAKE_ARGS= -DPHONON_QT_PLUGIN_INSTALL_DIR=${PREFIX}/${QT_PLUGINDIR_REL}/designer BUILD_WRKSRC= ${WRKSRC}/designer INSTALL_WRKSRC= ${BUILD_WRKSRC} DISTINFO_FILE= ${.CURDIR:H}/phonon/distinfo -PLIST_FILES= ${QT_PLUGINDIR_REL}/designer/libphononwidgets.so - .include diff --git a/multimedia/phonon-designerplugin/pkg-descr b/multimedia/phonon-designerplugin/pkg-descr index 129f8f4c1a4e..f060aee2af45 100644 --- a/multimedia/phonon-designerplugin/pkg-descr +++ b/multimedia/phonon-designerplugin/pkg-descr @@ -1,5 +1,5 @@ Phonon is the framework responsible for an ubiquitous multimedia -experience in KDE Software Compilation 4. +experience in KDE Software Compilation 4 and Plasma Desktop. This port installs Qt Designer plugin for Phonon. WWW: http://phonon.kde.org -- cgit v1.2.3