aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/kmplayer
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2018-12-30 19:45:34 +0800
committertcberner <tcberner@FreeBSD.org>2018-12-30 19:45:34 +0800
commit2af4712ec2a9492fed176fbcf45cba1742345570 (patch)
treed4dcdb94ed994d335791f641248964591ab51935 /multimedia/kmplayer
parentc76a4e94484736bd0f5d9e3d7eeba59e31a7b87b (diff)
downloadfreebsd-ports-gnome-2af4712ec2a9492fed176fbcf45cba1742345570.tar.gz
freebsd-ports-gnome-2af4712ec2a9492fed176fbcf45cba1742345570.tar.zst
freebsd-ports-gnome-2af4712ec2a9492fed176fbcf45cba1742345570.zip
multimedia/kmplayer: moved from multimedia/kmplayer-kde4 and updated to KF5 based version
- as to not have this port be removed tomororw, update it to KF5 Differential Revision: https://reviews.freebsd.org/D18632
Diffstat (limited to 'multimedia/kmplayer')
-rw-r--r--multimedia/kmplayer/Makefile46
-rw-r--r--multimedia/kmplayer/distinfo3
-rw-r--r--multimedia/kmplayer/files/patch-git_2126d724
-rw-r--r--multimedia/kmplayer/files/patch-git_3def6542
-rw-r--r--multimedia/kmplayer/files/patch-git_7dafda34
-rw-r--r--multimedia/kmplayer/files/patch-src_viewarea.cpp11
-rw-r--r--multimedia/kmplayer/pkg-descr3
-rw-r--r--multimedia/kmplayer/pkg-plist28
8 files changed, 191 insertions, 0 deletions
diff --git a/multimedia/kmplayer/Makefile b/multimedia/kmplayer/Makefile
new file mode 100644
index 000000000000..d772b27684d2
--- /dev/null
+++ b/multimedia/kmplayer/Makefile
@@ -0,0 +1,46 @@
+# Created by: Kris Moore
+# $FreeBSD$
+
+PORTNAME= kmplayer
+PORTVERSION= 0.12.0b
+PORTEPOCH= 3
+CATEGORIES= multimedia audio kde
+
+MAINTAINER= jhale@FreeBSD.org
+COMMENT= KDE frontend to Phonon / KDE4
+
+LICENSE= GPLv2 LGPL21
+LICENSE_COMB= multi
+
+NOT_FOR_ARCHS= aarch64
+NOT_FOR_ARCHS_REASON= prcpucfg.h:764:2: error: "Unknown CPU architecture"
+
+LIB_DEPENDS= libdbus-1.so:devel/dbus \
+ libdbus-glib-1.so:devel/dbus-glib \
+ libfreetype.so:print/freetype2 \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libxcb-cursor.so:x11/xcb-util-cursor \
+ libxcb-ewmh.so:x11/xcb-util-wm \
+ libxcb-icccm.so:x11/xcb-util-wm \
+ libxcb-image.so:x11/xcb-util-image \
+ libxcb-keysyms.so:x11/xcb-util-keysyms \
+ libxcb-render-util.so:x11/xcb-util-renderutil \
+ libxcb-util.so:x11/xcb-util
+RUN_DEPENDS= mplayer:multimedia/mplayer
+
+USES= cmake desktop-file-utils gettext-runtime \
+ kde:5 pkgconfig qt:5
+USE_GNOME= cairo gdkpixbuf2 gtk20
+USE_QT= concurrent core dbus gui network phonon4 printsupport \
+ svg widgets x11extras xml \
+ buildtools_build qmake_build
+USE_KDE= auth bookmarks codecs completion config configwidgets \
+ coreaddons crash ecm guiaddons i18n iconthemes itemviews \
+ jobwidgets mediaplayer notifications parts service \
+ textwidgets unitconversion widgetsaddons windowsystem \
+ xmlgui kdelibs4support kio solid sonnet
+USE_XORG= x11 xcb
+USE_GITHUB= yes
+GH_ACCOUNT= KDE
+
+.include <bsd.port.mk>
diff --git a/multimedia/kmplayer/distinfo b/multimedia/kmplayer/distinfo
new file mode 100644
index 000000000000..6ccb62eb3099
--- /dev/null
+++ b/multimedia/kmplayer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1545506944
+SHA256 (KDE-kmplayer-0.12.0b_GH0.tar.gz) = 2d80ece8bb2387363a3369c8de045830e0be8543fa5455774415b67bf84e2ebf
+SIZE (KDE-kmplayer-0.12.0b_GH0.tar.gz) = 507574
diff --git a/multimedia/kmplayer/files/patch-git_2126d7 b/multimedia/kmplayer/files/patch-git_2126d7
new file mode 100644
index 000000000000..4c50c0a04a51
--- /dev/null
+++ b/multimedia/kmplayer/files/patch-git_2126d7
@@ -0,0 +1,24 @@
+From 2126d76b8f16381e576de779b94b5b4555e562c2 Mon Sep 17 00:00:00 2001
+From: Luigi Toscano <luigi.toscano@tiscali.it>
+Date: Sat, 13 May 2017 21:13:43 +0200
+Subject: Fix .desktop: Qt5 apps accept qwindowtitle, not caption
+
+---
+ src/org.kde.kmplayer.desktop | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/org.kde.kmplayer.desktop b/src/org.kde.kmplayer.desktop
+index fcc5255..2b5435c 100644
+--- src/kmplayer.desktop
++++ src/kmplayer.desktop
+@@ -1,6 +1,6 @@
+ [Desktop Entry]
+ Type=Application
+-Exec=kmplayer -caption %c %i %U
++Exec=kmplayer -qwindowtitle %c %i %U
+ Icon=kmplayer
+ X-DocPath=kmplayer/index.html
+ Comment=KDE interface for MPlayer
+--
+cgit v1.1
+
diff --git a/multimedia/kmplayer/files/patch-git_3def65 b/multimedia/kmplayer/files/patch-git_3def65
new file mode 100644
index 000000000000..f4b9670fe977
--- /dev/null
+++ b/multimedia/kmplayer/files/patch-git_3def65
@@ -0,0 +1,42 @@
+From 3def65075c09af4961cd399e8e78ed78cca72e65 Mon Sep 17 00:00:00 2001
+From: Wolfgang Bauer <wbauer@tmo.at>
+Date: Wed, 11 Oct 2017 22:16:02 +0200
+Subject: Fix build with Qt 5.9
+
+Summary:
+moc 5.9 errors out when building:
+Error: Plugin Metadata file "" could not be opened: file to open is a directory
+
+Same issue and fix as https://phabricator.kde.org/D5392 for khtml.
+
+CCBUG: 377490
+
+Test Plan: builds fine now with Qt 5.9.0rc and also earlier versions.
+
+Reviewers: vriezen, pino
+
+Reviewed By: pino
+
+Subscribers: pino
+
+Differential Revision: https://phabricator.kde.org/D5985
+---
+ src/kmplayer_part.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/kmplayer_part.h b/src/kmplayer_part.h
+index f90f85d..0fddbaa 100644
+--- src/kmplayer_part.h
++++ src/kmplayer_part.h
+@@ -36,7 +36,7 @@ namespace KMPlayer {
+
+ class KMPlayerFactory : public KPluginFactory {
+ Q_OBJECT
+- Q_PLUGIN_METADATA(IID "org.kde.KPluginFactory" FILE "")
++ Q_PLUGIN_METADATA(IID "org.kde.KPluginFactory")
+ Q_INTERFACES(KPluginFactory)
+ public:
+ KMPlayerFactory();
+--
+cgit v1.1
+
diff --git a/multimedia/kmplayer/files/patch-git_7dafda b/multimedia/kmplayer/files/patch-git_7dafda
new file mode 100644
index 000000000000..8bc9f4423df7
--- /dev/null
+++ b/multimedia/kmplayer/files/patch-git_7dafda
@@ -0,0 +1,34 @@
+From 7dafda636033d23436ea72c45967af78f54d76fb Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Tue, 17 Apr 2018 12:07:04 +0200
+Subject: Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)
+
+Test Plan: Built fine with Qt 5.11_beta3.
+
+Reviewers: pino, vriezen
+
+Differential Revision: https://phabricator.kde.org/D12272
+---
+ src/CMakeLists.txt | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index f675d9a..57af1ed 100644
+--- src/CMakeLists.txt
++++ src/CMakeLists.txt
+@@ -161,9 +161,9 @@ qt5_add_dbus_adaptor(kphononplayer_SRCS org.kde.kmplayer.streamslave.xml
+
+ add_executable(kphononplayer ${kphononplayer_SRCS})
+
+-qt5_use_modules(kphononplayer Core DBus Widgets X11Extras)
+-
+-target_link_libraries(kphononplayer Phonon::phonon4qt5 ${XCB_LIBRARIES})
++target_link_libraries(kphononplayer Phonon::phonon4qt5 ${XCB_LIBRARIES}
++ Qt5::Core Qt5::DBus Qt5::Widgets Qt5::X11Extras
++)
+
+ install(TARGETS kphononplayer ${INSTALL_TARGETS_DEFAULT_ARGS})
+
+--
+cgit v1.1
+
diff --git a/multimedia/kmplayer/files/patch-src_viewarea.cpp b/multimedia/kmplayer/files/patch-src_viewarea.cpp
new file mode 100644
index 000000000000..43d5a4301e54
--- /dev/null
+++ b/multimedia/kmplayer/files/patch-src_viewarea.cpp
@@ -0,0 +1,11 @@
+--- src/viewarea.cpp.orig 2018-12-22 19:33:17 UTC
++++ src/viewarea.cpp
+@@ -2535,7 +2535,7 @@ void VideoOutput::useIndirectWidget (bool inderect) {
+ if (!m_plain_window) {
+ xcb_screen_t* scr = m_view->viewArea()->d->screen_of_display(connection, QX11Info::appScreen());
+ m_plain_window = xcb_generate_id(connection);
+- uint32_t values[] = { scr->black_pixel, m_input_mask };
++ uint32_t values[] = { scr->black_pixel, static_cast<uint32_t>(m_input_mask) };
+ #if QT_VERSION >= 0x050600
+ int devicew = (int)(width() * devicePixelRatioF());
+ int deviceh = (int)(height() * devicePixelRatioF());
diff --git a/multimedia/kmplayer/pkg-descr b/multimedia/kmplayer/pkg-descr
new file mode 100644
index 000000000000..00a1ec18b7f2
--- /dev/null
+++ b/multimedia/kmplayer/pkg-descr
@@ -0,0 +1,3 @@
+KMPlayer, a simple frontend for MPlayer/FFMpeg/Phonon.
+
+WWW: http://kmplayer.kde.org/
diff --git a/multimedia/kmplayer/pkg-plist b/multimedia/kmplayer/pkg-plist
new file mode 100644
index 000000000000..56aa42b07742
--- /dev/null
+++ b/multimedia/kmplayer/pkg-plist
@@ -0,0 +1,28 @@
+bin/kmplayer
+bin/knpplayer
+bin/kphononplayer
+etc/xdg/kmplayerrc
+lib/libkdeinit5_kmplayer.so
+lib/libkmplayercommon.so
+%%QT_PLUGINDIR%%/kmplayerpart.so
+share/applications/kmplayer.desktop
+share/icons/hicolor/128x128/apps/kmplayer.png
+share/icons/hicolor/16x16/apps/kmplayer.png
+share/icons/hicolor/22x22/apps/kmplayer.png
+share/icons/hicolor/32x32/apps/kmplayer.png
+share/icons/hicolor/48x48/apps/kmplayer.png
+share/icons/hicolor/64x64/apps/kmplayer.png
+share/icons/hicolor/scalable/apps/kmplayer.svgz
+%%DATADIR%%/blip-api.xsl
+%%DATADIR%%/bookmarks.xml
+%%DATADIR%%/find-media.sh
+%%DATADIR%%/generators/blip-tv.xml
+%%DATADIR%%/generators/find-media.xml
+%%DATADIR%%/generators/shoutcast.xml
+%%DATADIR%%/generators/youtube-query.xml
+%%DATADIR%%/pluginsinfo
+%%DATADIR%%/shoutcast.xsl
+%%DATADIR%%/youtube.xsl
+share/kservices5/kmplayer_part.desktop
+share/kxmlgui5/kmplayer/kmplayerpartui.rc
+share/kxmlgui5/kmplayer/kmplayerui.rc