pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/compiler
Module Name: pkgsrc
Committed By: wiz
Date: Mon Jun 12 21:50:41 UTC 2023
Modified Files:
pkgsrc/mk/compiler: gcc.mk
Log Message:
mk: add support for gcc13
Friendly reminder by gutteridge@
To generate a diff of this commit:
cvs rdiff -u -r1.250 -r1.251 pkgsrc/mk/compiler/gcc.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/compiler/gcc.mk
diff -u pkgsrc/mk/compiler/gcc.mk:1.250 pkgsrc/mk/compiler/gcc.mk:1.251
--- pkgsrc/mk/compiler/gcc.mk:1.250 Thu Jun 8 22:59:53 2023
+++ pkgsrc/mk/compiler/gcc.mk Mon Jun 12 21:50:41 2023
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.250 2023/06/08 22:59:53 riastradh Exp $
+# $NetBSD: gcc.mk,v 1.251 2023/06/12 21:50:41 wiz Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -95,7 +95,7 @@ _DEF_VARS.gcc= \
_LANGUAGES.gcc \
_LINKER_RPATH_FLAG \
_NEED_GCC6 _NEED_GCC7 _NEED_GCC8 _NEED_GCC9 \
- _NEED_GCC10 _NEED_GCC12 \
+ _NEED_GCC10 _NEED_GCC12 _NEED_GCC13 \
_NEED_GCC_AUX _NEED_NEWER_GCC \
_PKGSRC_GCC_VERSION \
_USE_GCC_SHLIB _USE_PKGSRC_GCC \
@@ -128,7 +128,7 @@ _USE_VARS.gcc= \
_OPSYS_INCLUDE_DIRS _OPSYS_LIB_DIRS
_IGN_VARS.gcc= \
_GCC6_PATTERNS _GCC7_PATTERNS _GCC8_PATTERNS _GCC9_PATTERNS \
- _GCC10_PATTERNS _GCC12_PATTERNS _GCC_AUX_PATTERNS
+ _GCC10_PATTERNS _GCC12_PATTERNS _GCC13_PATTERNS _GCC_AUX_PATTERNS
_LISTED_VARS.gcc= \
MAKEFLAGS IMAKEOPTS LDFLAGS PREPEND_PATH
.include "../../mk/bsd.prefs.mk"
@@ -158,7 +158,7 @@ GCC_REQD+= 20160822
# _GCC_DIST_VERSION is the highest version of GCC installed by the pkgsrc
# without the PKGREVISIONs.
-_GCC_DIST_NAME:= gcc12
+_GCC_DIST_NAME:= gcc13
.include "../../lang/${_GCC_DIST_NAME}/version.mk"
_GCC_DIST_VERSION:= ${${_GCC_DIST_NAME:tu}_DIST_VERSION}
@@ -180,6 +180,9 @@ _GCC10_PATTERNS= 10 10.*
# _GCC12_PATTERNS matches N s.t. 12.0 <= N < 13.
_GCC12_PATTERNS= 12 12.*
+# _GCC13_PATTERNS matches N s.t. 13.0 <= N < 14.
+_GCC13_PATTERNS= 13 13.*
+
# _GCC_AUX_PATTERNS matches 8-digit date YYYYMMDD*
_GCC_AUX_PATTERNS= 20[1-2][0-9][0-1][0-9][0-3][0-9]*
@@ -348,6 +351,12 @@ _NEED_GCC12?= no
_NEED_GCC12= yes
. endif
.endfor
+_NEED_GCC13?= no
+.for _pattern_ in ${_GCC13_PATTERNS}
+. if !empty(_GCC_REQD:M${_pattern_})
+_NEED_GCC13= yes
+. endif
+.endfor
_NEED_GCC_AUX?= no
.for _pattern_ in ${_GCC_AUX_PATTERNS}
. if !empty(_GCC_REQD:M${_pattern_})
@@ -358,7 +367,7 @@ _NEED_NEWER_GCC=NO
.if !empty(_NEED_GCC6:M[nN][oO]) && !empty(_NEED_GCC7:M[nN][oO]) && \
!empty(_NEED_GCC8:M[nN][oO]) && !empty(_NEED_GCC9:M[nN][oO]) && \
!empty(_NEED_GCC10:M[nN][oO]) && !empty(_NEED_GCC12:M[nN][oO]) && \
- !empty(_NEED_GCC_AUX:M[nN][oO])
+ !empty(_NEED_GCC13:M[nN][oO]) && !empty(_NEED_GCC_AUX:M[nN][oO])
_NEED_GCC8= yes
.endif
@@ -372,6 +381,7 @@ _NEED_GCC8= no
_NEED_GCC9= no
_NEED_GCC10= yes
_NEED_GCC12= yes
+_NEED_GCC13= yes
.endif
# Assume by default that GCC will only provide a C compiler.
@@ -388,6 +398,8 @@ LANGUAGES.gcc= c c++ fortran fortran77 g
LANGUAGES.gcc= c c++ fortran fortran77 go java objc obj-c++
.elif !empty(_NEED_GCC12:M[yY][eE][sS])
LANGUAGES.gcc= c c++ fortran fortran77 go java objc obj-c++
+.elif !empty(_NEED_GCC13:M[yY][eE][sS])
+LANGUAGES.gcc= c c++ fortran fortran77 go java objc obj-c++
.elif !empty(_NEED_GCC_AUX:M[yY][eE][sS])
LANGUAGES.gcc= c c++ fortran fortran77 objc ada
.endif
@@ -598,6 +610,27 @@ _GCC_DEPENDENCY= gcc12>=${_GCC_REQD}:../
_USE_GCC_SHLIB?= yes
. endif
. endif
+.elif !empty(_NEED_GCC13:M[yY][eE][sS])
+#
+# We require gcc-13.x in the lang/gcc13-* directory.
+#
+_GCC_PKGBASE= gcc13
+. if ${PKGPATH} == lang/gcc13
+_IGNORE_GCC= yes
+MAKEFLAGS+= _IGNORE_GCC=yes
+. endif
+. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
+_GCC_PKGSRCDIR= ../../lang/gcc13
+_GCC_DEPENDENCY= gcc13>=${_GCC_REQD}:../../lang/gcc13
+. if !empty(_LANGUAGES.gcc:Mc++) || \
+ !empty(_LANGUAGES.gcc:Mfortran) || \
+ !empty(_LANGUAGES.gcc:Mfortran77) || \
+ !empty(_LANGUAGES.gcc:Mgo) || \
+ !empty(_LANGUAGES.gcc:Mobjc) || \
+ !empty(_LANGUAGES.gcc:Mobj-c++)
+_USE_GCC_SHLIB?= yes
+. endif
+. endif
.elif !empty(_NEED_GCC_AUX:M[yY][eE][sS])
#
# We require Ada-capable compiler in the lang/gcc6-aux directory.
@@ -912,7 +945,8 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
# Special case packages which are themselves a dependency of gcc runtime.
. if ${PKGPATH} != devel/libtool-base && ${PKGPATH} != devel/binutils && \
empty(PKGPATH:Mlang/gcc4?) && empty(PKGPATH:Mlang/gcc[5-9]) && \
- empty(PKGPATH:Mlang/gcc10) && empty(PKGPATH:Mlang/gcc12)
+ empty(PKGPATH:Mlang/gcc10) && empty(PKGPATH:Mlang/gcc12) && \
+ empty(PKGPATH:Mlang/gcc13)
. if !empty(_GCC_PKGBASE:Mgcc6)
. include "../../lang/gcc6-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc7)
@@ -925,6 +959,8 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
. include "../../lang/gcc10-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc12)
. include "../../lang/gcc12-libs/buildlink3.mk"
+. elif !empty(_GCC_PKGBASE:Mgcc13)
+. include "../../lang/gcc13-libs/buildlink3.mk"
. else
PKG_FAIL_REASON+= "No USE_PKGSRC_GCC_RUNTIME support for ${CC_VERSION}"
. endif
Home |
Main Index |
Thread Index |
Old Index