Add new port multimedia/baka-mplayer:
Qt 5 multimedia player based on Mpv. WWW: http://bakamplayer.u8sand.net/ PR: 193455 Submitted by: Jan Beich
This commit is contained in:
parent
9fa97cff87
commit
570e007967
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371210
6 changed files with 99 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
SUBDIR += avidemux26-plugins
|
||||
SUBDIR += avidemux26-qt4
|
||||
SUBDIR += avinfo
|
||||
SUBDIR += baka-mplayer
|
||||
SUBDIR += bangarang
|
||||
SUBDIR += banshee
|
||||
SUBDIR += bino
|
||||
|
|
55
multimedia/baka-mplayer/Makefile
Normal file
55
multimedia/baka-mplayer/Makefile
Normal file
|
@ -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>
|
2
multimedia/baka-mplayer/distinfo
Normal file
2
multimedia/baka-mplayer/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (baka-mplayer-1.9.9-alpha.tar.gz) = a50f8425f618d83c8c663d35d835eba34db328ca81a1ae50fb97c6fec3f52826
|
||||
SIZE (baka-mplayer-1.9.9-alpha.tar.gz) = 381018
|
22
multimedia/baka-mplayer/files/patch-src__ui__mainwindow.ui
Normal file
22
multimedia/baka-mplayer/files/patch-src__ui__mainwindow.ui
Normal file
|
@ -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">
|
5
multimedia/baka-mplayer/pkg-descr
Normal file
5
multimedia/baka-mplayer/pkg-descr
Normal file
|
@ -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/
|
14
multimedia/baka-mplayer/pkg-plist
Normal file
14
multimedia/baka-mplayer/pkg-plist
Normal file
|
@ -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
|
Loading…
Reference in a new issue