fortran-helloworld.bb 559 B

1234567891011121314151617181920212223242526
  1. SUMMARY = "Fortran Hello World"
  2. LICENSE = "MIT"
  3. LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
  4. DEPENDS = "libgfortran"
  5. SRC_URI = "file://hello.f95"
  6. S = "${UNPACKDIR}"
  7. # These set flags that Fortran doesn't support
  8. SECURITY_CFLAGS = ""
  9. SECURITY_LDFLAGS = ""
  10. do_compile() {
  11. ${FC} ${LDFLAGS} hello.f95 -o ${B}/fortran-hello
  12. }
  13. do_install() {
  14. install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
  15. }
  16. python () {
  17. if not d.getVar("FORTRAN"):
  18. raise bb.parse.SkipRecipe("Fortran isn't enabled")
  19. }