Fix .pc files
This commit is contained in:
@@ -60,10 +60,33 @@ in stdenv.mkDerivation rec {
|
|||||||
-Wno-incompatible-pointer-types
|
-Wno-incompatible-pointer-types
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cdPc = builtins.toFile "cd.pc" (makePc "cd" version "gdk-3.0 pango");
|
cdPc = builtins.toFile "cd.pc" (makePc
|
||||||
cdContextPlusPc = builtins.toFile "cdcontextplus.pc" (makePc "cdcontextplus" version "pangocairo cairo");
|
"cd"
|
||||||
cdGlPc = builtins.toFile "cdgl.pc" (makePc "cdcontextplus" version "gl");
|
"A vector graphics toolkit with device independent output"
|
||||||
cdImPc = builtins.toFile "cdim.pc" (makePc "cdim" version "im");
|
version
|
||||||
|
"gdk-3.0 pango"
|
||||||
|
);
|
||||||
|
|
||||||
|
cdcontextplusPc = builtins.toFile "cdcontextplus.pc" (makePc
|
||||||
|
"cdcontextplus"
|
||||||
|
"A vector graphics toolkit with device independent output (dynamic driver loader"
|
||||||
|
version
|
||||||
|
"pangocairo cairo"
|
||||||
|
);
|
||||||
|
|
||||||
|
cdglPc = builtins.toFile "cdgl.pc" (makePc
|
||||||
|
"cdgl"
|
||||||
|
"A vector graphics toolkit with device independent output (OpenGL driver)"
|
||||||
|
version
|
||||||
|
"gl"
|
||||||
|
);
|
||||||
|
|
||||||
|
cdimPc = builtins.toFile "cdim.pc" (makePc
|
||||||
|
"cdim"
|
||||||
|
"A vector graphics toolkit with device independent output (IM support)"
|
||||||
|
version
|
||||||
|
"im"
|
||||||
|
);
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
@@ -83,9 +106,9 @@ in stdenv.mkDerivation rec {
|
|||||||
ln -fs $out/lib/libcdluaim52.so $out/share/lua/5.2/cdluaim.so
|
ln -fs $out/lib/libcdluaim52.so $out/share/lua/5.2/cdluaim.so
|
||||||
|
|
||||||
cp -v ${cdPc} $out/lib/pkgconfig/cd.pc
|
cp -v ${cdPc} $out/lib/pkgconfig/cd.pc
|
||||||
cp -v ${cdContextPlusPc} $out/lib/pkgconfig/cdcontextplus.pc
|
cp -v ${cdcontextplusPc} $out/lib/pkgconfig/cdcontextplus.pc
|
||||||
cp -v ${cdGlPc} $out/lib/pkgconfig/cdgl.pc
|
cp -v ${cdglPc} $out/lib/pkgconfig/cdgl.pc
|
||||||
cp -v ${cdImPc} $out/lib/pkgconfig/cdim.pc
|
cp -v ${cdimPc} $out/lib/pkgconfig/cdim.pc
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -42,11 +42,40 @@ in stdenv.mkDerivation rec {
|
|||||||
"USE_LUA_VERSION=52"
|
"USE_LUA_VERSION=52"
|
||||||
];
|
];
|
||||||
|
|
||||||
imPc = builtins.toFile "im.pc" (makePc "im" version "libpng zlib");
|
imPc = builtins.toFile "im.pc" (makePc
|
||||||
imJp2Pc = builtins.toFile "im_jp2.pc" (makePc "im_jp2" version "im");
|
"im"
|
||||||
imProcessPc = builtins.toFile "im_process.pc" (makePc "im_process" version "im");
|
"A toolkit for image representation, storage, capture and processing"
|
||||||
imProcessOmpPc = builtins.toFile "im_process_omp.pc" (makePc "im_process_omp" version "im");
|
version
|
||||||
imFftw3Pc = builtins.toFile "im_fftw3.pc" (makePc "im_fftw3" version "im_process fftw3");
|
"libpng zlib"
|
||||||
|
);
|
||||||
|
|
||||||
|
imJp2Pc = builtins.toFile "im_jp2.pc" (makePc
|
||||||
|
"im_jp2"
|
||||||
|
"A toolkit for image representation, storage, capture and processing (JP2 support)"
|
||||||
|
version
|
||||||
|
"im"
|
||||||
|
);
|
||||||
|
|
||||||
|
imProcessPc = builtins.toFile "im_process.pc" (makePc
|
||||||
|
"im_process"
|
||||||
|
"A toolkit for image representation, storage, capture and processing (processing library)"
|
||||||
|
version
|
||||||
|
"im"
|
||||||
|
);
|
||||||
|
|
||||||
|
imProcessOmpPc = builtins.toFile "im_process_omp.pc" (makePc
|
||||||
|
"im_process_omp"
|
||||||
|
"A toolkit for image representation, storage, capture and processing (processing library)"
|
||||||
|
version
|
||||||
|
"im"
|
||||||
|
);
|
||||||
|
|
||||||
|
imFftw3Pc = builtins.toFile "im_fftw3.pc" (makePc
|
||||||
|
"im_fftw3"
|
||||||
|
"A toolkit for image representation, storage, capture and processing (Fourier transform operations)"
|
||||||
|
version
|
||||||
|
"im_process fftw3"
|
||||||
|
);
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|||||||
@@ -74,16 +74,62 @@ in stdenv.mkDerivation rec {
|
|||||||
-Wno-implicit-function-declaration
|
-Wno-implicit-function-declaration
|
||||||
-Wno-incompatible-pointer-types
|
-Wno-incompatible-pointer-types
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
iupPc = builtins.toFile "iup.pc" (makePc "iup" version "gtk+-3.0");
|
iupPc = builtins.toFile "iup.pc" (makePc
|
||||||
iupglPc = builtins.toFile "iupgl.pc" (makePc "iupgl" version "gl glu");
|
"iup"
|
||||||
iupcdPc = builtins.toFile "iupcd.pc" (makePc "iupcd" version "iup cd");
|
"A portable toolkit for building graphical user interfaces"
|
||||||
iupcontrolsPc = builtins.toFile "iupcontrols.pc" (makePc "iupcontrols" version "iupcd");
|
version
|
||||||
iupPlotPc = builtins.toFile "iup_plot.pc" (makePc "iup_plot" version "iupcd");
|
"gtk+-3.0"
|
||||||
iupimPc = builtins.toFile "iupim.pc" (makePc "iupim" version "iup im");
|
);
|
||||||
iupimglibPc = builtins.toFile "iupimglib.pc" (makePc "iupimglib" version "iup");
|
|
||||||
iupwebPc = builtins.toFile "iupweb.pc" (makePc "iupweb" version "webkit2gtk-4.1");
|
iupglPc = builtins.toFile "iupgl.pc" (makePc
|
||||||
|
"iupgl"
|
||||||
|
"A portable toolkit for building graphical user interfaces (OpenGL support)"
|
||||||
|
version
|
||||||
|
"gl glu"
|
||||||
|
);
|
||||||
|
|
||||||
|
iupcdPc = builtins.toFile "iupcd.pc" (makePc
|
||||||
|
"iupcd"
|
||||||
|
"A portable toolkit for building graphical user interfaces (CD support)"
|
||||||
|
version
|
||||||
|
"iup cd"
|
||||||
|
);
|
||||||
|
|
||||||
|
iupcontrolsPc = builtins.toFile "iupcontrols.pc" (makePc
|
||||||
|
"iupcontrols"
|
||||||
|
"A portable toolkit for building graphical user interfaces (extra widgets)"
|
||||||
|
version
|
||||||
|
"iupcd"
|
||||||
|
);
|
||||||
|
|
||||||
|
iupPlotPc = builtins.toFile "iup_plot.pc" (makePc
|
||||||
|
"iup_plot"
|
||||||
|
"A portable toolkit for building graphical user interfaces (plotting support)"
|
||||||
|
version
|
||||||
|
"iupcd"
|
||||||
|
);
|
||||||
|
|
||||||
|
iupimPc = builtins.toFile "iupim.pc" (makePc
|
||||||
|
"iupim"
|
||||||
|
"A portable toolkit for building graphical user interfaces (IM support)"
|
||||||
|
version
|
||||||
|
"iup im"
|
||||||
|
);
|
||||||
|
|
||||||
|
iupimglibPc = builtins.toFile "iupimglib.pc" (makePc
|
||||||
|
"iupimglib"
|
||||||
|
"A portable toolkit for building graphical user interfaces (image support)"
|
||||||
|
version
|
||||||
|
"iup"
|
||||||
|
);
|
||||||
|
|
||||||
|
iupwebPc = builtins.toFile "iupweb.pc" (makePc
|
||||||
|
"iupweb"
|
||||||
|
"A portable toolkit for building graphical user interfaces (web view widget)"
|
||||||
|
version
|
||||||
|
"webkit2gtk-4.1"
|
||||||
|
);
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|||||||
+4
-3
@@ -1,6 +1,6 @@
|
|||||||
{ lib, builtins }:
|
{ lib, builtins }:
|
||||||
|
|
||||||
pkg: version: requires:
|
pkg: description: version: requires:
|
||||||
let
|
let
|
||||||
pcTemplate = ''
|
pcTemplate = ''
|
||||||
prefix=${placeholder "out"}
|
prefix=${placeholder "out"}
|
||||||
@@ -9,12 +9,13 @@ pkg: version: requires:
|
|||||||
includedir=${placeholder "out"}/include
|
includedir=${placeholder "out"}/include
|
||||||
|
|
||||||
Name: @PKG@
|
Name: @PKG@
|
||||||
|
Description: @DESCRIPTION@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Libs: -L${placeholder "out"}/lib -l@PKG@
|
Libs: -L${placeholder "out"}/lib -l@PKG@
|
||||||
Cflags: -I${placeholder "out"}/include
|
Cflags: -I${placeholder "out"}/include
|
||||||
Requires: @REQUIRES@
|
Requires: @REQUIRES@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
from = [ "@PKG@" "@VERSION@" "@REQUIRES@" ];
|
from = [ "@PKG@" "@DESCRIPTION" "@VERSION@" "@REQUIRES@" ];
|
||||||
to = [ pkg version requires ];
|
to = [ pkg description version requires ];
|
||||||
in builtins.replaceStrings from to pcTemplate
|
in builtins.replaceStrings from to pcTemplate
|
||||||
|
|||||||
Reference in New Issue
Block a user