sfml: support darwin
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchurl, cmake, libX11, freetype, libjpeg, openal, flac, libvorbis
|
||||
, glew, libXrandr, libXrender, udev, xcbutilimage
|
||||
, IOKit, Foundation, AppKit, OpenAL
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -13,9 +14,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1x3yvhdrln5b6h4g5r4mds76gq8zsxw6icxqpwqkmxsqcq5yviab";
|
||||
};
|
||||
buildInputs = [ cmake libX11 freetype libjpeg openal flac libvorbis glew
|
||||
libXrandr libXrender udev xcbutilimage
|
||||
];
|
||||
cmakeFlags = [ "-DSFML_INSTALL_PKGCONFIG_FILES=yes" ];
|
||||
libXrandr libXrender xcbutilimage
|
||||
] ++ stdenv.lib.optional stdenv.isLinux udev
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ IOKit Foundation AppKit OpenAL ];
|
||||
cmakeFlags = [ "-DSFML_INSTALL_PKGCONFIG_FILES=yes"
|
||||
"-DSFML_MISC_INSTALL_PREFIX=share/SFML"
|
||||
"-DSFML_BUILD_FRAMEWORKS=no"
|
||||
"-DSFML_USE_SYSTEM_DEPS=yes" ];
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.sfml-dev.org/;
|
||||
description = "Simple and fast multimedia library";
|
||||
@@ -26,6 +31,6 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
license = licenses.zlib;
|
||||
maintainers = [ maintainers.astsmtl ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user