Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.default-versions.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# MAINTAINER: ports@FreeBSD.org | # MAINTAINER: ports@FreeBSD.org | ||||
# | # | ||||
# Provide default versions for ports with multiple versions selectable | # Provide default versions for ports with multiple versions selectable | ||||
# by the user. | # by the user. | ||||
# | # | ||||
# Users who want to override these defaults can easily do so by defining | # Users who want to override these defaults can easily do so by defining | ||||
# DEFAULT_VERSIONS in their make.conf as follows: | # DEFAULT_VERSIONS in their make.conf as follows: | ||||
# | # | ||||
# DEFAULT_VERSIONS= perl5=5.20 ruby=2.0 | # DEFAULT_VERSIONS= perl5=5.20 ruby=2.0 | ||||
.if !defined(_INCLUDE_BSD_DEFAULT_VERSIONS_MK) | .if !defined(_INCLUDE_BSD_DEFAULT_VERSIONS_MK) | ||||
_INCLUDE_BSD_DEFAULT_VERSIONS_MK= yes | _INCLUDE_BSD_DEFAULT_VERSIONS_MK= yes | ||||
LOCALBASE?= /usr/local | LOCALBASE?= /usr/local | ||||
.for lang in APACHE BDB EMACS FIREBIRD FORTRAN FPC GCC GHOSTSCRIPT LINUX LUA \ | .for lang in APACHE BDB EMACS FIREBIRD FORTRAN FPC GCC GHOSTSCRIPT LINUX LUA \ | ||||
sunpoet: It will exceed 80 characters in this line. Please move PERL5 to the next line. | |||||
MYSQL PERL5 PGSQL PHP PYTHON PYTHON2 PYTHON3 RUBY SSL TCLTK | MYSQL NODE PERL5 PGSQL PHP PYTHON PYTHON2 PYTHON3 RUBY SSL TCLTK | ||||
.if defined(${lang}_DEFAULT) | .if defined(${lang}_DEFAULT) | ||||
ERROR+= "The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf" | ERROR+= "The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf" | ||||
.endif | .endif | ||||
#.undef ${lang}_DEFAULT | #.undef ${lang}_DEFAULT | ||||
.endfor | .endfor | ||||
.for lang in ${DEFAULT_VERSIONS} | .for lang in ${DEFAULT_VERSIONS} | ||||
_l= ${lang:C/=.*//g} | _l= ${lang:C/=.*//g} | ||||
Show All 22 Lines | |||||
.else | .else | ||||
# Possible values: c6 | # Possible values: c6 | ||||
LINUX_DEFAULT?= c6 | LINUX_DEFAULT?= c6 | ||||
.endif | .endif | ||||
# Possible values: 5.1, 5.2, 5.3 | # Possible values: 5.1, 5.2, 5.3 | ||||
LUA_DEFAULT?= 5.2 | LUA_DEFAULT?= 5.2 | ||||
# Possible values: 5.5, 5.6, 5.7, 8.0, 5.5m, 10.0m, 10.1m, 10.2m, 5.5p, 5.6p, 5.7p, 5.6w | # Possible values: 5.5, 5.6, 5.7, 8.0, 5.5m, 10.0m, 10.1m, 10.2m, 5.5p, 5.6p, 5.7p, 5.6w | ||||
MYSQL_DEFAULT?= 5.6 | MYSQL_DEFAULT?= 5.6 | ||||
# Possible values: 4, 6, 8, 9 | |||||
NODE_DEFAULT?= 9 | |||||
# Possible values: 5.22, 5.24, 5.26, devel | # Possible values: 5.22, 5.24, 5.26, devel | ||||
.if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \ | .if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \ | ||||
defined(PACKAGE_BUILDING)) | defined(PACKAGE_BUILDING)) | ||||
PERL5_DEFAULT?= 5.24 | PERL5_DEFAULT?= 5.24 | ||||
.elif !defined(PERL5_DEFAULT) | .elif !defined(PERL5_DEFAULT) | ||||
# There's no need to replace development versions, like "5.23" with "devel" | # There's no need to replace development versions, like "5.23" with "devel" | ||||
# because 1) nobody is supposed to use it outside of poudriere, and 2) it must | # because 1) nobody is supposed to use it outside of poudriere, and 2) it must | ||||
# be set manually in /etc/make.conf in the first place, and we're never getting | # be set manually in /etc/make.conf in the first place, and we're never getting | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |
It will exceed 80 characters in this line. Please move PERL5 to the next line.