aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-09-29 07:55:44 +0800
committerjbeich <jbeich@FreeBSD.org>2016-09-29 07:55:44 +0800
commitd151fae5241f99f5c9546be08369ebdf465ae40a (patch)
tree2638637f0beeac2e2b3de2c6dac04046a15c496a /multimedia
parent45c78d1b8e4d955af62d678cb29a13ea5d55ac5c (diff)
downloadfreebsd-ports-gnome-d151fae5241f99f5c9546be08369ebdf465ae40a.tar.gz
freebsd-ports-gnome-d151fae5241f99f5c9546be08369ebdf465ae40a.tar.zst
freebsd-ports-gnome-d151fae5241f99f5c9546be08369ebdf465ae40a.zip
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
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/mpc-qt/Makefile42
-rw-r--r--multimedia/mpc-qt/distinfo5
-rw-r--r--multimedia/mpc-qt/files/patch-helpers.cpp21
-rw-r--r--multimedia/mpc-qt/pkg-descr7
5 files changed, 76 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 4f0859dc1f08..752047af3f62 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -248,6 +248,7 @@
SUBDIR += motion
SUBDIR += mp3cd
SUBDIR += mp4v2
+ SUBDIR += mpc-qt
SUBDIR += mpeg2codec
SUBDIR += mpeg2play
SUBDIR += mpeg4ip
diff --git a/multimedia/mpc-qt/Makefile b/multimedia/mpc-qt/Makefile
new file mode 100644
index 000000000000..a811a87e8966
--- /dev/null
+++ b/multimedia/mpc-qt/Makefile
@@ -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@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>
diff --git a/multimedia/mpc-qt/distinfo b/multimedia/mpc-qt/distinfo
new file mode 100644
index 000000000000..ec27ea6c3d19
--- /dev/null
+++ b/multimedia/mpc-qt/distinfo
@@ -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
diff --git a/multimedia/mpc-qt/files/patch-helpers.cpp b/multimedia/mpc-qt/files/patch-helpers.cpp
new file mode 100644
index 000000000000..442a208869cb
--- /dev/null
+++ b/multimedia/mpc-qt/files/patch-helpers.cpp
@@ -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);
+ }
+
diff --git a/multimedia/mpc-qt/pkg-descr b/multimedia/mpc-qt/pkg-descr
new file mode 100644
index 000000000000..92ee1ed9704c
--- /dev/null
+++ b/multimedia/mpc-qt/pkg-descr
@@ -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