mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
libclxclient: reacfor & fix include directory
This commit is contained in:
parent
201059f728
commit
2906376ddc
|
@ -1,38 +1,41 @@
|
||||||
{ stdenv, fetchurl, libclthreads, libXft, libX11, xlibs }:
|
{ stdenv, fetchurl, libclthreads, libX11, libXft, xlibs }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libclxclient-${version}";
|
name = "libclxclient-${version}";
|
||||||
version = "3.9.0";
|
version = "3.9.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2";
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2";
|
||||||
sha256 = "14l7xrh964gllymraq4n5pgax94p5jsfjslqi5c6637zc4lmgnl0";
|
sha256 = "14l7xrh964gllymraq4n5pgax94p5jsfjslqi5c6637zc4lmgnl0";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [ libclthreads libX11 libXft xlibs.xproto ];
|
||||||
libclthreads libXft libX11 xlibs.xproto
|
|
||||||
];
|
|
||||||
|
|
||||||
configurePhase = ''
|
NIX_CFLAGS_COMPILE = "-I${xlibs.xproto}/include -I${libXft}/include";
|
||||||
cpp -v
|
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${xlibs.xproto}/include"
|
patchPhase = ''
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXft}/include"
|
|
||||||
echo $NIX_CFLAGS_COMPILE
|
|
||||||
sed -e "s@/usr/local@$out@" -i Makefile
|
|
||||||
sed -e "s@#include <clthreads.h>@#include <${libclthreads}/include>@" -i clxclient.h
|
|
||||||
sed -e "s@ldconfig@@" -i Makefile
|
sed -e "s@ldconfig@@" -i Makefile
|
||||||
sed -e "s@SUFFIX :=.*@SUFFIX =@" -i Makefile
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fixupPhase = ''
|
makeFlags = [
|
||||||
|
"PREFIX=$(out)"
|
||||||
|
"SUFFIX=''"
|
||||||
|
];
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
# The Makefile does not create the include directory
|
||||||
|
mkdir -p $out/include
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3
|
ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "zita X11 library";
|
description = "Zita X11 library";
|
||||||
version = "${version}";
|
|
||||||
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
maintainers = with maintainers; [ magnetophon ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue