* Added Lesstif (a Motif clone).

* Enabled the actual xpdf GUI in xpdf.

svn path=/nixpkgs/trunk/; revision=4327
This commit is contained in:
Eelco Dolstra
2005-12-02 22:49:51 +00:00
parent c7804cb0e5
commit 6281842b45
4 changed files with 36 additions and 5 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
source $stdenv/setup
configureFlags="--x-includes=$libX11/include --x-libraries=$libX11/lib"
if test -n "$freetype"; then
configureFlags="\
--with-freetype2-library=$freetype/lib \
--with-freetype2-includes=$freetype/include/freetype2 \
$configureFlags"
fi
genericBuild
+12 -2
View File
@@ -1,11 +1,21 @@
{stdenv, fetchurl, libX11}:
{ enableGUI ? true, enablePDFtoPPM ? true
, stdenv, fetchurl, x11 ? null, motif ? null, freetype ? null
}:
assert enableGUI -> x11 != null && motif != null && freetype != null;
assert enablePDFtoPPM -> freetype != null;
stdenv.mkDerivation {
name = "xpdf-3.01";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.01.tar.gz;
md5 = "e004c69c7dddef165d768b1362b44268";
};
inherit libX11;
buildInputs = (if enableGUI then [x11 motif] else []);
freetype = if enableGUI || enablePDFtoPPM then freetype else null;
configureFlags = "--enable-a4-paper"; /* We obey ISO standards! */
}