1{ stdenv, fetchurl, libwpg, libwpd, lcms, pkgconfig, librevenge, icu, boost, cppunit }:
2
3stdenv.mkDerivation rec {
4 name = "libcdr-0.1.5";
5
6 src = fetchurl {
7 url = "https://dev-www.libreoffice.org/src/${name}.tar.xz";
8 sha256 = "0j1skr11jwvafn0l6p37v3i4lqc8wcn489g8f7c4mqwbk94mrkka";
9 };
10
11 buildInputs = [ libwpg libwpd lcms librevenge icu boost cppunit ];
12
13 nativeBuildInputs = [ pkgconfig ];
14
15 CXXFLAGS="--std=gnu++0x"; # For c++11 constants in lcms2.h
16
17 meta = {
18 description = "A library providing ability to interpret and import Corel Draw drawings into various applications";
19 homepage = http://www.freedesktop.org/wiki/Software/libcdr;
20 platforms = stdenv.lib.platforms.all;
21 license = stdenv.lib.licenses.mpl20;
22 };
23}