2012-07-17 11:14:41 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, bc, perl, pam, libXext, libXScrnSaver, libX11
|
|
|
|
, libXrandr, libXmu, libXxf86vm, libXrender, libXxf86misc, libjpeg, mesa, gtk
|
2014-07-11 16:37:47 +01:00
|
|
|
, libxml2, libglade, intltool
|
2011-02-14 13:44:01 +00:00
|
|
|
}:
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2010-08-13 15:06:23 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-07-04 20:00:54 +01:00
|
|
|
version = "5.33";
|
2010-06-17 21:28:00 +01:00
|
|
|
name = "xscreensaver-${version}";
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2010-08-13 15:06:23 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.jwz.org/xscreensaver/${name}.tar.gz";
|
2015-07-05 13:24:59 +01:00
|
|
|
sha256 = "0k9z64ynpcfy19a33lm6g75ry3mb6zilm3dnm0zq9whrj9hw386l";
|
2010-01-26 21:40:32 +00:00
|
|
|
};
|
|
|
|
|
2010-08-13 15:06:23 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig bc perl libjpeg mesa gtk libxml2 libglade pam
|
2011-02-14 13:44:01 +00:00
|
|
|
libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
|
2014-07-11 16:37:47 +01:00
|
|
|
libXxf86misc intltool
|
2011-02-14 13:44:01 +00:00
|
|
|
];
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2015-03-21 12:35:51 +00:00
|
|
|
preConfigure =
|
2012-07-17 11:14:41 +01:00
|
|
|
''
|
|
|
|
# Fix build error in version 5.18. Remove this patch when updating
|
|
|
|
# to a later version.
|
2012-10-10 15:05:37 +01:00
|
|
|
#sed -i -e '/AF_LINK/d' hacks/glx/sonar-icmp.c
|
2015-03-21 12:35:51 +00:00
|
|
|
|
|
|
|
# Fix installation paths for GTK resources.
|
2012-07-17 11:14:41 +01:00
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' \
|
2015-03-21 12:35:51 +00:00
|
|
|
-i driver/Makefile.in po/Makefile.in.in
|
2012-07-17 11:14:41 +01:00
|
|
|
'';
|
|
|
|
|
2010-01-26 21:40:32 +00:00
|
|
|
configureFlags =
|
2011-02-14 13:44:01 +00:00
|
|
|
[ "--with-gl" "--with-pam" "--with-pixbuf" "--with-proc-interrupts"
|
2010-08-13 15:06:23 +01:00
|
|
|
"--with-dpms-ext" "--with-randr-ext" "--with-xinerama-ext"
|
|
|
|
"--with-xf86vmode-ext" "--with-xf86gamma-ext" "--with-randr-ext"
|
|
|
|
"--with-xshm-ext" "--with-xdbe-ext" "--without-readdisplay"
|
2010-06-18 20:33:15 +01:00
|
|
|
"--with-x-app-defaults=\${out}/share/xscreensaver/app-defaults"
|
2010-01-26 21:40:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2012-04-06 20:30:30 +01:00
|
|
|
homepage = "http://www.jwz.org/xscreensaver/";
|
2010-01-26 21:40:32 +00:00
|
|
|
description = "A set of screensavers";
|
2010-08-13 15:06:23 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin urkud ];
|
2014-08-09 11:28:16 +01:00
|
|
|
platforms = with stdenv.lib.platforms; allBut cygwin;
|
2014-09-02 11:25:04 +01:00
|
|
|
inherit version;
|
|
|
|
downloadPage = "http://www.jwz.org/xscreensaver/download.html";
|
|
|
|
updateWalker = true;
|
2010-01-26 21:40:32 +00:00
|
|
|
};
|
2010-08-13 15:06:23 +01:00
|
|
|
}
|