2012-05-23 10:17:49 +02:00
|
|
|
#-*- tab-width: 4; -*-
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# bsd.gcc.mk - Support for smarter USE_GCC usage.
|
|
|
|
#
|
|
|
|
# Created by: Edwin Groothuis <edwin@freebsd.org>
|
|
|
|
#
|
2012-12-22 22:35:35 +01:00
|
|
|
# To request the use of a current version of GCC, specify USE_GCC=yes in
|
|
|
|
# your port/system configuration. This is the preferred use of USE_GCC.
|
2014-03-16 01:45:55 +01:00
|
|
|
# It uses the canonical version of GCC defined in bsd.default-versions.mk.
|
2013-11-10 21:29:52 +01:00
|
|
|
#
|
2010-06-11 23:06:18 +02:00
|
|
|
# If your port needs a specific (minimum) version of GCC, you can easily
|
2012-12-22 22:35:35 +01:00
|
|
|
# specify that with a USE_GCC= statement. Unless absolutely necessary
|
2018-06-02 10:03:59 +02:00
|
|
|
# do so by specifying USE_GCC=X+ which requests at least GCC version X.
|
|
|
|
# To request a specific version omit the trailing + sign.
|
2013-11-10 21:29:52 +01:00
|
|
|
#
|
2021-01-30 16:15:01 +01:00
|
|
|
# Optionally comma-separated arguments follow the version specifier.
|
|
|
|
# Currently we support:
|
|
|
|
# build ... which adds GCC as a build dependency (BUILD_DEPENDS) only.
|
|
|
|
#
|
|
|
|
# If no arguments are specified, GCC is added as both a build dependency
|
|
|
|
# and a run time dependency.
|
|
|
|
#
|
|
|
|
#
|
2010-06-06 19:17:04 +02:00
|
|
|
# Examples:
|
2012-12-22 22:35:35 +01:00
|
|
|
# USE_GCC= yes # port requires a current version of GCC
|
2014-03-16 01:45:55 +01:00
|
|
|
# # as defined in bsd.default-versions.mk.
|
2021-07-16 14:39:41 +02:00
|
|
|
# USE_GCC= 11+ # port requires GCC 11 or later.
|
|
|
|
# USE_GCC= 9 # port requires GCC 9.
|
2021-01-30 16:15:01 +01:00
|
|
|
# USE_GCC= yes:build # port requires a current version of GCC at
|
|
|
|
# # build time only.
|
2021-07-16 14:39:41 +02:00
|
|
|
# USE_GCC= 10:build # port requires GCC 10 at build time only.
|
2021-01-30 16:15:01 +01:00
|
|
|
# USE_GCC= 11+:build # port requires GCC 11 or later at build
|
|
|
|
# # time only.
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
#
|
|
|
|
# If you are wondering what your port exactly does, use "make test-gcc"
|
|
|
|
# to see some debugging.
|
|
|
|
|
2007-01-29 10:27:04 +01:00
|
|
|
GCC_Include_MAINTAINER= gerald@FreeBSD.org
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
|
2020-06-20 23:57:57 +02:00
|
|
|
# All GCC versions supported by this framework.
|
|
|
|
#
|
2020-03-12 10:03:04 +01:00
|
|
|
# When updating this, keep Mk/bsd.default-versions.mk in sync.
|
2021-07-01 08:39:30 +02:00
|
|
|
GCCVERSIONS= 4.8 8 9 10 11 12
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
|
2011-10-30 16:51:09 +01:00
|
|
|
# No configurable parts below this. ####################################
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
#
|
|
|
|
|
2021-01-30 16:15:01 +01:00
|
|
|
# Split arguments
|
|
|
|
.if defined(USE_GCC)
|
|
|
|
__USE_GCC:= ${USE_GCC:C/\:.*//}
|
|
|
|
_USE_GCC_ARGS:= ${USE_GCC:C/^[^\:]*(\:|\$)//:S/,/ /g}
|
|
|
|
USE_GCC= ${__USE_GCC}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${_USE_GCC_ARGS:Mbuild}
|
|
|
|
_USE_GCC_ARGS:= ${_USE_GCC_ARGS:Nbuild}
|
|
|
|
.else
|
|
|
|
_USE_GCC_RUN_DEPENDS= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(_USE_GCC_ARGS)
|
|
|
|
IGNORE= bad target specification in USE_GCC; only "build" is supported
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 21:33:19 +02:00
|
|
|
.if defined(USE_GCC) && !defined(FORCE_BASE_CC_FOR_TESTING)
|
|
|
|
|
2021-10-15 19:43:11 +02:00
|
|
|
# Handle USE_GCC=yes.
|
|
|
|
.if ${USE_GCC} == yes
|
2020-04-03 23:46:40 +02:00
|
|
|
USE_GCC= ${GCC_DEFAULT}+
|
|
|
|
.endif
|
2008-06-28 18:52:40 +02:00
|
|
|
|
2011-11-12 23:03:55 +01:00
|
|
|
# See if we can use a later version or exclusively the one specified.
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
_USE_GCC:= ${USE_GCC:S/+//}
|
|
|
|
.if ${USE_GCC} != ${_USE_GCC}
|
|
|
|
_GCC_ORLATER:= true
|
|
|
|
.endif
|
|
|
|
|
2020-02-22 11:15:04 +01:00
|
|
|
# See whether we have the specific version requested installed already
|
|
|
|
# and save that into _GCC_FOUND. In parallel, check if USE_GCC refers
|
|
|
|
# to a valid version to begin with.
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
.for v in ${GCCVERSIONS}
|
2020-04-17 00:25:20 +02:00
|
|
|
. if ${_USE_GCC} == ${v}
|
2013-03-29 12:26:14 +01:00
|
|
|
_GCCVERSION_OKAY= true
|
2020-04-17 00:25:20 +02:00
|
|
|
. if exists(${LOCALBASE}/bin/gcc${v:S/.//})
|
2020-02-22 11:15:04 +01:00
|
|
|
_GCC_FOUND:= ${_USE_GCC}
|
|
|
|
. endif
|
2013-03-29 12:26:14 +01:00
|
|
|
. endif
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
.endfor
|
|
|
|
|
2013-03-29 12:26:14 +01:00
|
|
|
.if !defined(_GCCVERSION_OKAY)
|
|
|
|
IGNORE= Unknown version of GCC specified (USE_GCC=${USE_GCC})
|
|
|
|
.endif
|
|
|
|
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
# If the GCC package defined in USE_GCC does not exist, but a later
|
2020-02-22 11:15:04 +01:00
|
|
|
# version is allowed (for example 8+), go and use the default.
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
.if defined(_GCC_ORLATER)
|
2020-02-22 11:15:04 +01:00
|
|
|
. if !defined(_GCC_FOUND) && ${_USE_GCC} < ${GCC_DEFAULT}
|
2014-02-24 23:15:32 +01:00
|
|
|
_USE_GCC:= ${GCC_DEFAULT}
|
2011-10-30 21:58:22 +01:00
|
|
|
. endif
|
|
|
|
.endif # defined(_GCC_ORLATER)
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
|
2020-04-03 23:46:40 +02:00
|
|
|
# A concrete version has been selected. Set proper ports dependencies,
|
|
|
|
# CC, CXX, CPP, and flags.
|
|
|
|
V:= ${_USE_GCC:S/.//}
|
2021-06-21 09:25:53 +02:00
|
|
|
. if ${V} == 12
|
2020-04-26 16:20:35 +02:00
|
|
|
_GCC_PORT:= gcc${V}-devel
|
|
|
|
. else
|
2012-08-03 04:28:37 +02:00
|
|
|
_GCC_PORT:= gcc${V}
|
2020-04-26 16:20:35 +02:00
|
|
|
. endif
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
CC:= gcc${V}
|
|
|
|
CXX:= g++${V}
|
2010-09-28 04:48:29 +02:00
|
|
|
CPP:= cpp${V}
|
2012-08-03 23:23:04 +02:00
|
|
|
_GCC_RUNTIME:= ${LOCALBASE}/lib/gcc${V}
|
2020-04-03 23:46:40 +02:00
|
|
|
. if ${PORTNAME} == gcc
|
2018-12-29 16:38:30 +01:00
|
|
|
# We don't want the rpath stuff while building GCC itself
|
|
|
|
# so we do not set the FLAGS as done in the else part.
|
|
|
|
# When building a GCC, we want the target libraries to be used and not the
|
|
|
|
# host GCC libraries.
|
2020-04-03 23:46:40 +02:00
|
|
|
. else
|
2012-08-03 23:23:04 +02:00
|
|
|
CFLAGS+= -Wl,-rpath=${_GCC_RUNTIME}
|
2012-11-06 01:23:43 +01:00
|
|
|
CXXFLAGS+= -Wl,-rpath=${_GCC_RUNTIME}
|
2013-12-07 23:36:21 +01:00
|
|
|
LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} -L${_GCC_RUNTIME}
|
2020-04-03 23:46:40 +02:00
|
|
|
. endif
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
.undef V
|
|
|
|
|
2018-08-05 15:30:30 +02:00
|
|
|
# Now filter unsupported flags for CC and CXX.
|
|
|
|
CFLAGS:= ${CFLAGS:N-mretpoline}
|
|
|
|
CXXFLAGS:= ${CXXFLAGS:N-mretpoline}
|
|
|
|
|
2020-04-09 22:43:02 +02:00
|
|
|
.if defined(_GCC_PORT)
|
|
|
|
BUILD_DEPENDS+= ${CC}:lang/${_GCC_PORT}
|
2021-01-30 16:15:01 +01:00
|
|
|
. if defined(_USE_GCC_RUN_DEPENDS)
|
2020-04-09 22:43:02 +02:00
|
|
|
RUN_DEPENDS+= ${CC}:lang/${_GCC_PORT}
|
2021-01-30 16:15:01 +01:00
|
|
|
. endif
|
2020-04-09 22:43:02 +02:00
|
|
|
# GCC ports already depend on binutils; make sure whatever we build
|
|
|
|
# leverages this as well.
|
2011-02-01 02:41:19 +01:00
|
|
|
USE_BINUTILS= yes
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
.endif
|
2020-04-03 23:46:40 +02:00
|
|
|
|
2012-10-07 21:33:19 +02:00
|
|
|
.endif # defined(_USE_GCC) && !defined(FORCE_BASE_CC_FOR_TESTING)
|
2008-06-28 18:52:40 +02:00
|
|
|
|
|
|
|
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
test-gcc:
|
|
|
|
@echo USE_GCC=${USE_GCC}
|
2013-03-16 14:01:12 +01:00
|
|
|
.if defined(IGNORE)
|
|
|
|
@echo "IGNORE: ${IGNORE}"
|
|
|
|
.else
|
2008-06-28 18:52:40 +02:00
|
|
|
.if defined(USE_GCC)
|
* Change bento to pointyhat names in comments. [1]
* Document DISABLE_VULNERABILITIES variable. [2]
* Add WWW: line for 'search' target. [3]
* Speedup check-vulnerable invokation, if portaudit is installed. [4]
* Run install-info for all .info files. [5]
* Run add-plist-docs more strictly and prevent some situations with
leftover files in the future. [6]
* Introduce two new variables: MASTER_PORT and SLAVE_PORT.
The results from these variables is only used as information for
users. [7]
* Honour OPTIONS if PACKAGE_BUILDING or BATCH are defined. [8]
* Move all USE_GCC entries to new file - bsd.gcc.mk. 'test-gcc'
target allows users to check gcc version if USE_GCC is used. Give
maintainers opportunity to add '+' character to USE_GCC version
for using specified and higher versions. [9]
* Install startup scripts with the help of USE_RC_SUBR variable. [10]
* Add three new targets: config-recursive, rmconfig-recursive and
config-conditional. You can set or delete OPTIONS for all
dependencies before every build. config-conditional target is
used to skip configuring ports which have already been
configured. [11]
* Fix using of WANT_PGSQL_VER variable if postgresql is already
installed. [12]
PR: ports/75768 [1], ports/75728 [2], ports/76187 [3],
ports/76191 [4], ports/76182 [5], ports/75379 [6],
ports/75286 [7], ports/75727 [8], ports/76489 [9],
ports/73691 ports/69217 [10], ports/76254 [11],
ports/76988 [12]
Submitted by: dinoex [1], edwin [2] [5] [6] [8] [9] [10],
Marcus Grando <marcus@corp.grupos.com.br> [3],
tobez and Valentin Nechayev <netch@netch.kiev.ua> [4],
linimon [7], Florent Thoumie <flz@xbsd.org> [10],
Chris Dillon <cdillon@wolves.k12.mo.us> [11],
girgen [12]
2005-02-07 12:17:50 +01:00
|
|
|
.if defined(_GCC_ORLATER)
|
|
|
|
@echo Port can use later versions.
|
|
|
|
.else
|
|
|
|
@echo Port cannot use later versions.
|
|
|
|
.endif
|
2006-09-30 21:25:46 +02:00
|
|
|
@echo Using GCC version ${_USE_GCC}
|
2008-06-28 18:52:40 +02:00
|
|
|
.endif
|
2018-08-05 14:14:28 +02:00
|
|
|
@echo CC=${CC} - CXX=${CXX} - CPP=${CPP}
|
|
|
|
@echo CFLAGS=\"${CFLAGS}\"
|
|
|
|
@echo CXXFLAGS=\"${CXXFLAGS}\"
|
2009-09-23 23:13:07 +02:00
|
|
|
@echo LDFLAGS=\"${LDFLAGS}\"
|
2010-01-02 13:05:30 +01:00
|
|
|
@echo "BUILD_DEPENDS=${BUILD_DEPENDS}"
|
|
|
|
@echo "RUN_DEPENDS=${RUN_DEPENDS}"
|
2013-03-16 14:01:12 +01:00
|
|
|
.endif
|