blob: 03b7e6a61d9be616dc9b81e051213f0d3fa1eb6e (
plain)
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
|
# Created by: Diego Depaoli <trebestie@gmail.com> and Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= smplayer
DISTVERSION= 14.9.0
PORTREVISION= 1
CATEGORIES= multimedia audio kde
MASTER_SITES= SF/${PORTNAME}/SMPlayer/${PORTVERSION}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Complete front-end based on Qt4 for mplayer
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/Copying.txt
RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
smplayer-skins>=0:${PORTSDIR}/multimedia/smplayer-skins \
smplayer-themes>=0:${PORTSDIR}/multimedia/smplayer-themes
USE_QT4= gui dbus network script xml moc_build rcc_build uic_build \
uic3_build porting_build linguist_build
ALL_TARGET= src/smplayer
CONFIGURE_WRKSRC= ${WRKSRC}/src
MAKE_ARGS+= PREFIX=${PREFIX} DESTDIR=${STAGEDIR}
USES= desktop-file-utils dos2unix gmake qmake tar:bzip2
DOS2UNIX_REGEX= .*.[^p][^n][^g]$
INSTALLS_ICONS= yes
PORTDOCS= Changelog Not_so_obvious_things.txt Readme.txt \
Release_notes.txt Watching_TV.txt
OPTIONS_DEFINE= DOCS DEBUG
# Do not use unstable versions
PORTSCOUT= skipv:14.3.0.6306
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|&& $$(QMAKE) $$(QMAKE_OPTS)||; \
s|lrelease|${LRELEASE}|; \
s|/share/man|/man|g; \
s| make| ${MAKE_CMD}|g' \
${WRKSRC}/Makefile
.if ${PORT_OPTIONS:MDEBUG}
@${REINPLACE_CMD} -e '/CONFIG += debug/s|#||' \
${WRKSRC}/src/smplayer.pro
.else
@${REINPLACE_CMD} -e '/DEFINES += NO_DEBUG_ON_CONSOLE/s|#||' \
${WRKSRC}/src/smplayer.pro
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|