2009-04-22 01:18:09 +02:00
|
|
|
args: with args;
|
|
|
|
|
2009-11-18 10:39:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "redland-1.0.9";
|
2007-10-01 17:14:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-02-10 18:42:11 +01:00
|
|
|
url = "mirror://sf/librdf/${name}.tar.gz";
|
2009-09-23 01:07:35 +02:00
|
|
|
sha256 = "aa90ded84f5dd4cc2330bf79d139e00ceb93c6a9b94d17e1a93449ad579e1524";
|
2007-10-01 17:14:50 +02:00
|
|
|
};
|
2009-11-04 16:14:12 +01:00
|
|
|
|
2009-09-22 10:55:37 +02:00
|
|
|
buildInputs = [pkgconfig];
|
2009-11-04 16:14:12 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bdb openssl libxslt perl mysql postgresql sqlite curl pcre libxml2
|
2009-09-23 01:07:35 +02:00
|
|
|
librdf_raptor librdf_rasqal
|
2009-04-22 01:18:09 +02:00
|
|
|
];
|
2009-11-04 16:14:12 +01:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
configureFlags = "--with-threads --with-bdb=${bdb}";
|
2009-11-04 16:14:12 +01:00
|
|
|
|
|
|
|
patchPhase =
|
2009-11-18 12:46:35 +01:00
|
|
|
''
|
|
|
|
sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl
|
2009-11-04 16:14:12 +01:00
|
|
|
|
2009-11-18 12:46:35 +01:00
|
|
|
# Redland 1.0.9 uses an internal pre-processor symbol SQLITE_API
|
|
|
|
# that collides with a symbol of the same name in sqlite 3.6.19.
|
|
|
|
# This is a quick fix for the problem. A real solution needs to be
|
|
|
|
# implemented upstream, though.
|
|
|
|
find . -type f -exec sed -i -e 's/SQLITE_API/REDLAND_SQLITE_API/g' {} \;
|
|
|
|
'';
|
2007-10-01 17:14:50 +02:00
|
|
|
}
|