spack/var/spack/repos/builtin/packages/elsdc/package.py
2022-07-31 13:29:20 -07:00

29 lines
835 B
Python

# 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 Elsdc(MakefilePackage):
"""ELSDc: Ellipse and Line Segment Detector, with Continuous validation."""
homepage = "http://ubee.enseeiht.fr/vision/ELSD/"
git = "https://github.com/viorik/ELSDc.git"
version("master", branch="master")
depends_on("blas")
depends_on("lapack")
def edit(self, spec, prefix):
lapack_blas = spec["lapack"].libs + spec["blas"].libs
makefile = FileFilter("src/Makefile")
makefile.filter("-llapack", lapack_blas.link_flags)
def install(self, spec, prefix):
mkdir(prefix.bin)
install("elsdc", prefix.bin)