GNU Gnash 0.8.8.
svn path=/nixpkgs/trunk/; revision=23365
This commit is contained in:
parent
6ffaf59086
commit
8d6af9d471
@ -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
|
|
@ -1,24 +1,23 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
, SDL, SDL_mixer, gstreamer, gstPluginsBase, gstFfmpeg
|
, SDL, SDL_mixer, gstreamer, gstPluginsBase, gstPluginsGood
|
||||||
|
, gstFfmpeg, speex
|
||||||
, libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool
|
, libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool
|
||||||
, boost, freetype, agg, dbus, curl, pkgconfig, gettext
|
, boost, freetype, agg, dbus, curl, pkgconfig, gettext
|
||||||
, glib, gtk, x11, ming, dejagnu, python
|
, glib, gtk, gtkglext, x11, ming, dejagnu, python
|
||||||
, lib, makeWrapper }:
|
, lib, makeWrapper }:
|
||||||
|
|
||||||
assert stdenv ? glibc;
|
assert stdenv ? glibc;
|
||||||
|
|
||||||
let version = "0.8.6"; in
|
let version = "0.8.8"; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gnash-${version}";
|
name = "gnash-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/gnash/${version}/${name}.tar.bz2";
|
url = "mirror://gnu/gnash/${version}/${name}.tar.bz2";
|
||||||
sha256 = "1sijafl5c5a005p8jxgn1cdmxkj7a6142dklrlzm9g55n9gbgx05";
|
sha256 = "0872qrgzpy76lxq5b2xigyzaghn53xrpqba2qp3nrk8yz20lpb6w";
|
||||||
};
|
};
|
||||||
|
|
||||||
builder = ./builder.sh;
|
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
# Add all libs to `macros/libslist', a list of library search paths.
|
# Add all libs to `macros/libslist', a list of library search paths.
|
||||||
for lib in ${lib.concatStringsSep " "
|
for lib in ${lib.concatStringsSep " "
|
||||||
@ -35,24 +34,36 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
# XXX: KDE is supported as well so we could make it available optionally.
|
# XXX: KDE is supported as well so we could make it available optionally.
|
||||||
buildInputs = [
|
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
|
libogg libxml2 libjpeg mesa libpng libungif boost freetype agg
|
||||||
dbus curl pkgconfig glib gtk
|
dbus curl pkgconfig glib gtk gtkglext
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
|
||||||
# For the test suite
|
# For the test suite
|
||||||
ming dejagnu python
|
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'.
|
# Make sure `gtk-gnash' gets `libXext' in its `RPATH'.
|
||||||
NIX_LDFLAGS="-lX11 -lXext";
|
NIX_LDFLAGS="-lX11 -lXext";
|
||||||
|
|
||||||
#doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
preInstall = ''ensureDir $out/plugins'';
|
preInstall = ''ensureDir $out/plugins'';
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -64,7 +75,7 @@ stdenv.mkDerivation rec {
|
|||||||
do
|
do
|
||||||
wrapProgram "$prog" --prefix \
|
wrapProgram "$prog" --prefix \
|
||||||
GST_PLUGIN_PATH ":" \
|
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
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -5556,7 +5556,8 @@ let
|
|||||||
|
|
||||||
gnash = callPackage ../applications/video/gnash {
|
gnash = callPackage ../applications/video/gnash {
|
||||||
inherit (gtkLibs) glib gtk;
|
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 {
|
gnome_mplayer = callPackage ../applications/video/gnome-mplayer {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user