2008-03-10 15:05:32 +00:00
|
|
|
{ stdenv, fetchurl
|
2006-09-24 12:23:13 +00:00
|
|
|
, SDL, SDL_mixer, GStreamer
|
2008-07-06 21:46:33 +00:00
|
|
|
, libogg, libxml2, libjpeg, mesa, libpng, libtool
|
2008-03-10 09:48:17 +00:00
|
|
|
, 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 12:23:13 +00:00
|
|
|
|
2008-06-25 08:50:39 +00:00
|
|
|
let version = "0.8.3"; in
|
2008-03-10 09:48:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-06-25 08:50:39 +00:00
|
|
|
name = "gnash-${version}";
|
2006-09-24 12:23:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-25 08:50:39 +00:00
|
|
|
url = "mirror://gnu/gnash/${version}/${name}.tar.bz2";
|
2008-06-13 04:54:22 +00:00
|
|
|
sha256 = "16n32774sd5q4nkd95v2m8r2yfa9fk30jnq1iicarq3j8i2xh7xg";
|
2006-09-24 12:23:13 +00: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-06-25 08:50:39 +00:00
|
|
|
|
|
|
|
# Make sure to honor $TMPDIR, for chroot builds.
|
|
|
|
for file in configure gui/Makefile.in Makefile.in
|
|
|
|
do
|
|
|
|
sed -i "$file" -es'|/tmp/|$TMPDIR/|g'
|
|
|
|
done
|
2008-03-10 09:48:17 +00:00
|
|
|
'';
|
|
|
|
|
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-07-06 21:46:33 +00:00
|
|
|
buildInputs = [x11 SDL SDL_mixer GStreamer libtool
|
2008-03-10 09:48:17 +00:00
|
|
|
libogg libxml2 libjpeg mesa libpng boost freetype agg
|
|
|
|
dbus curl pkgconfig glib gtk];
|
2006-09-24 12:23:13 +00: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 21:56:50 +00:00
|
|
|
} // {mozillaPlugin = "/plugins";}
|