openjpeg: provide .pc
This commit is contained in:
parent
a422c021b6
commit
cadbca8a6f
@ -15,7 +15,21 @@ stdenv.mkDerivation rec {
|
|||||||
nativebuildInputs = [ pkgconfig ];
|
nativebuildInputs = [ pkgconfig ];
|
||||||
propagatedBuildInputs = [ libpng libtiff lcms ]; # in closure anyway
|
propagatedBuildInputs = [ libpng libtiff lcms ]; # in closure anyway
|
||||||
|
|
||||||
postInstall = glib.flattenInclude;
|
postInstall = glib.flattenInclude + ''
|
||||||
|
mkdir -p "$out/lib/pkgconfig"
|
||||||
|
cat >"$out/lib/pkgconfig/libopenjp2.pc" <<EOF
|
||||||
|
prefix=$out
|
||||||
|
libdir=$out/lib
|
||||||
|
includedir=$out/include
|
||||||
|
|
||||||
|
Name: openjp2
|
||||||
|
Description: JPEG2000 library (Part 1 and 2)
|
||||||
|
URL: http://www.openjpeg.org/
|
||||||
|
Version: @OPENJPEG_VERSION@
|
||||||
|
Libs: -L$out/lib -lopenjp2
|
||||||
|
Cflags: -I$out/include
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.openjpeg.org/;
|
homepage = http://www.openjpeg.org/;
|
||||||
|
Loading…
Reference in New Issue
Block a user