diff options
author | Jen Herting <jen@herting.cc> | 2022-08-05 13:49:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 11:49:46 -0600 |
commit | 42de3ff968f8bc32221ced071ba3633bca670bb4 (patch) | |
tree | a7e37f7a22d349b1f0a3003929891170a0f10d3f | |
parent | 65a4125dd0c10c79aea36b5fda214f6bbed00914 (diff) | |
download | spack-42de3ff968f8bc32221ced071ba3633bca670bb4.tar.gz spack-42de3ff968f8bc32221ced071ba3633bca670bb4.tar.bz2 spack-42de3ff968f8bc32221ced071ba3633bca670bb4.tar.xz spack-42de3ff968f8bc32221ced071ba3633bca670bb4.zip |
jxrlib-debian: new package (#31877)
Co-authored-by: James A Zilberman <jazrc@rit.edu>
Co-authored-by: qwertos <qwertos@users.noreply.github.com>
-rw-r--r-- | var/spack/repos/builtin/packages/jxrlib-debian/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/jxrlib-debian/package.py b/var/spack/repos/builtin/packages/jxrlib-debian/package.py new file mode 100644 index 0000000000..4a7169a9a8 --- /dev/null +++ b/var/spack/repos/builtin/packages/jxrlib-debian/package.py @@ -0,0 +1,28 @@ +# 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 JxrlibDebian(MakefilePackage): + """JPEG XR is a still image format based on technology originally + developed by Mirosoft under the name HD Photo + (formerly Windows Media Photo). The JPEG XR format is similar, + but not identical, to the HD Photo/Windows Media Photo format.""" + + homepage = "https://packages.debian.org/source/sid/jxrlib" + url = "https://salsa.debian.org/debian-phototools-team/jxrlib/-/archive/debian/1.2_git20170615.f752187-5/jxrlib-debian-1.2_git20170615.f752187-5.tar.gz" + + variant("shared", default=False, description="Build shared libs") + + version( + "1.2_git20170615.f752187-5", + sha256="3d9d5d6ca972b51259efe1f37a8e42892e90920b13308d70b8a24eb9a82bf34c", + ) + + def setup_build_environment(self, env): + env.set("DIR_INSTALL", self.prefix) + if self.spec.satisfies("+shared"): + env.set("SHARED", "True") |