* Added t1lib, a library for Type 1 font support. Enabled it in xpdf.
svn path=/nixpkgs/trunk/; revision=4328
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{ enableGUI ? true, enablePDFtoPPM ? true
|
||||
, stdenv, fetchurl, x11 ? null, motif ? null, freetype ? null
|
||||
{ enableGUI ? true, enablePDFtoPPM ? true, useT1Lib ? true
|
||||
, stdenv, fetchurl, x11 ? null, motif ? null, freetype ? null, t1lib ? null
|
||||
}:
|
||||
|
||||
assert enableGUI -> x11 != null && motif != null && freetype != null;
|
||||
assert enablePDFtoPPM -> freetype != null;
|
||||
assert useT1Lib -> t1lib != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "xpdf-3.01";
|
||||
@@ -14,7 +15,9 @@ stdenv.mkDerivation {
|
||||
md5 = "e004c69c7dddef165d768b1362b44268";
|
||||
};
|
||||
|
||||
buildInputs = (if enableGUI then [x11 motif] else []);
|
||||
buildInputs =
|
||||
(if enableGUI then [x11 motif] else []) ++
|
||||
(if useT1Lib then [t1lib] else []);
|
||||
freetype = if enableGUI || enablePDFtoPPM then freetype else null;
|
||||
|
||||
configureFlags = "--enable-a4-paper"; /* We obey ISO standards! */
|
||||
|
||||
Reference in New Issue
Block a user