2021-01-17 10:17:16 +01:00
|
|
|
{ stdenv, fetchurl, pkg-config, darwin, lib
|
2016-06-01 22:45:19 +02:00
|
|
|
, zlib, ghostscript, imagemagick, plotutils, gd
|
2017-02-07 09:01:33 +01:00
|
|
|
, libjpeg, libwebp, libiconv
|
2016-06-01 22:45:19 +02:00
|
|
|
}:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2016-05-14 07:06:24 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2020-01-07 08:23:43 +01:00
|
|
|
name = "pstoedit-3.75";
|
2009-10-18 06:43:53 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-14 07:06:24 +02:00
|
|
|
url = "mirror://sourceforge/pstoedit/${name}.tar.gz";
|
2020-01-07 08:23:43 +01:00
|
|
|
sha256 = "1kv46g2wsvsvcngkavxl5gnw3l6g5xqnh4kmyx4b39a01d8xiddp";
|
2009-10-18 06:43:53 +02:00
|
|
|
};
|
|
|
|
|
2018-07-11 00:58:06 +02:00
|
|
|
#
|
|
|
|
# Turn on "-rdb" option (REALLYDELAYBIND) by default to ensure compatibility with gs-9.22
|
|
|
|
#
|
|
|
|
patches = [ ./pstoedit-gs-9.22-compat.patch ];
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2021-01-17 10:17:16 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-06-30 16:27:12 +02:00
|
|
|
buildInputs = [ zlib ghostscript imagemagick plotutils gd libjpeg libwebp ]
|
2017-02-07 09:01:33 +01:00
|
|
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
libiconv ApplicationServices
|
|
|
|
]);
|
2009-10-18 06:43:53 +02:00
|
|
|
|
2017-06-30 16:27:12 +02:00
|
|
|
# '@LIBPNG_LDFLAGS@' is no longer substituted by autoconf (the code is commented out)
|
|
|
|
# so we need to remove it from the pkg-config file as well
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace config/pstoedit.pc.in --replace '@LIBPNG_LDFLAGS@' ""
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-05-14 07:06:24 +02:00
|
|
|
description = "Translates PostScript and PDF graphics into other vector formats";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/pstoedit/";
|
2016-06-01 22:45:19 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.marcweber ];
|
2017-02-07 09:01:33 +01:00
|
|
|
platforms = platforms.unix;
|
2009-10-18 06:43:53 +02:00
|
|
|
};
|
|
|
|
}
|