mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-04 06:54:36 +02:00
libgfortran-external: add recipe
Fix #60. Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
34
recipes-external/gcc/libgfortran-external.bb
Normal file
34
recipes-external/gcc/libgfortran-external.bb
Normal file
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "The GNU Compiler Collection - libgfortran"
|
||||
HOMEPAGE = "http://www.gnu.org/software/gcc/"
|
||||
SECTION = "devel"
|
||||
GCC_VERSION := "${@oe.external.run(d, 'gcc', '-dumpversion').rstrip()}"
|
||||
PV = "${GCC_VERSION}"
|
||||
|
||||
inherit external-toolchain
|
||||
|
||||
LICENSE = "GPL-3.0-with-GCC-exception"
|
||||
|
||||
external_libroot = "${@os.path.realpath('${EXTERNAL_TOOLCHAIN_LIBROOT}').replace(os.path.realpath('${EXTERNAL_TOOLCHAIN}') + '/', '/')}"
|
||||
FILES_MIRRORS =. "${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/|${external_libroot}/\n"
|
||||
|
||||
EXTERNAL_PROVIDE_PATTERN = "${FILES_${PN}}"
|
||||
|
||||
PACKAGES = "\
|
||||
${PN}-dbg \
|
||||
libgfortran \
|
||||
libgfortran-dev \
|
||||
libgfortran-staticdev \
|
||||
"
|
||||
FILES_${PN} = "${libdir}/libgfortran.so.*"
|
||||
FILES_${PN}-dev = "\
|
||||
${libdir}/libgfortran*.so \
|
||||
${libdir}/libgfortran.spec \
|
||||
${libdir}/libgfortran.la \
|
||||
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/libgfortranbegin.* \
|
||||
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/libcaf_single* \
|
||||
"
|
||||
FILES_${PN}-staticdev = "${libdir}/libgfortran.a"
|
||||
|
||||
do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
|
||||
do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
|
||||
do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
|
||||
Reference in New Issue
Block a user