summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/lapack/lapack_3.12.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/lapack/lapack_3.12.0.bb')
-rw-r--r--meta-oe/recipes-devtools/lapack/lapack_3.12.0.bb59
1 files changed, 0 insertions, 59 deletions
diff --git a/meta-oe/recipes-devtools/lapack/lapack_3.12.0.bb b/meta-oe/recipes-devtools/lapack/lapack_3.12.0.bb
deleted file mode 100644
index fef9d3a80e..0000000000
--- a/meta-oe/recipes-devtools/lapack/lapack_3.12.0.bb
+++ /dev/null
@@ -1,59 +0,0 @@
1SUMMARY = "Linear Algebra PACKage"
2URL = "http://www.netlib.org/lapack"
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=d0e7a458f9fcbf0a3ba97cef3128b85d"
5
6# Recipe needs FORTRAN support (copied from conf/local.conf.sample.extended)
7# Enabling FORTRAN
8# Note this is not officially supported and is just illustrated here to
9# show an example of how it can be done
10# You'll also need your fortran recipe to depend on libgfortran
11#FORTRAN:forcevariable = ",fortran"
12#RUNTIMETARGET:append:pn-gcc-runtime = " libquadmath"
13
14DEPENDS = "libgfortran \
15 ${@bb.utils.contains('PTEST_ENABLED', '1', 'rsync-native', '', d)} \
16 "
17RDEPENDS:${PN}-ptest += "cmake"
18
19SRCREV = "04b044e020a3560ccfa9988c8a80a1fb7083fc2e"
20SRC_URI = "git://github.com/Reference-LAPACK/lapack.git;protocol=https;branch=master \
21 ${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', d)} \
22 "
23S = "${WORKDIR}/git"
24
25PACKAGECONFIG ?= ""
26PACKAGECONFIG[lapacke] = "-DLAPACKE=ON,-DLAPACKE=OFF"
27
28EXTRA_OECMAKE = " -DBUILD_SHARED_LIBS=ON \
29 ${@bb.utils.contains('PTEST_ENABLED', '1', ' -DBUILD_TESTING=ON', '', d)} \
30 "
31OECMAKE_GENERATOR = "Unix Makefiles"
32
33inherit cmake pkgconfig ptest
34EXCLUDE_FROM_WORLD = "1"
35
36do_install_ptest () {
37 rsync -a ${B}/TESTING ${D}${PTEST_PATH} \
38 --exclude CMakeFiles \
39 --exclude cmake_install.cmake \
40 --exclude Makefile
41 rsync -a ${B}/BLAS ${D}${PTEST_PATH} \
42 --exclude CMakeFiles \
43 --exclude cmake_install.cmake \
44 --exclude Makefile
45 rsync -a ${B}/LAPACKE ${D}${PTEST_PATH} \
46 --exclude CMakeFiles \
47 --exclude cmake_install.cmake \
48 --exclude Makefile
49 cp -r ${B}/bin ${D}${PTEST_PATH}
50 cp -r ${B}/lapack_testing.py ${D}${PTEST_PATH}
51 cp ${B}/CTestTestfile.cmake ${D}${PTEST_PATH}
52 cp ${S}/TESTING/*.in ${S}/TESTING/runtest.cmake ${D}${PTEST_PATH}/TESTING
53 cp ${S}/BLAS/TESTING/*.in ${D}${PTEST_PATH}/BLAS/TESTING
54 sed -i -e 's#${B}#${PTEST_PATH}#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
55 sed -i -e 's#${S}#${PTEST_PATH}#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
56 sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
57 sed -i -e 's#${PYTHON}#/usr/bin/python3#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
58 sed -i -e 's#${WORKDIR}##g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
59}