summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2018-12-13 22:05:24 -0600
committerGitHub <noreply@github.com>2018-12-13 22:05:24 -0600
commit3432a7143031afd7219270f9233426e7125e2764 (patch)
tree53b06adba360d2d44c01c5ab85a223b61e467784
parent289ad8f3756b9cad314d38ed87f96eb8c78d6377 (diff)
downloadspack-3432a7143031afd7219270f9233426e7125e2764.tar.gz
spack-3432a7143031afd7219270f9233426e7125e2764.tar.bz2
spack-3432a7143031afd7219270f9233426e7125e2764.tar.xz
spack-3432a7143031afd7219270f9233426e7125e2764.zip
Add new packages for ELSD and ELSDc (#10072)
-rw-r--r--var/spack/repos/builtin/packages/elsd/package.py28
-rw-r--r--var/spack/repos/builtin/packages/elsdc/package.py28
2 files changed, 56 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/elsd/package.py b/var/spack/repos/builtin/packages/elsd/package.py
new file mode 100644
index 0000000000..e23d18e0f6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/elsd/package.py
@@ -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)
diff --git a/var/spack/repos/builtin/packages/elsdc/package.py b/var/spack/repos/builtin/packages/elsdc/package.py
new file mode 100644
index 0000000000..4de02d962a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/elsdc/package.py
@@ -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)