php53: fix build on darwin (close #748)

* add empty unix.h header
* build with kerberos
* ensure the binary has no extension
This commit is contained in:
Jason \"Don\" O'Conal
2013-07-14 11:47:14 +10:00
committed by Vladimír Čunát
parent 5b4e0207ba
commit b4105cfaff
3 changed files with 19 additions and 4 deletions

View File

@@ -134,8 +134,11 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
};
imap = {
configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" ];
buildInputs = [ uwimap openssl pam ];
configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" ]
# uwimap builds with kerberos on darwin
++ stdenv.lib.optional (stdenv.isDarwin) "--with-kerberos";
buildInputs = [ uwimap openssl ]
++ stdenv.lib.optional (!stdenv.isDarwin) pam;
};
intl = {
@@ -205,6 +208,9 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
[[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags
echo configurePhase end
'' + stdenv.lib.optionalString stdenv.isDarwin ''
# don't build php.dSYM as the php binary
sed -i 's/EXEEXT = \.dSYM/EXEEXT =/' Makefile
'';
installPhase = ''