2009-12-04 16:42:27 +01:00
|
|
|
{ stdenv, fetchurl, freetype, fontconfig, libunwind, libtool, flex, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-08-12 07:59:52 +02:00
|
|
|
name = "ttf-mkfontdir-3.0.9-6";
|
2009-12-04 16:42:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz;
|
|
|
|
sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq";
|
|
|
|
};
|
|
|
|
|
|
|
|
# all the patches up from ttmkfdir-3.0.9/Makefile should be reviewed by someone
|
|
|
|
# who knows more about C/C++ ..
|
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
2010-08-12 07:59:52 +02:00
|
|
|
url = http://ftp.de.debian.org/debian/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-6.diff.gz;
|
|
|
|
sha256 = "141kxaf2by8nf87hqyszaxi0n7nnmswr1nh2i5r5bsvxxmaj9633";
|
2009-12-04 16:42:27 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
./cstring.patch # also fixes some other compilation issues (freetype includes)
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out; makeFlags="DESTDIR=$out BINDIR=/bin"
|
2009-12-04 16:42:27 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [freetype fontconfig libunwind libtool flex bison];
|
|
|
|
|
2008-03-02 19:40:42 +01:00
|
|
|
meta = {
|
|
|
|
description = "Create fonts.dir for TTF font directory.";
|
|
|
|
};
|
2009-12-04 16:42:27 +01:00
|
|
|
}
|