Add new packages for ELSD and ELSDc (#10072)

This commit is contained in:
Adam J. Stewart 2018-12-13 22:05:24 -06:00 committed by GitHub
parent 289ad8f375
commit 3432a71430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# Copyright 2013-2018 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 Elsd(MakefilePackage):
"""ELSD: Ellipse and Line Segment Detector"""
homepage = "http://ubee.enseeiht.fr/vision/ELSD/"
git = "https://github.com/viorik/ELSD.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('makefile')
makefile.filter('-llapack -lblas', lapack_blas.link_flags)
def install(self, spec, prefix):
mkdir(prefix.bin)
install('elsd', prefix.bin)

View File

@ -0,0 +1,28 @@
# Copyright 2013-2018 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 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)