spack/var/spack/repos/builtin/packages/freeimage/package.py
Todd Gamblin a8ccb8e116 copyrights: update all files with license headers for 2021
- [x] add `concretize.lp`, `spack.yaml`, etc. to licensed files
- [x] update all licensed files to say 2013-2021 using
      `spack license update-copyright-year`
- [x] appease mypy with some additions to package.py that needed
      for oneapi.py
2021-01-02 12:12:00 -08:00

26 lines
946 B
Python

# Copyright 2013-2021 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 import *
class Freeimage(MakefilePackage):
"""FreeImage is an Open Source library project for developers who would like
to support popular graphics image formats like PNG, BMP, JPEG, TIFF and
others as needed by today's multimedia applications"""
homepage = "http://freeimage.sourceforge.net/"
version('3.18.0', sha256='f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd')
patch('install_fixes.patch', when='@3.18.0')
def edit(self, spec, prefix):
env["DESTDIR"] = prefix
def url_for_version(self, version):
url = "https://downloads.sourceforge.net/project/freeimage/Source%20Distribution/{0}/FreeImage{1}.zip"
return url.format(version, version.joined)