svn commit: r422896 - in head/multimedia: . mpc-qt mpc-qt/files
Jan Beich
jbeich at FreeBSD.org
Wed Sep 28 23:55:46 UTC 2016
Author: jbeich
Date: Wed Sep 28 23:55:44 2016
New Revision: 422896
URL: https://svnweb.freebsd.org/changeset/ports/422896
Log:
multimedia/mpc-qt: add new port
Media Player Classic Home Cinema is considered by many to be the
quintessential media player for the Windows desktop. Media Player
Classic Qute Theater (mpc-qt) aims to reproduce most of the interface
and functionality of mpc-hc while using libmpv to play video instead
of DirectShow.
https://github.com/cmdrkotori/mpc-qt
Added:
head/multimedia/mpc-qt/
head/multimedia/mpc-qt/Makefile (contents, props changed)
head/multimedia/mpc-qt/distinfo (contents, props changed)
head/multimedia/mpc-qt/files/
head/multimedia/mpc-qt/files/patch-helpers.cpp (contents, props changed)
head/multimedia/mpc-qt/pkg-descr (contents, props changed)
Modified:
head/multimedia/Makefile (contents, props changed)
Modified: head/multimedia/Makefile
==============================================================================
--- head/multimedia/Makefile Wed Sep 28 23:05:22 2016 (r422895)
+++ head/multimedia/Makefile Wed Sep 28 23:55:44 2016 (r422896)
@@ -248,6 +248,7 @@
SUBDIR += motion
SUBDIR += mp3cd
SUBDIR += mp4v2
+ SUBDIR += mpc-qt
SUBDIR += mpeg2codec
SUBDIR += mpeg2play
SUBDIR += mpeg4ip
Added: head/multimedia/mpc-qt/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/mpc-qt/Makefile Wed Sep 28 23:55:44 2016 (r422896)
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME= mpc-qt
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.0.0.s20160921
+CATEGORIES= multimedia audio
+MASTER_SITES= https://aur.archlinux.org/cgit/aur.git/plain/mpc-qt.desktop?h=mpc-qt-git&id=b1a6b91&dummy=/:desktop
+DISTFILES= mpc-qt.desktop:desktop
+EXTRACT_ONLY= ${DISTFILES:N*\:desktop:C/:.*//}
+
+MAINTAINER= jbeich at FreeBSD.org
+COMMENT= Qt 5 clone of Media Player Classic based on libmpv
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= libmpv.so:multimedia/mpv
+
+USE_GITHUB= yes
+GH_ACCOUNT= cmdrkotori
+GH_TAGNAME= e4c46f6
+
+USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake
+USE_QT5= qmake_build buildtools_build core gui network widgets x11extras
+USE_GL= gl
+CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \
+ -D_DECLARE_C99_LDBL_MATH # XXX ports/193528
+PLIST_FILES= bin/${PORTNAME} \
+ share/applications/${PORTNAME}.desktop \
+ share/pixmaps/${PORTNAME}.png
+
+post-patch:
+ @${REINPLACE_CMD} '/-Werror/d' ${WRKSRC}/${PORTNAME}.pro
+
+do-install:
+ ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
+ ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.desktop \
+ ${STAGEDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/images/bitmaps/icon.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+.include <bsd.port.mk>
Added: head/multimedia/mpc-qt/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/mpc-qt/distinfo Wed Sep 28 23:55:44 2016 (r422896)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1472598366
+SHA256 (mpc-qt.desktop) = 7694745aac0e52c050a6bc069a0686b025e509136919d985d3c4495eec0f1c9d
+SIZE (mpc-qt.desktop) = 1270
+SHA256 (cmdrkotori-mpc-qt-v0.0.0.s20160921-e4c46f6_GH0.tar.gz) = 2b4440ed6358e37f7e7b7ab2651ff71c583c0d02ca2545a40e75883b0db197c1
+SIZE (cmdrkotori-mpc-qt-v0.0.0.s20160921-e4c46f6_GH0.tar.gz) = 228828
Added: head/multimedia/mpc-qt/files/patch-helpers.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/mpc-qt/files/patch-helpers.cpp Wed Sep 28 23:55:44 2016 (r422896)
@@ -0,0 +1,21 @@
+https://github.com/cmdrkotori/mpc-qt/issues/46
+
+helpers.cpp:704:37: error: unknown type name 'Int'; did you mean 'int'?
+ int btn = std::log2(mb.operator Int()) + 2.5; // 1->0+2, 2->1+2, 4->2+2 etc.
+ ^~~
+ int
+helpers.cpp:704:28: error: no member named 'operator int' in 'QFlags<Qt::MouseButton>'
+ int btn = std::log2(mb.operator Int()) + 2.5; // 1->0+2, 2->1+2, 4->2+2 etc.
+ ~~ ^
+
+--- helpers.cpp.orig 2016-09-21 11:55:18 UTC
++++ helpers.cpp
+@@ -701,7 +701,7 @@ MouseState MouseState::fromMouseEvent(QM
+ Qt::MouseButtons mb = event->button();
+ if (mb == Qt::NoButton)
+ return MouseState();
+- int btn = std::log2(mb.operator Int()) + 2.5; // 1->0+2, 2->1+2, 4->2+2 etc.
++ int btn = std::log2(int(mb)) + 2.5; // 1->0+2, 2->1+2, 4->2+2 etc.
+ return MouseState(btn, (event->modifiers() >> 25)&15, press);
+ }
+
Added: head/multimedia/mpc-qt/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/mpc-qt/pkg-descr Wed Sep 28 23:55:44 2016 (r422896)
@@ -0,0 +1,7 @@
+Media Player Classic Home Cinema is considered by many to be the
+quintessential media player for the Windows desktop. Media Player
+Classic Qute Theater (mpc-qt) aims to reproduce most of the interface
+and functionality of mpc-hc while using libmpv to play video instead
+of DirectShow.
+
+WWW: https://github.com/cmdrkotori/mpc-qt
More information about the svn-ports-head
mailing list