xref: /OK3568_Linux_fs/yocto/poky/meta-selftest/recipes-test/fortran/fortran-helloworld.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "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() {
14	${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello
15}
16
17do_install() {
18	install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
19}
20
21python () {
22    if not d.getVar("FORTRAN"):
23        raise bb.parse.SkipRecipe("Fortran isn't enabled")
24}
25