23 lines
640 B
Python
23 lines
640 B
Python
# Copyright 2013-2023 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 Lodepng(MakefilePackage):
|
|
"""PNG encoder and decoder in C and C++."""
|
|
|
|
homepage = "https://lodev.org/lodepng/"
|
|
git = "https://github.com/lvandeve/lodepng.git"
|
|
|
|
version("master", branch="master")
|
|
|
|
depends_on("sdl2")
|
|
|
|
def install(self, spec, prefix):
|
|
mkdir(prefix.bin)
|
|
for exe in ["unittest", "benchmark", "pngdetail", "showpng"]:
|
|
install(exe, prefix.bin)
|