blob: 3a464044775026326911455958f96ec8d74c49a6 [file] [log] [blame]
Brad Bishop96ff1982019-08-19 13:50:42 -04001SUMMARY = "Fortran Hello World"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4
5DEPENDS = "libgfortran"
6
7SRC_URI = "file://hello.f95"
8
9# These set flags that Fortran doesn't support
10SECURITY_CFLAGS = ""
11SECURITY_LDFLAGS = ""
12
13do_compile() {
Brad Bishop08902b02019-08-20 09:16:51 -040014 ${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello
Brad Bishop96ff1982019-08-19 13:50:42 -040015}
16
17do_install() {
Brad Bishop08902b02019-08-20 09:16:51 -040018 install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
Brad Bishop96ff1982019-08-19 13:50:42 -040019}
20
21python () {
22 if not d.getVar("FORTRAN"):
23 raise bb.parse.SkipRecipe("Fortran isn't enabled")
Brad Bishop08902b02019-08-20 09:16:51 -040024}