video.scm
| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
| 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; |
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 7 | ;;; under the terms of the GNU General Public License as published by |
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 9 | ;;; your option) any later version. |
| 10 | ;;; |
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ;;; GNU General Public License for more details. |
| 15 | ;;; |
| 16 | ;;; You should have received a copy of the GNU General Public License |
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | (define-module (more packages video) |
| 20 | #:use-module (guix packages) |
| 21 | #:use-module (guix download) |
| 22 | #:use-module (guix build-system gnu) |
| 23 | #:use-module ((guix licenses) #:prefix license:) |
| 24 | #:use-module (gnu packages) |
| 25 | #:use-module (gnu packages algebra) |
| 26 | #:use-module (more packages boost) |
| 27 | #:use-module (gnu packages compression) |
| 28 | #:use-module (gnu packages fontutils) |
| 29 | #:use-module (gnu packages gl) |
| 30 | #:use-module (gnu packages glib) |
| 31 | #:use-module (gnu packages gnome) |
| 32 | #:use-module (gnu packages libreoffice) ; hunspell |
| 33 | #:use-module (gnu packages linux) |
| 34 | #:use-module (gnu packages pkg-config) |
| 35 | #:use-module (gnu packages pulseaudio) |
| 36 | #:use-module (gnu packages video) |
| 37 | #:use-module (gnu packages wxwidgets) |
| 38 | #:use-module (gnu packages xorg)) |
| 39 | |
| 40 | (define-public ffms2 |
| 41 | (package |
| 42 | (name "ffms2") |
| 43 | (version "2.23") |
| 44 | (home-page "https://github.com/FFMS/ffms2/") |
| 45 | (source (origin |
| 46 | (method url-fetch) |
| 47 | (uri (string-append home-page "archive/" version ".tar.gz")) |
| 48 | (sha256 |
| 49 | (base32 |
| 50 | "1vbkab8vrplxz5xgag8ggzkwp4f7nf285pd0l2a7zy66n6i2m6xh")))) |
| 51 | (build-system gnu-build-system) |
| 52 | (arguments |
| 53 | '(#:configure-flags |
| 54 | (list "--enable-avresample"))) |
| 55 | (inputs |
| 56 | `(("zlib" ,zlib))) |
| 57 | (propagated-inputs |
| 58 | `(("ffmpeg" ,ffmpeg))) |
| 59 | (native-inputs |
| 60 | `(("pkg-config" ,pkg-config))) |
| 61 | (synopsis "Cross-plateform wrapper around ffmpeg/libav") |
| 62 | (description |
| 63 | "FFMpegSource is a wrapper library around ffmpeg/libav that allows |
| 64 | programmers to access a standard API to open and decompress media files") |
| 65 | (license license:gpl2+))); inherits from ffmpeg |
| 66 | ;; sources are distributed under a different license that the binary. |
| 67 | ;; see https://github.com/FFMS/ffms2/blob/master/COPYING |
| 68 | |
| 69 | (define-public aegisub |
| 70 | (package |
| 71 | (name "aegisub") |
| 72 | (version "3.2.2") |
| 73 | (source (origin |
| 74 | (method url-fetch) |
| 75 | (uri (string-append |
| 76 | "http://ftp.aegisub.org/pub/archives/releases/source/" |
| 77 | name "-" version ".tar.xz")) |
| 78 | (sha256 |
| 79 | (base32 |
| 80 | "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5")))) |
| 81 | (build-system gnu-build-system) |
| 82 | (arguments |
| 83 | `(#:configure-flags |
| 84 | (list "--disable-update-checker" |
| 85 | "--without-portaudio" |
| 86 | "--without-openal" |
| 87 | "--without-oss") |
| 88 | ;; tests require busted, a lua package we don't have yet |
| 89 | #:tests? #f)) |
| 90 | (inputs |
| 91 | `(("boost" ,boost) |
| 92 | ("desktop-file-utils" ,desktop-file-utils) |
| 93 | ("ffms2" ,ffms2) |
| 94 | ("fftw" ,fftw) |
| 95 | ("hunspell" ,hunspell) |
| 96 | ("mesa" ,mesa) |
| 97 | ("libass" ,libass) |
| 98 | ("alsa-lib" ,alsa-lib) |
| 99 | ("pulseaudio" ,pulseaudio) |
| 100 | ("libx11" ,libx11) |
| 101 | ("freetype" ,freetype) |
| 102 | ("wxwidgets-gtk2" ,wxwidgets-gtk2))) |
| 103 | (native-inputs |
| 104 | `(("intltool" ,intltool) |
| 105 | ("pkg-config" ,pkg-config))) |
| 106 | (home-page "http://www.aegisub.org/") |
| 107 | (synopsis "Subtitle engine") |
| 108 | (description "Aegisub helps translators create subtitles for video") |
| 109 | (license (list license:bsd-3 ; the package is licensed under the bsd-3, except |
| 110 | license:mpl1.1 ; for vendor/universalchardet under the mpl1.1 |
| 111 | license:expat)))) ; and src/gl that is under a license similar |
| 112 | ; the the Expat license, with a rewording (Software -> Materials). (called MIT |
| 113 | ; by upstream). See https://github.com/Aegisub/Aegisub/blob/master/LICENCE |
| 114 | ; src/MatroskaParser.(c|h) is under bsd-3 with permission from the author |
| 115 |