summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/elsd/package.py
blob: f447417570baa3a2481503dddc3578d98272e8bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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 Elsd(MakefilePackage):
    """ELSD: Ellipse and Line Segment Detector"""

    homepage = "http://ubee.enseeiht.fr/vision/ELSD/"
    git = "https://github.com/viorik/ELSD.git"

    license("AGPL-3.0-only")

    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("makefile")
        makefile.filter("-llapack -lblas", lapack_blas.link_flags)

    def install(self, spec, prefix):
        mkdir(prefix.bin)
        install("elsd", prefix.bin)