From owner-svn-ports-head@freebsd.org Wed Sep 28 23:55:46 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68DB9C01FD1; Wed, 28 Sep 2016 23:55:46 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 278AE192F; Wed, 28 Sep 2016 23:55:46 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8SNtjWu004393; Wed, 28 Sep 2016 23:55:45 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8SNtiDC004388; Wed, 28 Sep 2016 23:55:44 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201609282355.u8SNtiDC004388@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 28 Sep 2016 23:55:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r422896 - in head/multimedia: . mpc-qt mpc-qt/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 23:55:46 -0000 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@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 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' + 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