lapack_3.10.1.bb 2.4 KB

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