2010-06-18 21:33:15 +02:00
|
|
|
x@{ pkgconfig, bc, perl, xlibs, libjpeg, mesa, gtk
|
|
|
|
, libxml2, libglade, builderDefsPackage, ... }:
|
2010-01-26 22:40:32 +01:00
|
|
|
|
2010-06-18 21:33:15 +02:00
|
|
|
builderDefsPackage
|
|
|
|
(a: rec {
|
2010-06-17 22:28:00 +02:00
|
|
|
version = "5.11";
|
|
|
|
name = "xscreensaver-${version}";
|
|
|
|
url = "http://www.jwz.org/xscreensaver/${name}.tar.gz";
|
2010-01-26 22:40:32 +01:00
|
|
|
|
2010-06-18 21:33:15 +02:00
|
|
|
src = a.fetchurl {
|
2010-06-17 22:28:00 +02:00
|
|
|
inherit url;
|
|
|
|
sha256="0w47s0qd8ab6ywhhhkqjx0grb2b28bh2flnkdpj3yaind202l0s7";
|
2010-01-26 22:40:32 +01:00
|
|
|
};
|
|
|
|
|
2010-06-18 21:33:15 +02:00
|
|
|
buildInputs = with a;
|
2010-01-26 22:40:32 +01:00
|
|
|
[ pkgconfig bc perl libjpeg mesa gtk libxml2 libglade
|
|
|
|
xlibs.xlibs xlibs.libXmu
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-gl"
|
|
|
|
"--with-dpms"
|
|
|
|
"--with-pixbuf"
|
2010-06-18 21:33:15 +02:00
|
|
|
"--with-x-app-defaults=\${out}/share/xscreensaver/app-defaults"
|
|
|
|
"--with-hackdir=\${out}/share/xscreensaver-hacks"
|
2010-01-26 22:40:32 +01:00
|
|
|
];
|
|
|
|
|
2010-06-18 21:33:15 +02:00
|
|
|
preConfigure = a.fullDepEntry
|
2010-01-26 22:40:32 +01:00
|
|
|
''
|
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' \
|
|
|
|
-i driver/Makefile.in po/Makefile.in.in
|
2010-06-18 21:33:15 +02:00
|
|
|
'' ["minInit" "doUnpack"];
|
|
|
|
|
|
|
|
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
2010-01-26 22:40:32 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A set of screensavers";
|
2010-06-18 21:33:15 +02:00
|
|
|
maintainers = [ a.lib.maintainers.raskin ];
|
|
|
|
platforms = a.lib.platforms.allBut "i686-cygwin";
|
2010-01-26 22:40:32 +01:00
|
|
|
};
|
2010-06-18 21:33:15 +02:00
|
|
|
}) x
|