2019-03-14 13:25:29 +00:00
|
|
|
{ config, stdenv, fetchurl, pkgconfig, autoreconfHook
|
2016-01-17 23:04:40 +00:00
|
|
|
, librdf_raptor2, ladspaH, openssl, zlib
|
2019-03-14 13:25:29 +00:00
|
|
|
, doCheck ? config.doCheckByDefault or false, ladspaPlugins
|
2013-03-02 14:45:13 +00:00
|
|
|
}:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2013-03-02 14:45:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.5.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "liblrdf";
|
2009-09-21 10:58:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://github.com/swh/LRDF/archive/${version}.tar.gz";
|
2013-03-02 14:45:13 +00:00
|
|
|
sha256 = "18p2flb2sv2hq6w2qkd29z9c7knnwqr3f12i2srshlzx6vwkm05s";
|
2009-09-21 10:58:21 +01:00
|
|
|
};
|
|
|
|
|
2018-07-18 00:11:12 +01:00
|
|
|
postPatch = stdenv.lib.optionalString doCheck ''
|
|
|
|
sed -i -e 's:usr/local:${ladspaPlugins}:' examples/{instances,remove}_test.c
|
|
|
|
'';
|
2013-02-03 14:56:48 +00:00
|
|
|
|
2018-07-18 00:11:12 +01:00
|
|
|
preAutoreconf = "rm m4/*";
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ ladspaH openssl zlib ];
|
2013-03-02 14:45:13 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ librdf_raptor2 ];
|
|
|
|
|
2018-07-18 00:11:12 +01:00
|
|
|
inherit doCheck;
|
|
|
|
|
2013-03-02 14:45:13 +00:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Lightweight RDF library with special support for LADSPA plugins";
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://sourceforge.net/projects/lrdf/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-07-28 12:55:54 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-21 10:58:21 +01:00
|
|
|
};
|
|
|
|
}
|