| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: gfortran.mk,v 1.25 2023/10/31 13:47:56 gdt Exp $ | | 1 | # $NetBSD: gfortran.mk,v 1.26 2023/11/04 12:50:06 gdt Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Johnny C. Lam. | | 7 | # by Johnny C. Lam. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -49,32 +49,32 @@ GFORTRAN_VERSION?= 12 | | | @@ -49,32 +49,32 @@ GFORTRAN_VERSION?= 12 |
49 | # selected (historical current only?), advance to 10. | | 49 | # selected (historical current only?), advance to 10. |
50 | .if !empty(POSSIBLE_GFORTRAN_VERSION:M9) && \ | | 50 | .if !empty(POSSIBLE_GFORTRAN_VERSION:M9) && \ |
51 | !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*) | | 51 | !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64*) |
52 | POSSIBLE_GFORTRAN_VERSION= 10 | | 52 | POSSIBLE_GFORTRAN_VERSION= 10 |
53 | .endif | | 53 | .endif |
54 | | | 54 | |
55 | # All pkgsrc gcc < 10 versions are not ok on 32-bit arm; advance to 10. | | 55 | # All pkgsrc gcc < 10 versions are not ok on 32-bit arm; advance to 10. |
56 | .if !empty(POSSIBLE_GFORTRAN_VERSION:M[0-9]) && \ | | 56 | .if !empty(POSSIBLE_GFORTRAN_VERSION:M[0-9]) && \ |
57 | !empty(MACHINE_PLATFORM:MNetBSD-*-earm*) | | 57 | !empty(MACHINE_PLATFORM:MNetBSD-*-earm*) |
58 | POSSIBLE_GFORTRAN_VERSION= 10 | | 58 | POSSIBLE_GFORTRAN_VERSION= 10 |
59 | .endif | | 59 | .endif |
60 | | | 60 | |
61 | # If we are using gcc, and the POSSIBLE version exists in pkgsrc, use it. | | 61 | # If we are using gcc, and the POSSIBLE version exists in pkgsrc, use it. |
62 | # Otherwise, pick gcc 7. \todo Revisit this choice. | | 62 | # Otherwise, pick gcc 10 as a mainstream default. |
63 | .if !empty(PKGSRC_COMPILER:Mgcc) && \ | | 63 | .if !empty(PKGSRC_COMPILER:Mgcc) && \ |
64 | exists(${PKGSRCDIR}/lang/gcc${POSSIBLE_GFORTRAN_VERSION}/buildlink3.mk) | | 64 | exists(${PKGSRCDIR}/lang/gcc${POSSIBLE_GFORTRAN_VERSION}/buildlink3.mk) |
65 | GFORTRAN_VERSION?= ${POSSIBLE_GFORTRAN_VERSION} | | 65 | GFORTRAN_VERSION?= ${POSSIBLE_GFORTRAN_VERSION} |
66 | .else | | 66 | .else |
67 | GFORTRAN_VERSION?= 7 | | 67 | GFORTRAN_VERSION?= 10 |
68 | .endif | | 68 | .endif |
69 | | | 69 | |
70 | .if !empty(PKGPATH:Mlang/gcc${GFORTRAN_VERSION}) || !empty(PKGPATH:Mdevel/patch) || \ | | 70 | .if !empty(PKGPATH:Mlang/gcc${GFORTRAN_VERSION}) || !empty(PKGPATH:Mdevel/patch) || \ |
71 | !empty(PKGPATH:Mdevel/libtool-base) | | 71 | !empty(PKGPATH:Mdevel/libtool-base) |
72 | IGNORE_GFORTRAN= yes | | 72 | IGNORE_GFORTRAN= yes |
73 | MAKEFLAGS+= IGNORE_GFORTRAN=yes | | 73 | MAKEFLAGS+= IGNORE_GFORTRAN=yes |
74 | .endif | | 74 | .endif |
75 | | | 75 | |
76 | .if defined(IGNORE_GFORTRAN) | | 76 | .if defined(IGNORE_GFORTRAN) |
77 | _USE_GFORTRAN= NO | | 77 | _USE_GFORTRAN= NO |
78 | .endif | | 78 | .endif |
79 | | | 79 | |
80 | # LANGUAGES.<compiler> is the list of supported languages by the compiler. | | 80 | # LANGUAGES.<compiler> is the list of supported languages by the compiler. |