gnu: Add shotcut.
* gnu/packages/video.scm (shotcut): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
49e8fa4a3d
commit
0b1cf40dce
1 changed files with 77 additions and 0 deletions
|
@ -86,6 +86,7 @@ (define-module (gnu packages video)
|
|||
#:use-module (guix build-system meson)
|
||||
#:use-module (guix build-system perl)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (guix build-system qt)
|
||||
#:use-module (guix build-system waf)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (gnu packages)
|
||||
|
@ -4607,6 +4608,82 @@ (define-public openshot
|
|||
transitions, and effects and then export your film to many common formats.")
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public shotcut
|
||||
(package
|
||||
(name "shotcut")
|
||||
(version "21.03.21")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/mltframework/shotcut")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0jb488vynn0vmq22z51bg4hb4617732nva9rg52lzl89v5n8gmsi"))))
|
||||
(build-system qt-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ;there are no tests
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out")))
|
||||
(invoke "qmake"
|
||||
(string-append "PREFIX=" out)
|
||||
"QMAKE_LRELEASE=lrelease"
|
||||
"QMAKE_LUPDATE=lupdate"
|
||||
"shotcut.pro"))))
|
||||
(add-after 'install 'wrap-executable
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(frei0r (assoc-ref inputs "frei0r-plugins"))
|
||||
(ffmpeg (assoc-ref inputs "ffmpeg"))
|
||||
(jack (assoc-ref inputs "jack"))
|
||||
(sdl2 (assoc-ref inputs "sdl2")))
|
||||
(wrap-program (string-append out "/bin/shotcut")
|
||||
`("PATH" ":" prefix
|
||||
,(list (string-append ffmpeg "/bin")))
|
||||
`("LD_LIBRARY_PATH" ":" prefix
|
||||
,(list (string-append jack "/lib" ":" sdl2 "/lib")))
|
||||
`("FREI0R_PATH" ":" =
|
||||
(,(string-append frei0r "/lib/frei0r-1/")))
|
||||
`("MLT_PREFIX" ":" =
|
||||
(,(assoc-ref inputs "mlt")))))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)
|
||||
("python" ,python-wrapper)
|
||||
("qttools" ,qttools)))
|
||||
(inputs
|
||||
`(("ffmpeg" ,ffmpeg)
|
||||
("frei0r-plugins" ,frei0r-plugins)
|
||||
("jack" ,jack-1)
|
||||
("ladspa" ,ladspa)
|
||||
("lame" ,lame)
|
||||
("libvpx" ,libvpx)
|
||||
("libx264" ,libx264)
|
||||
("mlt" ,mlt)
|
||||
("pulseaudio" ,pulseaudio)
|
||||
("qtbase" ,qtbase-5)
|
||||
("qtdeclarative" ,qtdeclarative)
|
||||
("qtgraphicaleffects" ,qtgraphicaleffects)
|
||||
("qtmultimedia" ,qtmultimedia)
|
||||
("qtquickcontrols" ,qtquickcontrols)
|
||||
("qtquickcontrols2" ,qtquickcontrols2)
|
||||
("qtsvg" ,qtsvg)
|
||||
("qtwebkit" ,qtwebkit)
|
||||
("qtwebsockets" ,qtwebsockets)
|
||||
("qtx11extras" ,qtx11extras)
|
||||
("sdl2" ,sdl2)))
|
||||
(home-page "https://www.shotcut.org/")
|
||||
(synopsis "Video editor built on the MLT framework")
|
||||
(description
|
||||
"Shotcut is a video editor built on the MLT framework. Features include
|
||||
a wide range of formats through @code{ffmpeg}, 4k resolution support, webcam
|
||||
and audio capture, network stream playback, and many more.")
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public dav1d
|
||||
(package
|
||||
(name "dav1d")
|
||||
|
|
Loading…
Reference in a new issue