Update multimedia/shotcut to version 20.07.11
[dports.git] / multimedia / shotcut / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       shotcut
4 DISTVERSIONPREFIX=      v
5 DISTVERSION=    ${FULLVERSION}
6 CATEGORIES=     multimedia
7
8 MAINTAINER=     ports@FreeBSD.org
9 COMMENT=        Free, open source, cross-platform video editor
10
11 LICENSE=        GPLv3
12
13 LIB_DEPENDS=    libmlt.so:multimedia/mlt
14 RUN_DEPENDS=    ffmpeg:multimedia/ffmpeg \
15                 ${LOCALBASE}/lib/libjack.so:audio/jack
16
17 USES=           desktop-file-utils gl pkgconfig \
18                 qmake qt:5 sdl shared-mime-info \
19                 xorg
20
21 USE_GITHUB=     yes
22 GH_ACCOUNT=     mltframework
23
24 # Needed to be able to correctly check for updates in-app.
25 FULLVERSION=    20.07.11
26
27 USE_GL+=        gl
28 USE_QT=         buildtools_build concurrent_build core declarative \
29                 graphicaleffects_run gui multimedia network opengl \
30                 printsupport quickcontrols_run sql \
31                 sql-sqlite3_run webkit websockets widgets x11extras xml \
32                 linguisttools_build
33 USE_SDL=        sdl2
34 USE_XORG=       x11
35 QMAKE_ARGS=     ${PORTNAME:tu}_VERSION="${FULLVERSION}"
36
37 OPTIONS_DEFINE= FREI0R LADSPA NLS WEBVFX
38 OPTIONS_DEFAULT=FREI0R LADSPA WEBVFX
39 OPTIONS_SUB=    yes
40
41 WEBVFX_DESC=    HTML/QML-based video effects support
42
43 FREI0R_RUN_DEPENDS=     frei0r-plugins>=0:graphics/frei0r-plugins
44
45 LADSPA_RUN_DEPENDS=     swhplugins>=0:audio/swhplugins
46
47 WEBVFX_RUN_DEPENDS=     ${LOCALBASE}/lib/mlt/libmltwebvfx.so:multimedia/webvfx-qt5
48
49 post-patch:
50         @${REINPLACE_CMD} -e 's/"qmelt"/"melt"/' ${WRKSRC}/src/jobs/meltjob.cpp
51
52 pre-build:
53         @${FIND} ${WRKSRC} -name '.depend' -delete
54
55 .include <bsd.port.mk>