libclthreads: refactor
fix include directories fix symlink to library
This commit is contained in:
parent
201059f728
commit
83fa9994e5
@ -1,26 +1,42 @@
|
|||||||
{ stdenv, fetchurl, }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libclthreads-${version}";
|
name = "libclthreads-${version}";
|
||||||
version = "2.4.0";
|
version = "2.4.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clthreads-${version}.tar.bz2";
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clthreads-${version}.tar.bz2";
|
||||||
sha256 = "1s8xx99z6llv46cvkllmd72v2pkzbfl5gngcql85mf14mxkdb7x6";
|
sha256 = "1s8xx99z6llv46cvkllmd72v2pkzbfl5gngcql85mf14mxkdb7x6";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ''
|
patchPhase = ''
|
||||||
sed -e "s@/usr/local@$out@" -i Makefile
|
# Fix hardcoded paths to executables
|
||||||
sed -e "s@/usr/bin/install@install@" -i Makefile
|
sed -e "s@/usr/bin/install@install@" -i ./Makefile
|
||||||
sed -e "s@/sbin/ldconfig@ldconfig@" -i Makefile
|
sed -e "s@/sbin/ldconfig@ldconfig@" -i ./Makefile
|
||||||
sed -e "s@SUFFIX :=.*@SUFFIX =@" -i Makefile
|
|
||||||
|
# Remove useless symlink: /lib64 -> /lib
|
||||||
|
sed -e '/ln -sf \$(CLTHREADS_MIN) \$(PREFIX)\/\$(LIBDIR)\/\$(CLTHREADS_SO)/d' -i ./Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
makeFlags = [
|
||||||
description = "zita thread library";
|
"PREFIX=$(out)"
|
||||||
version = "${version}";
|
"SUFFIX=''"
|
||||||
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
];
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
|
||||||
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
preInstall = ''
|
||||||
platforms = stdenv.lib.platforms.linux;
|
# The Makefile does not create the include directory
|
||||||
|
mkdir -p $out/include
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
ln -s $out/lib/libclthreads.so.${version} $out/lib/libclthreads.so
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Zita thread library";
|
||||||
|
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html;
|
||||||
|
license = licenses.lgpl21;
|
||||||
|
maintainers = with maintainers; [ magnetophon ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user