diff options
Diffstat (limited to 'gnu/packages/animation.scm')
-rw-r--r-- | gnu/packages/animation.scm | 84 |
1 files changed, 80 insertions, 4 deletions
diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm index 3a915c7fda..6f116af63c 100644 --- a/gnu/packages/animation.scm +++ b/gnu/packages/animation.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2015, 2017 Ricardo Wurmus <[email protected]> ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <[email protected]> ;;; Copyright © 2019 Pkill -9 <[email protected]> -;;; Copyright © 2020 Vinicius Monego <[email protected]> +;;; Copyright © 2020, 2021 Vinicius Monego <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,10 +25,12 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages algebra) + #:use-module (gnu packages assembly) #:use-module (gnu packages autotools) #:use-module (gnu packages boost) #:use-module (gnu packages check) @@ -45,6 +47,8 @@ #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) #:use-module (gnu packages jemalloc) + #:use-module (gnu packages networking) + #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) @@ -174,7 +178,7 @@ C++ @dfn{Standard Template Library} (STL).") ("imagemagick" ,imagemagick) ("libxml++" ,libxml++) ("libsigc++" ,libsigc++) - ("mlt" ,mlt) + ("mlt" ,mlt-6) ("openexr" ,openexr) ("pango" ,pango))) (native-inputs @@ -320,6 +324,78 @@ audio or video backends, ensuring good performance.") (home-page "https://www.gnu.org/software/gnash/") (license license:gpl3+)))) +;; This package provides a standalone (no browser plugin) version of +;; Lightspark. +(define-public lightspark + (package + (name "lightspark") + (version "0.8.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lightspark/lightspark") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00535ndzjbz5xyr95cih01wlkc2mgvg60bv6amz4lnnglk0c5v0p")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ;requires Adobe Flex SDK, see README.tests + ;; Disable browser plugins because neither NPAPI nor PPAPI is + ;; supported in the browsers we have. + #:configure-flags + '("-DCOMPILE_NPAPI_PLUGIN=FALSE" + "-DCOMPILE_PPAPI_PLUGIN=FALSE") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'prepare-build-environment + (lambda _ + ;; Use relative etc path. + (substitute* "CMakeLists.txt" (("\\/etc") "etc")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./tests"))))))) + (native-inputs + `(("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") + ("nasm" ,nasm) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("python" ,python-wrapper))) + (inputs + `(("cairo" ,cairo) + ("curl" ,curl) + ("ffmpeg" ,ffmpeg) + ("freeglut" ,freeglut) + ("glew" ,glew) + ("glibmm" ,glibmm) + ("gnash" ,gnash) + ("gnutls" ,gnutls) + ("libjpeg" ,libjpeg-turbo) + ("openssl" ,openssl) + ("pango" ,pango) + ("pcre2" ,pcre2) + ("rtmpdump" ,rtmpdump) + ("sdl2" ,sdl2) + ("sdl2-mixer" ,sdl2-mixer) + ("zlib" ,zlib))) + (home-page "https://lightspark.github.io/") + (synopsis "Flash player implementation") + (description + "Lightspark is a Flash player implementation for playing files in the SWF +format. It supports SWF files written on all versions of the ActionScript +language.") + ;; NOTE: The bundled pugixml is a fork specific to Lightspark and + ;; incompatible with the one we have. + ;; FIXME: we also have jxrlib, but the build fails to find JXRMeta.h so we + ;; use the bundled one for now. + (license (list license:lgpl3+ ;lightspark + license:mpl2.0 ;avmplus + license:bsd-2 ;jxrlib + license:expat)))) ;pugixml, PerlinNoise + (define-public papagayo (let ((commit "e143684b30e59fe4a554f965cb655d23cbe93ee7") (revision "1")) @@ -374,7 +450,7 @@ audio or video backends, ensuring good performance.") qt))) #t)))))) (inputs - `(("qt" ,qtbase) + `(("qt" ,qtbase-5) ("qtmultimedia" ,qtmultimedia) ("libsndfile" ,libsndfile))) (native-inputs @@ -404,7 +480,7 @@ waveform until they line up with the proper sounds.") "0b1nwiwyg01087q318vymg4si76dw41ykxbn2zwd6dqbxzbpr1dh")))) (build-system gnu-build-system) (inputs - `(("qtbase" ,qtbase) + `(("qtbase" ,qtbase-5) ("qtxmlpatterns" ,qtxmlpatterns) ("qtmultimedia" ,qtmultimedia) ("qtsvg" ,qtsvg))) |