3
0
Fork 0
forked from mirrors/nixpkgs

libsamplerate: fix build on darwin

* build with gccApple
* add Carbon include path
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-04 14:59:41 +10:00 committed by Rok Garbas
parent c449a67e01
commit 3a1a7b2d6a
2 changed files with 17 additions and 8 deletions

View file

@ -15,14 +15,19 @@ stdenv.mkDerivation rec {
#--disable-fftw disable usage of FFTW
#--disable-cpu-clip disable tricky cpu specific clipper
meta = {
# need headers from the Carbon.framework in /System/Library/Frameworks to
# compile this on darwin -- not sure how to handle
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
"-I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers";
meta = with stdenv.lib; {
description = "Sample Rate Converter for audio";
homepage = http://www.mega-nerd.com/SRC/index.html;
homepage = http://www.mega-nerd.com/SRC/index.html;
# you can choose one of the following licenses:
license = [
"GPL"
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
"libsamplerate Commercial Use License"
];
# GPL or a commercial-use license (available at
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf)
licenses = with licenses; [ gpl unfree ];
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.all;
};
}

View file

@ -4618,7 +4618,11 @@ let
libre = callPackage ../development/libraries/libre {};
librem = callPackage ../development/libraries/librem {};
libsamplerate = callPackage ../development/libraries/libsamplerate { };
libsamplerate = callPackage ../development/libraries/libsamplerate {
stdenv = if stdenv.isDarwin
then overrideGCC stdenv gccApple
else stdenv;
};
libspectre = callPackage ../development/libraries/libspectre { };