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