3
0
Fork 0
forked from mirrors/nixpkgs

GNU Gnash 0.8.2, Agg 2.5.

svn path=/nixpkgs/trunk/; revision=11030
This commit is contained in:
Ludovic Courtès 2008-03-10 09:48:17 +00:00
parent d2c93e47a7
commit 7c7639a888
4 changed files with 40 additions and 17 deletions

View file

@ -1,5 +1,5 @@
source $stdenv/setup
source "$stdenv/setup" || exit 1
configureFlags="--with-sdl-mixer-incl=$SDL_mixer/include/SDL --with-sdl-incl=$SDL/include/SDL --with-plugindir=$out/plugins"
configureFlags="--with-sdl-mixer-incl=$SDL_mixer/include/SDL --with-sdl-incl=$SDL/include/SDL --with-plugindir=$out/plugins --enable-gui=gtk"
genericBuild

View file

@ -1,17 +1,38 @@
{stdenv, fetchurl, libX11, libXext, libXi, libXmu
{ stdenv, fetchurl, libX11, libXext, libXi, libXmu
, SDL, SDL_mixer, GStreamer
, libogg, libxml2, libjpeg, mesa, libpng}:
, libogg, libxml2, libjpeg, mesa, libpng
, boost, freetype, agg, dbus, curl, pkgconfig
, glib, gtk
, lib}:
stdenv.mkDerivation {
name = "gnash-0.7.2";
stdenv.mkDerivation rec {
name = "gnash-0.8.2";
builder = ./builder.sh;
src = fetchurl {
url = mirror://gnu/gnash/0.7.2/gnash-0.7.2.tar.bz2;
md5 = "ccef0f45be01a4c2992b46c2363a514f";
url = "mirror://gnu/gnash/0.8.2/${name}.tar.bz2";
sha256 = "1akbs0wkgiawrjwwgp5w0cqn0qn3fcnfv40scjlrvdqrcqgfg0ac";
};
patchPhase = ''
# Add all libs to `macros/libslist', a list of library search paths.
for lib in ${lib.concatStringsSep " "
(map (lib: "\"${lib}\"/lib")
(buildInputs ++ [stdenv.glibc]))}
do
echo -n "$lib " >> macros/libslist
done
'';
# XXX: KDE is supported as well so we could make it available optionally.
buildInputs = [libX11 libXext libXi libXmu SDL SDL_mixer GStreamer
libogg libxml2 libjpeg mesa libpng];
libogg libxml2 libjpeg mesa libpng boost freetype agg
dbus curl pkgconfig glib gtk];
inherit SDL_mixer SDL;
meta = {
homepage = http://www.gnu.org/software/gnash/;
description = ''Gnash is the GNU Flash movie player.'';
license = "GPLv3+";
};
} // {mozillaPlugin = "/plugins";}

View file

@ -1,11 +1,12 @@
{stdenv, fetchurl, autoconf, automake, libtool, pkgconfig}:
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig
, freetype, SDL }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "agg-2.5";
src = fetchurl {
url = http://www.antigrain.com/agg-2.5.tar.gz;
url = "http://www.antigrain.com/${name}.tar.gz";
sha256 = "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb";
};
buildInputs = [autoconf automake libtool pkgconfig];
buildInputs = [autoconf automake libtool pkgconfig freetype SDL];
preConfigure = "sh autogen.sh";
}

View file

@ -2192,11 +2192,10 @@ rec {
inherit stdenv fetchurl autoconf libtool gettext attr;
};
/*
agg = import ../development/libraries/agg {
inherit fetchurl stdenv autoconf automake libtool pkgconfig;
inherit fetchurl stdenv autoconf automake libtool pkgconfig
freetype SDL;
};
*/
apr = import ../development/libraries/apr {
inherit fetchurl stdenv;
@ -5112,7 +5111,9 @@ rec {
};
gnash = assert mesaSupported; import ../applications/video/gnash {
inherit fetchurl stdenv SDL SDL_mixer libogg libxml2 libjpeg mesa libpng;
inherit fetchurl stdenv SDL SDL_mixer libogg libxml2 libjpeg mesa libpng
boost freetype agg dbus curl pkgconfig lib;
inherit (gtkLibs) glib gtk;
GStreamer = gst_all.gstreamer;
inherit (xlibs) libX11 libXext libXi libXmu;
};