2008-03-10 16:05:32 +01:00
|
|
|
{ stdenv, fetchurl
|
2006-09-24 14:23:13 +02:00
|
|
|
, SDL, SDL_mixer, GStreamer
|
2008-03-10 10:48:17 +01:00
|
|
|
, libogg, libxml2, libjpeg, mesa, libpng
|
|
|
|
, boost, freetype, agg, dbus, curl, pkgconfig
|
2008-03-10 16:05:32 +01:00
|
|
|
, glib, gtk, x11
|
2008-03-10 10:48:17 +01:00
|
|
|
, lib}:
|
2006-09-24 14:23:13 +02:00
|
|
|
|
2008-03-10 10:48:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gnash-0.8.2";
|
2006-09-24 14:23:13 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-03-10 10:48:17 +01:00
|
|
|
url = "mirror://gnu/gnash/0.8.2/${name}.tar.bz2";
|
|
|
|
sha256 = "1akbs0wkgiawrjwwgp5w0cqn0qn3fcnfv40scjlrvdqrcqgfg0ac";
|
2006-09-24 14:23:13 +02:00
|
|
|
};
|
|
|
|
|
2008-03-10 14:24:11 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2008-03-10 10:48:17 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2008-03-11 13:37:22 +01:00
|
|
|
|
2008-03-10 10:48:17 +01:00
|
|
|
# XXX: KDE is supported as well so we could make it available optionally.
|
2008-03-10 16:05:32 +01:00
|
|
|
buildInputs = [x11 SDL SDL_mixer GStreamer
|
2008-03-10 10:48:17 +01:00
|
|
|
libogg libxml2 libjpeg mesa libpng boost freetype agg
|
|
|
|
dbus curl pkgconfig glib gtk];
|
2006-09-24 14:23:13 +02:00
|
|
|
inherit SDL_mixer SDL;
|
2008-03-10 10:48:17 +01:00
|
|
|
|
2008-03-10 16:05:32 +01:00
|
|
|
# Make sure `gtk-gnash' gets `libXext' in its `RPATH'.
|
|
|
|
NIX_LDFLAGS="-lX11 -lXext";
|
|
|
|
|
2008-03-10 14:24:11 +01:00
|
|
|
preInstall = ''ensureDir $out/plugins'';
|
|
|
|
postInstall = ''make install-plugins'';
|
|
|
|
|
2008-03-10 10:48:17 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.gnu.org/software/gnash/;
|
|
|
|
description = ''Gnash is the GNU Flash movie player.'';
|
|
|
|
license = "GPLv3+";
|
|
|
|
};
|
2006-09-24 23:56:50 +02:00
|
|
|
} // {mozillaPlugin = "/plugins";}
|