blob: b5d5c4a2ce4f0f73e12b0421e0afcf519df6ba84 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
PORTNAME= smplayer
DISTVERSION= 23.12.0
CATEGORIES= multimedia audio kde
MASTER_SITES= SF/${PORTNAME}/SMPlayer/${PORTVERSION}
MAINTAINER= vvd@FreeBSD.org
COMMENT= Complete front-end based on Qt for mplayer
WWW= https://www.smplayer.info/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/Copying.txt
USES= cpe compiler:c++11-lang desktop-file-utils dos2unix gl \
gmake qmake qt:5 tar:bzip2 xorg
USE_GL= gl
USE_QT= buildtools:build linguisttools:build \
core dbus declarative gui network widgets xml
USE_XORG= x11 xext
CPE_VENDOR= ricardo_villalba
DOS2UNIX_GLOB= *.md *.txt
ALL_TARGET= src/smplayer
CONFIGURE_WRKSRC= ${WRKSRC}/src
MAKE_ENV= DESTDIR=${STAGEDIR} LRELEASE=${LRELEASE}
QMAKE_ARGS= "DEFINES_DISABLED+=MPLAYER2_SUPPORT"
PORTDOCS= ${DOCS:T}
DOCS= old-docs/Changelog old-docs/dvdmenus.txt old-docs/Finding_subtitles.txt \
old-docs/Not_so_obvious_things.txt old-docs/Release_notes.txt \
old-docs/Watching_TV.txt README.md Readme.txt Release_notes.md
OPTIONS_MULTI= ENGINE
OPTIONS_MULTI_ENGINE= MPLAYER MPV
OPTIONS_DEFINE= DOCS DEBUG SKINS THEMES
OPTIONS_DEFAULT= MPV SKINS THEMES
ENGINE_DESC= Multimedia engine
MPLAYER_DESC= Allow to use MPlayer as multimedia engine
MPV_DESC= Allow to use mpv as multimedia engine
SKINS_DESC= Install additional skins
THEMES_DESC= Install additional themes
MPLAYER_RUN_DEPENDS= mplayer:multimedia/mplayer
MPLAYER_QMAKE_OFF= "DEFINES_DISABLED+=MPLAYER_SUPPORT"
MPV_RUN_DEPENDS= mpv:multimedia/mpv
MPV_QMAKE_OFF= "DEFINES_DISABLED+=MPV_SUPPORT"
SKINS_RUN_DEPENDS= smplayer-skins>=0:multimedia/smplayer-skins
THEMES_RUN_DEPENDS= smplayer-themes>=0:multimedia/smplayer-themes
# Do not use unstable versions
PORTSCOUT= site:http://sourceforge.net/projects/smplayer/files/Unstable/releases/
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|-O2 -W -Wall -Werror|${CFLAGS}|' \
${WRKSRC}/webserver/Makefile
@${REINPLACE_CMD} -e 's|^sed|#sed|' \
${WRKSRC}/install_appdata.sh
post-patch-DEBUG-on:
@${REINPLACE_CMD} -e '/CONFIG += debug/s|#||' \
${WRKSRC}/src/smplayer.pro
post-patch-DEBUG-off:
@${REINPLACE_CMD} -e '/DEFINES += NO_DEBUG_ON_CONSOLE/s|#||' \
${WRKSRC}/src/smplayer.pro
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/simple_web_server
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|