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