mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 04:02:40 +03:00
ef8bf2b077
patent has expired, so TT_CONFIG_OPTION_BYTECODE_INTERPRETER is now the default. Whether it looks better now is subjective. svn path=/nixpkgs/branches/x-updates/; revision=22638
29 lines
934 B
Nix
29 lines
934 B
Nix
{ stdenv, fetchurl
|
|
, # FreeType supports sub-pixel rendering. This is patented by
|
|
# Microsoft, so it is disabled by default. This option allows it to
|
|
# be enabled. See http://www.freetype.org/patents.html.
|
|
useEncumberedCode ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "freetype-2.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/freetype/${name}.tar.bz2";
|
|
sha256 = "0gmyk6w7rbiiw7zjbyvkvp8wfl7q9n5576ifqq67qwsjdzlm9ja5";
|
|
};
|
|
|
|
configureFlags = "--disable-static";
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString useEncumberedCode
|
|
"-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING=1";
|
|
|
|
# The asm for armel is written with the 'asm' keyword.
|
|
CFLAGS = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "-std=gnu99";
|
|
|
|
meta = {
|
|
description = "A font rendering engine";
|
|
homepage = http://www.freetype.org/;
|
|
license = "GPLv2+"; # or the FreeType License (BSD + advertising clause)
|
|
};
|
|
} |