gnu: Add gmic-qt.

* gnu/packages/image-processing.scm (gmic-qt): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Vinicius Monego 2021-03-05 02:14:16 -03:00 committed by Nicolas Goaziou
parent 75862a9ea7
commit f23ba5d9af
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -648,6 +648,30 @@ (define-public gmic
;; Dual-licensed, either license applies.
(license (list license:cecill license:cecill-c))))
(define-public gmic-qt
(package
(inherit gmic)
(name "gmic-qt")
(arguments
(substitute-keyword-arguments (package-arguments gmic)
((#:configure-flags _)
`(list "-DGMIC_QT_HOST=none" "-DENABLE_DYNAMIC_LINKING=ON"
(string-append "-DGMIC_LIB_PATH="
(assoc-ref %build-inputs "gmic") "/lib")))
((#:phases phases)
`(modify-phases ,phases
(add-after 'unpack 'qt-chdir
(lambda _ (chdir "gmic-qt") #t))))))
(native-inputs
`(("pkg-config" ,pkg-config)
("qttools" ,qttools)))
(inputs
`(("gmic" ,gmic)
("qtbase" ,qtbase)
,@(package-inputs gmic)))
(synopsis "Qt frontend for the G'MIC image processing framework")
(license license:gpl3+)))
(define-public nip2
(package
(name "nip2")