gnu: poppler: build with openjpeg and lcms
* gnu/packages/pdf.scm (poppler): build poppler with openjpeg 1.5 and lcms.
This commit is contained in:
parent
da2021bca1
commit
927d4d9bd8
|
@ -1,6 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||||
|
;;; Copyright © 2014 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -55,12 +56,13 @@
|
||||||
;; introspection: no
|
;; introspection: no
|
||||||
;; use gtk-doc: no
|
;; use gtk-doc: no
|
||||||
;; use libcurl: no
|
;; use libcurl: no
|
||||||
;; use libopenjpeg: no
|
|
||||||
(inputs `(("fontconfig" ,fontconfig)
|
(inputs `(("fontconfig" ,fontconfig)
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
("libjpeg-8" ,libjpeg-8)
|
("libjpeg-8" ,libjpeg-8)
|
||||||
("libpng" ,libpng)
|
("libpng" ,libpng)
|
||||||
("libtiff" ,libtiff)
|
("libtiff" ,libtiff)
|
||||||
|
("lcms" ,lcms)
|
||||||
|
("openjpeg-1" ,openjpeg-1)
|
||||||
("zlib" ,zlib)
|
("zlib" ,zlib)
|
||||||
|
|
||||||
;; To build poppler-glib (as needed by Evince), we need Cairo and
|
;; To build poppler-glib (as needed by Evince), we need Cairo and
|
||||||
|
@ -75,8 +77,18 @@
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no test data provided with the tarball
|
`(#:tests? #f ; no test data provided with the tarball
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
'("--enable-xpdf-headers" ; to install header files
|
'("--enable-libopenjpeg"
|
||||||
"--enable-zlib")))
|
"--enable-xpdf-headers" ; to install header files
|
||||||
|
"--enable-zlib")
|
||||||
|
#:phases
|
||||||
|
(alist-cons-before
|
||||||
|
'configure 'setenv
|
||||||
|
(lambda _
|
||||||
|
(setenv "CPATH"
|
||||||
|
(string-append (assoc-ref %build-inputs "openjpeg-1")
|
||||||
|
"/include/openjpeg-1.5"
|
||||||
|
":" (or (getenv "CPATH") ""))))
|
||||||
|
%standard-phases)))
|
||||||
(synopsis "PDF rendering library")
|
(synopsis "PDF rendering library")
|
||||||
(description
|
(description
|
||||||
"Poppler is a PDF rendering library based on the xpdf-3.0 code base.")
|
"Poppler is a PDF rendering library based on the xpdf-3.0 code base.")
|
||||||
|
|
Loading…
Reference in New Issue