aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2013-12-03 00:10:20 +0800
committermakc <makc@FreeBSD.org>2013-12-03 00:10:20 +0800
commit7d01de3fbd2ab8d7c5bad756a9f451ba1127d767 (patch)
tree6499a93c6d00ecce6b2974a073d69d6c151828af
parent831e84e226bcc5bfc492a435e20c17862c71d077 (diff)
downloadfreebsd-ports-gnome-7d01de3fbd2ab8d7c5bad756a9f451ba1127d767.tar.gz
freebsd-ports-gnome-7d01de3fbd2ab8d7c5bad756a9f451ba1127d767.tar.zst
freebsd-ports-gnome-7d01de3fbd2ab8d7c5bad756a9f451ba1127d767.zip
- Restore PHONON option for kid-qt4 (and add patch to fix build)
- Prepare for Qt 5 port
-rw-r--r--audio/kid3-kde4/Makefile31
-rw-r--r--audio/kid3-kde4/files/patch-src__app__cli__kid3cli.cpp14
2 files changed, 40 insertions, 5 deletions
diff --git a/audio/kid3-kde4/Makefile b/audio/kid3-kde4/Makefile
index f4cc088e4a6d..6151be2b63b0 100644
--- a/audio/kid3-kde4/Makefile
+++ b/audio/kid3-kde4/Makefile
@@ -10,8 +10,6 @@ COMMENT?= MP3/Ogg/FLAC tag editor for KDE
LICENSE= GPLv2
-USE_QT4= qmake_build moc_build rcc_build uic_build \
- linguist_build
USE_PERL5= build
USES= cmake:outsource perl5
CMAKE_ARGS= -DWITH_DOCBOOKDIR=${LOCALBASE}/share/xsl/docbook \
@@ -24,18 +22,41 @@ OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
OPTIONS_SUB= yes
NO_OPTIONS_SORT= yes
+.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-qt5"
+CONFLICTS_INSTALL+= kid3-qt4-3.*
+
+USE_QT5= core dbus gui multimedia network testlib xml widgets \
+ buildtools_build linguisttools_build qmake_build
+CMAKE_ARGS+= -DWITH_QT5=true
+.else
+# Qt 4 and KDE 4
+USE_QT4= qmake_build moc_build rcc_build uic_build \
+ linguist_build
+.endif
+
+.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-qt4"
+CONFLICTS_INSTALL+= kid3-qt5-3.*
+
+USE_QT4+= corelib dbus gui network xml
+
+OPTIONS_DEFINE+= PHONON
+PHONON_DESC= Build with Phonon support
+PHONON_CMAKE_OFF= -DWITH_PHONON=OFF
+PHONON_USE= QT4=phonon
+.endif
+
.if defined(PKGNAMESUFFIX)
-CONFLICTS_INSTALL= kid3-3.*
+# Qt 4 and Qt 5
+CONFLICTS_INSTALL+= kid3-3.*
BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
USES+= desktop-file-utils
-USE_QT4+= corelib dbus gui network phonon xml
USE_GNOME= libxslt:build
CMAKE_ARGS+= -DWITH_APPS="${KID3_CLI}QT"
PLIST_SUB+= QT="" KDE="@comment "
.else
-CONFLICTS_INSTALL= kid3-qt4-3.*
+CONFLICTS_INSTALL+= kid3-qt4-3.* kid3-qt5-3.*
USE_KDE4= kdelibs automoc4 kdeprefix
CMAKE_ARGS+= -DWITH_APPS="${KID3_CLI}KDE"
diff --git a/audio/kid3-kde4/files/patch-src__app__cli__kid3cli.cpp b/audio/kid3-kde4/files/patch-src__app__cli__kid3cli.cpp
new file mode 100644
index 000000000000..e5d162d7a53f
--- /dev/null
+++ b/audio/kid3-kde4/files/patch-src__app__cli__kid3cli.cpp
@@ -0,0 +1,14 @@
+--- ./src/app/cli/kid3cli.cpp.orig 2013-11-29 06:55:07.000000000 +0000
++++ ./src/app/cli/kid3cli.cpp 2013-12-02 14:35:10.196660693 +0000
+@@ -276,7 +276,10 @@
+ << new CopyCommand(this)
+ << new PasteCommand(this)
+ << new RemoveCommand(this)
+- << new PlayCommand(this);
++#if defined HAVE_PHONON || QT_VERSION >= 0x050000
++ << new PlayCommand(this)
++#endif
++ ;
+ connect(m_app, SIGNAL(fileSelectionUpdateRequested()),
+ this, SLOT(updateSelectedFiles()));
+ connect(m_app, SIGNAL(selectedFilesUpdated()),