1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/multimedia/smplayer/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

83 lines
2.4 KiB
Makefile

# Created by: Diego Depaoli <trebestie@gmail.com> and Yinghong Liu <relaxbsd@gmail.com>
PORTNAME= smplayer
DISTVERSION= 21.1.0
PORTREVISION= 1
CATEGORIES= multimedia audio kde
MASTER_SITES= SF/${PORTNAME}/SMPlayer/${PORTVERSION}
MAINTAINER= vvd@unislabs.com
COMMENT= Complete front-end based on Qt for mplayer
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 gui network script widgets xml
USE_XORG= x11 xext
CPE_VENDOR= ricardo_villalba
DOS2UNIX_REGEX= .*.[^p][^n][^g]$
ALL_TARGET= src/smplayer
CONFIGURE_WRKSRC= ${WRKSRC}/src
MAKE_ARGS= PREFIX=${PREFIX} DESTDIR=${STAGEDIR}
QMAKE_ARGS= "DEFINES_DISABLED+=MPLAYER2_SUPPORT"
PORTDOCS= Changelog Not_so_obvious_things.txt \
Readme.txt Release_notes.txt Watching_TV.txt
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|&& $$(QMAKE) $$(QMAKE_OPTS)||; \
s|lrelease|${LRELEASE}|; \
s| make| ${MAKE_CMD}|g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|-O2 -W -Wall -Werror|${CFLAGS}|' \
${WRKSRC}/webserver/Makefile
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}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>