From 8d6af9d47111f60bcdc44f7e301c9fd9cd442414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 23 Aug 2010 14:52:48 +0000 Subject: [PATCH] GNU Gnash 0.8.8. svn path=/nixpkgs/trunk/; revision=23365 --- pkgs/applications/video/gnash/builder.sh | 14 --------- pkgs/applications/video/gnash/default.nix | 35 +++++++++++++++-------- pkgs/top-level/all-packages.nix | 3 +- 3 files changed, 25 insertions(+), 27 deletions(-) delete mode 100644 pkgs/applications/video/gnash/builder.sh diff --git a/pkgs/applications/video/gnash/builder.sh b/pkgs/applications/video/gnash/builder.sh deleted file mode 100644 index 411b86d68a16..000000000000 --- a/pkgs/applications/video/gnash/builder.sh +++ /dev/null @@ -1,14 +0,0 @@ -source "$stdenv/setup" - -configureFlags=" \ - --with-sdl-incl=$SDL/include/SDL \ - --with-npapi-plugindir=$out/plugins \ - --enable-media=gst \ - --enable-gui=gtk" - -# In `libmedia', Gnash compiles with "-I$gstPluginsBase/include", -# whereas it really needs "-I$gstPluginsBase/include/gstreamer-0.10". -# Work around this using GCC's $CPATH variable. -export CPATH="$gstPluginsBase/include/gstreamer-0.10" - -genericBuild diff --git a/pkgs/applications/video/gnash/default.nix b/pkgs/applications/video/gnash/default.nix index 8b6ac0c451b5..00369be6c993 100644 --- a/pkgs/applications/video/gnash/default.nix +++ b/pkgs/applications/video/gnash/default.nix @@ -1,24 +1,23 @@ { stdenv, fetchurl -, SDL, SDL_mixer, gstreamer, gstPluginsBase, gstFfmpeg +, SDL, SDL_mixer, gstreamer, gstPluginsBase, gstPluginsGood +, gstFfmpeg, speex , libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool , boost, freetype, agg, dbus, curl, pkgconfig, gettext -, glib, gtk, x11, ming, dejagnu, python +, glib, gtk, gtkglext, x11, ming, dejagnu, python , lib, makeWrapper }: assert stdenv ? glibc; -let version = "0.8.6"; in +let version = "0.8.8"; in stdenv.mkDerivation rec { name = "gnash-${version}"; src = fetchurl { url = "mirror://gnu/gnash/${version}/${name}.tar.bz2"; - sha256 = "1sijafl5c5a005p8jxgn1cdmxkj7a6142dklrlzm9g55n9gbgx05"; + sha256 = "0872qrgzpy76lxq5b2xigyzaghn53xrpqba2qp3nrk8yz20lpb6w"; }; - builder = ./builder.sh; - patchPhase = '' # Add all libs to `macros/libslist', a list of library search paths. for lib in ${lib.concatStringsSep " " @@ -35,24 +34,36 @@ stdenv.mkDerivation rec { done ''; - # XXX: KDE is supported as well so we could make it available optionally. buildInputs = [ - gettext x11 SDL SDL_mixer gstreamer gstPluginsBase gstFfmpeg libtool + gettext x11 SDL SDL_mixer gstreamer gstPluginsBase gstPluginsGood + gstFfmpeg speex libtool libogg libxml2 libjpeg mesa libpng libungif boost freetype agg - dbus curl pkgconfig glib gtk + dbus curl pkgconfig glib gtk gtkglext makeWrapper # For the test suite ming dejagnu python ]; - inherit SDL_mixer SDL gstPluginsBase; + preConfigure = + '' configureFlags=" \ + --with-sdl-incl=${SDL}/include/SDL \ + --with-npapi-plugindir=$out/plugins \ + --enable-media=gst \ + --enable-gui=gtk" + + # In `libmedia', Gnash compiles with "-I$gstPluginsBase/include", + # whereas it really needs "-I$gstPluginsBase/include/gstreamer-0.10". + # Work around this using GCC's $CPATH variable. + export CPATH="${gstPluginsBase}/include/gstreamer-0.10:${gstPluginsGood}/include/gstreamer-0.10" + echo "\$CPATH set to \`$CPATH'" + ''; # Make sure `gtk-gnash' gets `libXext' in its `RPATH'. NIX_LDFLAGS="-lX11 -lXext"; - #doCheck = true; + doCheck = true; preInstall = ''ensureDir $out/plugins''; postInstall = '' @@ -64,7 +75,7 @@ stdenv.mkDerivation rec { do wrapProgram "$prog" --prefix \ GST_PLUGIN_PATH ":" \ - "${gstPluginsBase}/lib/gstreamer-0.10:${gstFfmpeg}/lib/gstreamer-0.10" + "${gstPluginsBase}/lib/gstreamer-0.10:${gstPluginsGood}/lib/gstreamer-0.10:${gstFfmpeg}/lib/gstreamer-0.10" done ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c3415d33e2e..d2b94837e772 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5556,7 +5556,8 @@ let gnash = callPackage ../applications/video/gnash { inherit (gtkLibs) glib gtk; - inherit (gst_all) gstreamer gstPluginsBase gstFfmpeg; + inherit (gnome) gtkglext; + inherit (gst_all) gstreamer gstPluginsBase gstPluginsGood gstFfmpeg; }; gnome_mplayer = callPackage ../applications/video/gnome-mplayer {