libid3tag: Split into multiple outputs

This commit is contained in:
Tuomas Tynkkynen 2017-10-28 19:15:58 +03:00
parent ed8e485c5d
commit 8ac360ed95
2 changed files with 15 additions and 6 deletions

View File

@ -1,24 +1,33 @@
{stdenv, fetchurl, writeText, zlib, gperf}:
stdenv.mkDerivation rec {
version = "0.15.1b";
name = "libid3tag-${version}";
version = "0.15.1b";
src = fetchurl {
url = mirror://sourceforge/mad/libid3tag-0.15.1b.tar.gz;
sha256 = "63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151";
};
outputs = [ "out" "dev" ];
setOutputFlags = false;
propagatedBuildInputs = [ zlib gperf ];
patches = [ ./debian-patches.patch ];
preConfigure = ''
configureFlagsArray+=(
--includedir=$dev/include
)
'';
postInstall = ''
mkdir -p $out/lib/pkgconfig
cp ${./id3tag.pc} $out/lib/pkgconfig/id3tag.pc
substituteInPlace $out/lib/pkgconfig/id3tag.pc \
mkdir -p $dev/lib/pkgconfig
cp ${./id3tag.pc} $dev/lib/pkgconfig/id3tag.pc
substituteInPlace $dev/lib/pkgconfig/id3tag.pc \
--subst-var-by out $out \
--subst-var-by dev $dev \
--subst-var-by version "${version}"
'';

View File

@ -1,7 +1,7 @@
prefix=@out@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=@dev@/include
Name: libid3tag
Description: ID3 tag manipulation library