guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add gnash.


From: Tomáš Čech
Subject: [PATCH] gnu: Add gnash.
Date: Wed, 18 Mar 2015 11:57:39 +0100

From: Tomáš Čech <address@hidden>

* gnu/packages/gnash.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add the file.
---
 gnu-system.am          |   1 +
 gnu/packages/gnash.scm | 129 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)
 create mode 100644 gnu/packages/gnash.scm

diff --git a/gnu-system.am b/gnu-system.am
index 2bed50f..145a03d 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -121,6 +121,7 @@ GNU_SYSTEM_MODULES =                                \
   gnu/packages/gkrellm.scm                     \
   gnu/packages/gl.scm                          \
   gnu/packages/glib.scm                                \
+  gnu/packages/gnash.scm                       \
   gnu/packages/gnome.scm                       \
   gnu/packages/gnunet.scm                      \
   gnu/packages/gnupg.scm                       \
diff --git a/gnu/packages/gnash.scm b/gnu/packages/gnash.scm
new file mode 100644
index 0000000..f0306c4
--- /dev/null
+++ b/gnu/packages/gnash.scm
@@ -0,0 +1,129 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Tomáš Čech <address@hidden>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages gnash)
+  #:use-module ((guix licenses) #:prefix l:)
+  #:use-module (guix packages)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages bash)
+  #:use-module (gnu packages boost)
+  #:use-module (gnu packages curl)
+  #:use-module (gnu packages cyrus-sasl)
+  #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gnome)
+  #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages gnuzilla)
+  #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gstreamer)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages image)
+  #:use-module (gnu packages openssl)
+  #:use-module (gnu packages perl)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages qt)
+  #:use-module (gnu packages sdl)
+  #:use-module (gnu packages video)
+  #:use-module (gnu packages xiph)
+  #:use-module (gnu packages)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  )
+
+(define-public gnash
+  (package
+    (name "gnash")
+    (version "0.8.10+")
+    (source
+     (origin
+       ;; release is too old to be built correctly against ffmpeg, libjpeg and
+       ;; more, lets go with head containing all required fixes already
+       (method git-fetch)
+       (uri (git-reference
+             (url "git://git.sv.gnu.org/gnash.git")
+             (commit "6675d736bf4d7")))
+       (sha256
+        (base32 "0j9mvg2jdp398dfdnmxfzhiaqm79h0ic2airmvgmf22rrsx2flgw"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("libtool" ,libtool)
+       ("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("bash" ,bash)))
+    (inputs
+     ;; gstreamer 0.10 is required, but not available, gstreamer-1.0 not
+     ;; supported yet - lets go with ffmpeg instead
+     `(("agg" ,agg)
+       ("boost" ,boost)
+       ("curl" ,curl) ; FIXME: compile in RTMP support
+       ("cyrus-sasl" ,cyrus-sasl)
+       ("ffmpeg" ,ffmpeg)
+       ("gconf" ,gconf)
+       ("gettext" ,gnu-gettext)
+       ("giflib" ,giflib)
+       ("gtk+-2" ,gtk+-2)
+       ("icecat" ,icecat)
+       ("libgcrypt" ,libgcrypt)
+       ("libjpeg" ,libjpeg)
+       ("libltdl" ,libltdl)
+       ("npapi-sdk" ,npapi-sdk)
+       ("nspr" ,nspr)
+       ("openssl" ,openssl)
+       ("pango" ,pango)
+       ("pangox-compat" ,pangox-compat)
+       ("perl" ,perl)
+       ("qt-4" ,qt-4)
+       ("sdl", sdl)
+       ("speex", speex)))
+    (arguments
+     `(#:configure-flags
+       (list
+        "--enable-media=ffmpeg" "--disable-jemalloc"
+        "--with-npapi-install=system"
+        (string-append "--with-npapi-plugindir=" (assoc-ref %outputs "out")
+                       "/lib/mozilla/plugins")
+        (string-append "--with-pango-incl="
+                       (assoc-ref %build-inputs "pango") "/include/pango-1.0")
+        (string-append "--with-pango-lib="
+                       (assoc-ref %build-inputs "pangox-compat") "/lib")
+        (string-append "--with-boost-incl="
+                       (assoc-ref %build-inputs "boost") "/include/")
+        (string-append "--with-boost-lib="
+                       (assoc-ref %build-inputs "boost") "/lib")
+        (string-append "--with-npapi-incl=" (assoc-ref %build-inputs "icecat")
+                       "/include/icecat-31.5.0"))
+       #:phases
+       (alist-cons-after
+        'unpack 'autoreconf
+        (lambda _
+          (zero? (system* "sh" "autogen.sh")))
+        (alist-cons-after
+         'install 'install-plugins
+         (lambda _
+           (zero? (system* "make" "install-plugins")))
+        %standard-phases))))
+    (home-page "https://www.gnu.org/software/gnash/";)
+    (synopsis "GNU Flash movie player")
+    (description "GNU Gnash is the GNU Flash movie player — Flash is an
+animation file format pioneered by Macromedia which continues to be supported 
by
+their successor company, Adobe.  Flash has been extended to include audio and
+video content, and programs written in ActionScript, an ECMAScript-compatible
+language.  Gnash is based on GameSWF, and supports most SWF v7 features and
+some SWF v8 and v9.  SWF v10 is not supported by GNU Gnash.")
+    (license l:gpl3)))
-- 
2.2.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]