blob: c8c5569b4786901f1610ba57bf2ad73dea7f626d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $FreeBSD$
PORTNAME= baka-mplayer
DISTVERSIONPREFIX= v
DISTVERSION= 2.0.4
PORTREVISION= 3
CATEGORIES= multimedia audio
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Qt 5 multimedia player based on libmpv
LICENSE= GPLv2
LIB_DEPENDS= libmpv.so:multimedia/mpv
USE_GITHUB= yes
GH_ACCOUNT= u8sand
GH_PROJECT= Baka-MPlayer
USES= compiler:c++11-lib pkgconfig qmake qt:5
USE_QT= qmake_build buildtools_build gui network svg widgets x11extras
QMAKE_SOURCE_PATH=${WRKSRC}/src
QMAKE_ARGS= lupdate="${LUPDATE}" lrelease="${LRELEASE}"
OPTIONS_DEFINE= DOCS NLS NOTO
OPTIONS_SUB= yes
NLS_USES= qt:5
NLS_USE= QT=linguisttools_build
NLS_QMAKE_ON= CONFIG+="install_translations"
NOTO_DESC= Original look with Noto Sans font
NOTO_RUN_DEPENDS= noto>0:x11-fonts/noto
post-patch:
${REINPLACE_CMD} '/^Comment/s,=.*,=${COMMENT},' \
${WRKSRC}/etc/${PORTNAME}.desktop
${REINPLACE_CMD} -e 's,/usr,${PREFIX},' \
-e 's,share/man,man,' \
${WRKSRC}/src/Baka-MPlayer.pro
post-install:
@(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)
.include <bsd.port.mk>
|