2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, freetype, fontconfig, libunwind, libtool, flex, bison }:
|
2009-12-04 15:42:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-08-02 09:38:45 +00:00
|
|
|
pname = "ttf-mkfontdir";
|
|
|
|
version = "3.0.9-6";
|
2009-12-04 15:42:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://mirror.fsf.org/trisquel/pool/main/t/ttmkfdir/ttmkfdir_3.0.9.orig.tar.gz";
|
2009-12-04 15:42:27 +00:00
|
|
|
sha256 = "0n6bmmndmp4c1myisvv7cby559gzgvwsw4rfw065a3f92m87jxiq";
|
|
|
|
};
|
2021-01-15 09:19:50 +00:00
|
|
|
|
2009-12-04 15:42:27 +00:00
|
|
|
# all the patches up from ttmkfdir-3.0.9/Makefile should be reviewed by someone
|
|
|
|
# who knows more about C/C++ ..
|
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://mirror.fsf.org/trisquel/pool/main/t/ttmkfdir/ttmkfdir_3.0.9-6.diff.gz";
|
2010-08-12 05:59:52 +00:00
|
|
|
sha256 = "141kxaf2by8nf87hqyszaxi0n7nnmswr1nh2i5r5bsvxxmaj9633";
|
2009-12-04 15:42:27 +00:00
|
|
|
})
|
2021-01-15 09:19:50 +00:00
|
|
|
|
2009-12-04 15:42:27 +00:00
|
|
|
./cstring.patch # also fixes some other compilation issues (freetype includes)
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out; makeFlags="DESTDIR=$out BINDIR=/bin"
|
2009-12-04 15:42:27 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [freetype fontconfig libunwind libtool flex bison];
|
|
|
|
|
2008-03-02 18:40:42 +00:00
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Create fonts.dir for TTF font directory";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2008-03-02 18:40:42 +00:00
|
|
|
};
|
2009-12-04 15:42:27 +00:00
|
|
|
}
|