mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #33756 from acowley/pngpp-darwin
pngpp: darwin support
This commit is contained in:
commit
10c6439a89
@ -21,13 +21,17 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postCheck = "cat test/test.log";
|
||||
|
||||
buildInputs = [ ]
|
||||
++ stdenv.lib.optional docSupport doxygen;
|
||||
buildInputs = stdenv.lib.optional docSupport doxygen;
|
||||
|
||||
propagatedBuildInputs = [ libpng ];
|
||||
|
||||
makeFlags = [ "PREFIX=\${out}" ]
|
||||
++ stdenv.lib.optional docSupport "docs";
|
||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace error.hpp --replace "#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE" "#if (__clang__ || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE"
|
||||
'' + ''
|
||||
sed "s|\(PNGPP := .\)|PREFIX := ''${out}\n\\1|" -i Makefile
|
||||
'';
|
||||
|
||||
makeFlags = stdenv.lib.optional docSupport "docs";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@ -35,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://www.nongnu.org/pngpp/;
|
||||
description = "C++ wrapper for libpng library";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.ramkromberg ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user