From 1f8b55a0215c0b7122a052894d8b5075add2d1d5 Mon Sep 17 00:00:00 2001 From: downloadico Date: Thu, 15 Dec 2022 01:19:50 -0700 Subject: Add G'MIC package with only the "cli" target available (#34533) --- var/spack/repos/builtin/packages/gmic/package.py | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 var/spack/repos/builtin/packages/gmic/package.py diff --git a/var/spack/repos/builtin/packages/gmic/package.py b/var/spack/repos/builtin/packages/gmic/package.py new file mode 100644 index 0000000000..0a766919ae --- /dev/null +++ b/var/spack/repos/builtin/packages/gmic/package.py @@ -0,0 +1,41 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class Gmic(MakefilePackage): + """G'MIC is an open-source framework for digital image processing. + G'MIC is a full-featured open-source framework for digital image + processing, distributed under the CeCILL free software licenses (LGPL-like + and/or GPL-compatible). It provides several user interfaces to convert / + process / visualize generic image datasets, ranging from 1D scalar signals + to 3D+t sequences of multi-spectral volumetric images, hence including 2D + color images.""" + + homepage = "https://gmic.eu/" + git = "https://github.com/GreycLab/gmic.git" + + version("develop", branch="master") + version("3.1.6", tag="v.3.1.6") + + depends_on("curl") + depends_on("fftw") + depends_on("libjpeg") + depends_on("libtiff") + depends_on("libxau") + depends_on("libxcb") + depends_on("libpng") + depends_on("openexr") + depends_on("opencv") + depends_on("zlib") + depends_on("zstd") + depends_on("libx11") + + def build(self, spec, prefix): + make("cli") + + def install(self, spec, prefix): + make("install PREFIX='' USR='' DESTDIR={0}".format(self.prefix)) -- cgit v1.2.3-70-g09d2