mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Use ${FC} instead of constructing the fortran name/arguments explictly, and
clean up installation.
(From OE-Core rev: a0d85e117fb636ffa12253b19f0ab2b5055e6380)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
550 B
BlitzBasic
25 lines
550 B
BlitzBasic
SUMMARY = "Fortran Hello World"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
DEPENDS = "libgfortran"
|
|
|
|
SRC_URI = "file://hello.f95"
|
|
|
|
# These set flags that Fortran doesn't support
|
|
SECURITY_CFLAGS = ""
|
|
SECURITY_LDFLAGS = ""
|
|
|
|
do_compile() {
|
|
${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello
|
|
}
|
|
|
|
do_install() {
|
|
install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
|
|
}
|
|
|
|
python () {
|
|
if not d.getVar("FORTRAN"):
|
|
raise bb.parse.SkipRecipe("Fortran isn't enabled")
|
|
}
|