mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
php: Fix support for JPEG and PNG over GD.
Set an explicit path to the location of libjpeg for version 5.4 and an explicit path to libjpeg _and_ libpng for version 5.3. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
672ae93687
commit
486e918215
2 changed files with 12 additions and 2 deletions
|
@ -89,7 +89,12 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
|||
};
|
||||
|
||||
gd = {
|
||||
configureFlags = ["--with-gd=${gd} --with-freetype-dir=${freetype}"];
|
||||
configureFlags = [
|
||||
"--with-gd"
|
||||
"--with-freetype-dir=${freetype}"
|
||||
"--with-png-dir=${libpng}"
|
||||
"--with-jpeg-dir=${libjpeg}"
|
||||
];
|
||||
buildInputs = [gd libpng libjpeg freetype];
|
||||
};
|
||||
|
||||
|
|
|
@ -90,7 +90,12 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
|
|||
|
||||
gd = {
|
||||
# FIXME: Our own gd package doesn't work, see https://bugs.php.net/bug.php?id=60108.
|
||||
configureFlags = ["--with-gd --with-freetype-dir=${freetype} --with-png-dir=${libpng}"];
|
||||
configureFlags = [
|
||||
"--with-gd"
|
||||
"--with-freetype-dir=${freetype}"
|
||||
"--with-png-dir=${libpng}"
|
||||
"--with-jpeg-dir=${libjpeg}"
|
||||
];
|
||||
buildInputs = [ libpng libjpeg freetype ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue