all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Tomáš Čech" <sleep_walker@gnu.org>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add gnash.
Date: Wed, 18 Mar 2015 11:57:39 +0100	[thread overview]
Message-ID: <1426676259-22302-1-git-send-email-sleep_walker@gnu.org> (raw)

From: Tomáš Čech <sleep_walker@suse.cz>

* 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 <sleep_walker@suse.cz>
+;;;
+;;; 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	other threads:[~2015-03-18 10:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 10:57 Tomáš Čech [this message]
2015-03-19 16:17 ` [PATCH] gnu: Add gnash Ludovic Courtès
2015-03-19 21:22   ` Tomáš Čech
2015-03-20 21:10     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1426676259-22302-1-git-send-email-sleep_walker@gnu.org \
    --to=sleep_walker@gnu.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.