Subject: [PATCH 2/2] gnu: Add webvfx.
From: Vinicius Monego <[email-masked]>
To: [email-masked]
Cc: Vinicius Monego <[email-masked]>
Date: Sun, 21 Jun 2020 15:25:47 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/video.scm (webvfx): New variable.
---
 gnu/packages/video.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index e51729138c..a0b454c403 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -2390,6 +2390,44 @@ functionality of the system is provided via an assortment of ready to use
 tools, XML authoring components, and an extensible plug-in based API.")
     (license license:gpl3)))
 
+(define-public webvfx
+  (package
+    (name "webvfx")
+    (version "1.2.0")
+    (source
+     (origin
+      (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mltframework/webvfx")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0brpnf2yllx3510dlm1p7bq5p5havnvr1bglhsbl2f07281m7nl1"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda _
+             (let ((out (assoc-ref %outputs "out")))
+               (invoke "qmake"
+                       (string-append "PREFIX=" out)
+                       "all.pro")))))))
+    (native-inputs
+     `(("qmake" ,qttools)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("qtbase" ,qtbase)
+       ("qtdeclarative" ,qtdeclarative)
+       ("qtwebkit" ,qtwebkit)))
+    (propagated-inputs
+     `(("mlt" ,mlt)))
+    (home-page "https://github.com/mltframework/webvfx")
+    (synopsis "Video effects engine based on web technologies")
+    (description "WebVfx is a video effects library that allows effects to
+be implemented using WebKit HTML or Qt QML.")
+    (license license:bsd-3)))
+
 (define-public v4l-utils
   (package
     (name "v4l-utils")
-- 
2.20.1