diff options
author | makc <makc@FreeBSD.org> | 2014-10-20 05:42:38 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2014-10-20 05:42:38 +0800 |
commit | 2295a90e08a2006de68e1c3d20326ebd4aaaba83 (patch) | |
tree | aaf82ec6bd5e9e1f86734812dc1c113babb3f758 /multimedia/baka-mplayer | |
parent | 63259d208804d4523471cfb6a801d4724e8830d1 (diff) | |
download | freebsd-ports-gnome-2295a90e08a2006de68e1c3d20326ebd4aaaba83.tar.gz freebsd-ports-gnome-2295a90e08a2006de68e1c3d20326ebd4aaaba83.tar.zst freebsd-ports-gnome-2295a90e08a2006de68e1c3d20326ebd4aaaba83.zip |
Add new port multimedia/baka-mplayer:
Qt 5 multimedia player based on Mpv.
WWW: http://bakamplayer.u8sand.net/
PR: 193455
Submitted by: Jan Beich
Diffstat (limited to 'multimedia/baka-mplayer')
-rw-r--r-- | multimedia/baka-mplayer/Makefile | 55 | ||||
-rw-r--r-- | multimedia/baka-mplayer/distinfo | 2 | ||||
-rw-r--r-- | multimedia/baka-mplayer/files/patch-src__ui__mainwindow.ui | 22 | ||||
-rw-r--r-- | multimedia/baka-mplayer/pkg-descr | 5 | ||||
-rw-r--r-- | multimedia/baka-mplayer/pkg-plist | 14 |
5 files changed, 98 insertions, 0 deletions
diff --git a/multimedia/baka-mplayer/Makefile b/multimedia/baka-mplayer/Makefile new file mode 100644 index 000000000000..de3fcbee1788 --- /dev/null +++ b/multimedia/baka-mplayer/Makefile @@ -0,0 +1,55 @@ +# $FreeBSD$ + +PORTNAME= baka-mplayer +DISTVERSION= 1.9.9-alpha +CATEGORIES= multimedia audio + +MAINTAINER= jbeich@vfemail.net +COMMENT= Qt 5 multimedia player based on Mpv + +LICENSE= GPLv2 + +LIB_DEPENDS= libmpv.so:${PORTSDIR}/multimedia/mpv + +USE_GITHUB= yes +GH_ACCOUNT= u8sand +GH_PROJECT= Baka-MPlayer +GH_TAGNAME= v${DISTVERSION} +GH_COMMIT= 27310b1 + +USES= cmake compiler:c++11-lib ninja pkgconfig +USE_QT5= qmake_build buildtools_build gui network svg widgets x11extras +INSTALLS_ICONS= yes + +OPTIONS_DEFINE= NOTO +NOTO_DESC= Original look with Noto Sans font +NOTO_RUN_DEPENDS= noto>0:${PORTSDIR}/x11-fonts/noto + +.include <bsd.port.options.mk> + +post-patch: + ${REINPLACE_CMD} '/^Comment/s,=.*,=${COMMENT},' \ + ${WRKSRC}/etc/sbin/pkgbuild/${PORTNAME}.desktop + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/etc/doc/${PORTNAME}.man \ + ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1 + ${INSTALL_DATA} ${WRKSRC}/etc/sbin/pkgbuild/${PORTNAME}.desktop \ + ${STAGEDIR}${DESKTOPDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/etc/doc/${PORTNAME}.md \ + ${STAGEDIR}${PREFIX}/share/doc/${PORTNAME} +.endif + @cd ${WRKSRC}/etc/logo && for f in *.png; do \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%.*}/apps; \ + ${INSTALL_DATA} -v $$f \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%.*}/apps/${PORTNAME}.$${f#*.}; \ + done + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/scalable/apps + ${INSTALL_DATA} ${WRKSRC}/etc/logo/${PORTNAME}-icon.svg \ + ${STAGEDIR}${PREFIX}/share/icons/scalable/apps/${PORTNAME}.svg + +.include <bsd.port.mk> diff --git a/multimedia/baka-mplayer/distinfo b/multimedia/baka-mplayer/distinfo new file mode 100644 index 000000000000..e29a6c2594e2 --- /dev/null +++ b/multimedia/baka-mplayer/distinfo @@ -0,0 +1,2 @@ +SHA256 (baka-mplayer-1.9.9-alpha.tar.gz) = a50f8425f618d83c8c663d35d835eba34db328ca81a1ae50fb97c6fec3f52826 +SIZE (baka-mplayer-1.9.9-alpha.tar.gz) = 381018 diff --git a/multimedia/baka-mplayer/files/patch-src__ui__mainwindow.ui b/multimedia/baka-mplayer/files/patch-src__ui__mainwindow.ui new file mode 100644 index 000000000000..24c4171446c7 --- /dev/null +++ b/multimedia/baka-mplayer/files/patch-src__ui__mainwindow.ui @@ -0,0 +1,22 @@ +To workaround the following error + + In file included from src/ui/mainwindow.cpp:2: + build/ui/ui_mainwindow.h:1077:25: error: no member named 'setPlaceholderText' in + 'QPlainTextEdit' + outputTextEdit->setPlaceholderText(QApplication::translate("MainWind... + ~~~~~~~~~~~~~~ ^ + 1 error generated. + *** Error code 1 + +--- src/ui/mainwindow.ui~ ++++ src/ui/mainwindow.ui +@@ -222,9 +222,6 @@ QScrollBar::add-page:horizontal, QScroll + <property name="readOnly"> + <bool>true</bool> + </property> +- <property name="placeholderText"> +- <string>Baka MPlayer loaded...</string> +- </property> + </widget> + </widget> + <widget class="QWidget" name="playlistLayoutWidget" native="true"> diff --git a/multimedia/baka-mplayer/pkg-descr b/multimedia/baka-mplayer/pkg-descr new file mode 100644 index 000000000000..7327c0cbd976 --- /dev/null +++ b/multimedia/baka-mplayer/pkg-descr @@ -0,0 +1,5 @@ +Baka MPlayer is a free and open source, cross-platform, libmpv based +multimedia player. Its simple design reflects the idea for an +uncluttered, simple, and enjoyable environment for watching anime. + +WWW: http://bakamplayer.u8sand.net/ diff --git a/multimedia/baka-mplayer/pkg-plist b/multimedia/baka-mplayer/pkg-plist new file mode 100644 index 000000000000..0006a03c5fa4 --- /dev/null +++ b/multimedia/baka-mplayer/pkg-plist @@ -0,0 +1,14 @@ +bin/baka-mplayer +man/man1/baka-mplayer.1.gz +share/applications/baka-mplayer.desktop +%%PORTDOCS%%%%DOCSDIR%%/baka-mplayer.md +share/icons/hicolor/128x128/apps/baka-mplayer.png +share/icons/hicolor/16x16/apps/baka-mplayer.png +share/icons/hicolor/24x24/apps/baka-mplayer.png +share/icons/hicolor/256x256/apps/baka-mplayer.png +share/icons/hicolor/32x32/apps/baka-mplayer.png +share/icons/hicolor/48x48/apps/baka-mplayer.png +share/icons/hicolor/512x512/apps/baka-mplayer.png +share/icons/hicolor/64x64/apps/baka-mplayer.png +share/icons/hicolor/96x96/apps/baka-mplayer.png +share/icons/scalable/apps/baka-mplayer.svg |