3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #8033 from codyopel/tetraproc

tetraproc: refactor
This commit is contained in:
William A. Kennington III 2015-05-27 23:32:22 -07:00
commit 0e1477f940

View file

@ -1,33 +1,30 @@
{ stdenv, fetchurl, jack2, libclthreads, libclxclient, fftwFloat, libsndfile, freetype, x11 { stdenv, fetchurl, fftwFloat, freetype, jack2, libclthreads, libclxclient, libsndfile, x11 }:
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "tetraproc-${version}"; name = "tetraproc-${version}";
version = "0.8.2"; version = "0.8.2";
src = fetchurl { src = fetchurl {
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${name}.tar.bz2"; url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${name}.tar.bz2";
sha256 = "17y3vbm5f6h5cmh3yfxjgqz4xhfwpkla3lqfspnbm4ndlzmfpykv"; sha256 = "17y3vbm5f6h5cmh3yfxjgqz4xhfwpkla3lqfspnbm4ndlzmfpykv";
}; };
buildInputs = [ buildInputs = [ jack2 libclthreads libclxclient fftwFloat libsndfile freetype x11 ];
jack2 libclthreads libclxclient fftwFloat libsndfile freetype x11
makeFlags = [
"PREFIX=$(out)"
"SUFFIX=''"
]; ];
patchPhase = '' preConfigure = ''
cd source cd ./source/
sed -e "s@#include <clthreads.h>@#include <${libclthreads}/include>@" -i tetraproc.cc
sed -e "s@#include <clxclient.h>@#include <${libclxclient}/include>@" -i *.h
sed -e "s@#include <clthreads.h>@#include <${libclthreads}/include>@" -i *.h
sed -e "s@#include <clxclient.h>@#include <${libclxclient}/include>@" -i png2img.*
sed -e "s@/usr/local@$out@" -i Makefile
''; '';
meta = { meta = with stdenv.lib; {
description = "Converts the A-format signals from a tetrahedral Ambisonic microphone into B-format signals ready for recording"; description = "Converts the A-format signals from a tetrahedral Ambisonic microphone into B-format signals ready for recording";
version = "${version}"; homepage = http://kokkinizita.linuxaudio.org/linuxaudio/;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/"; license = licenses.gpl2;
license = stdenv.lib.licenses.gpl2; maintainers = with maintainers; [ magnetophon ];
maintainers = [ stdenv.lib.maintainers.magnetophon ]; platforms = platforms.linux;
platforms = stdenv.lib.platforms.linux;
}; };
} }