View | Details | Raw Unified | Return to bug 278885 | Differences between
and this patch

Collapse All | Expand All

(-)b/Mk/bsd.default-versions.mk (-1 / +1 lines)
Lines 1-188 Link Here
1
# MAINTAINER:	ports@FreeBSD.org
1
# MAINTAINER:	ports@FreeBSD.org
2
#
2
#
3
# Note: before committing to this file, contact portmgr to arrange for an
3
# Note: before committing to this file, contact portmgr to arrange for an
4
# experimental ports run.  Untested commits may be backed out at portmgr's
4
# experimental ports run.  Untested commits may be backed out at portmgr's
5
# discretion.
5
# discretion.
6
#
6
#
7
# Provide default versions for ports with multiple versions selectable
7
# Provide default versions for ports with multiple versions selectable
8
# by the user.
8
# by the user.
9
#
9
#
10
# Users who want to override these defaults can easily do so by defining
10
# Users who want to override these defaults can easily do so by defining
11
# DEFAULT_VERSIONS in their make.conf as follows:
11
# DEFAULT_VERSIONS in their make.conf as follows:
12
#
12
#
13
#   DEFAULT_VERSIONS=	perl5=5.20 ruby=3.1
13
#   DEFAULT_VERSIONS=	perl5=5.20 ruby=3.1
14
14
15
.if !defined(_INCLUDE_BSD_DEFAULT_VERSIONS_MK)
15
.if !defined(_INCLUDE_BSD_DEFAULT_VERSIONS_MK)
16
_INCLUDE_BSD_DEFAULT_VERSIONS_MK=	yes
16
_INCLUDE_BSD_DEFAULT_VERSIONS_MK=	yes
17
17
18
LOCALBASE?=	/usr/local
18
LOCALBASE?=	/usr/local
19
19
20
.  for lang in APACHE BDB COROSYNC EBUR128 EMACS FIREBIRD FORTRAN FPC GCC \
20
.  for lang in APACHE BDB COROSYNC EBUR128 EMACS FIREBIRD FORTRAN FPC GCC \
21
	GHOSTSCRIPT GL GO GUILE IMAGEMAGICK JAVA LAZARUS LIBRSVG2 LINUX LLVM \
21
	GHOSTSCRIPT GL GO GUILE IMAGEMAGICK JAVA LAZARUS LIBRSVG2 LINUX LLVM \
22
	LUA LUAJIT MONO MYSQL NINJA NODEJS OPENLDAP PERL5 PGSQL PHP \
22
	LUA LUAJIT MONO MYSQL NINJA NODEJS OPENLDAP PERL5 PGSQL PHP \
23
	PYCRYPTOGRAPHY PYTHON PYTHON2 RUBY RUST SAMBA SSL TCLTK VARNISH
23
	PYCRYPTOGRAPHY PYTHON PYTHON2 RUBY RUST SAMBA SSL TCLTK VARNISH
24
.    if defined(${lang}_DEFAULT)
24
.    if defined(${lang}_DEFAULT)
25
ERROR+=	"The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf"
25
ERROR+=	"The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf"
26
.    endif
26
.    endif
27
#.undef ${lang}_DEFAULT
27
#.undef ${lang}_DEFAULT
28
.  endfor
28
.  endfor
29
29
30
.  for lang in ${DEFAULT_VERSIONS}
30
.  for lang in ${DEFAULT_VERSIONS}
31
_l=		${lang:C/=.*//g}
31
_l=		${lang:C/=.*//g}
32
${_l:tu}_DEFAULT=	${lang:C/.*=//g}
32
${_l:tu}_DEFAULT=	${lang:C/.*=//g}
33
.  endfor
33
.  endfor
34
34
35
# Possible values: 2.4
35
# Possible values: 2.4
36
APACHE_DEFAULT?=	2.4
36
APACHE_DEFAULT?=	2.4
37
# Possible values: 5, 18
37
# Possible values: 5, 18
38
BDB_DEFAULT?=		5
38
BDB_DEFAULT?=		5
39
# Possible values: 2, 3
39
# Possible values: 2, 3
40
COROSYNC_DEFAULT?=	3
40
COROSYNC_DEFAULT?=	3
41
# Possible values: rust, legacy
41
# Possible values: rust, legacy
42
.  if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
42
.  if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
43
EBUR128_DEFAULT?=	rust
43
EBUR128_DEFAULT?=	rust
44
.  else
44
.  else
45
EBUR128_DEFAULT?=	legacy
45
EBUR128_DEFAULT?=	legacy
46
.  endif
46
.  endif
47
# Possible_values: full canna nox devel_full devel_nox
47
# Possible_values: full canna nox devel_full devel_nox
48
#EMACS_DEFAULT?=	let the flavor be the default if not explicitly set
48
#EMACS_DEFAULT?=	let the flavor be the default if not explicitly set
49
# Possible values: 3.0, 4.0
49
# Possible values: 3.0, 4.0
50
FIREBIRD_DEFAULT?=	3.0
50
FIREBIRD_DEFAULT?=	3.0
51
# Possible values: gfortran
51
# Possible values: gfortran
52
FORTRAN_DEFAULT?=	gfortran
52
FORTRAN_DEFAULT?=	gfortran
53
# Possible values: 3.2.2, 3.3.1
53
# Possible values: 3.2.2, 3.3.1
54
.  if !defined(WANT_FPC_DEVEL)
54
.  if !defined(WANT_FPC_DEVEL)
55
FPC_DEFAULT?=		3.2.2
55
FPC_DEFAULT?=		3.2.2
56
.  else
56
.  else
57
FPC_DEFAULT?=		3.3.1
57
FPC_DEFAULT?=		3.3.1
58
.  endif
58
.  endif
59
# Possible values: 9, 10, 11, 12, 13, 14, 15
59
# Possible values: 9, 10, 11, 12, 13, 14, 15
60
# (Any other version is completely unsupported and not meant for general use.)
60
# (Any other version is completely unsupported and not meant for general use.)
61
GCC_DEFAULT?=		13
61
GCC_DEFAULT?=		13
62
# Possible values: 10
62
# Possible values: 10
63
GHOSTSCRIPT_DEFAULT?=	10
63
GHOSTSCRIPT_DEFAULT?=	10
64
# Possible values: mesa-libs, mesa-devel
64
# Possible values: mesa-libs, mesa-devel
65
GL_DEFAULT?=		mesa-libs
65
GL_DEFAULT?=		mesa-libs
66
# Possible values: 1.20, 1.21, 1.22, 1.23-devel
66
# Possible values: 1.20, 1.21, 1.22, 1.23-devel
67
GO_DEFAULT?=		1.21
67
GO_DEFAULT?=		1.21
68
# Possible values: 1.8, 2.2, 3.0
68
# Possible values: 1.8, 2.2, 3.0
69
GUILE_DEFAULT?=		2.2
69
GUILE_DEFAULT?=		2.2
70
# Possible versions: 6, 7
70
# Possible versions: 6, 7
71
# Possible flavors:  x11, nox11
71
# Possible flavors:  x11, nox11
72
#                    (defaults to x11 when not specified)
72
#                    (defaults to x11 when not specified)
73
# Format:	     version[-flavor]
73
# Format:	     version[-flavor]
74
# Examples:	     6-nox11, 7
74
# Examples:	     6-nox11, 7
75
IMAGEMAGICK_DEFAULT?=	7
75
IMAGEMAGICK_DEFAULT?=	7
76
# Possible values: 8, 11, 17, 18, 19, 20, 21
76
# Possible values: 8, 11, 17, 18, 19, 20, 21
77
JAVA_DEFAULT?=		8
77
JAVA_DEFAULT?=		8
78
# Possible values: 3.2.0, 3.1.0
78
# Possible values: 3.2.0, 3.1.0
79
.  if !defined(WANT_LAZARUS_DEVEL)
79
.  if !defined(WANT_LAZARUS_DEVEL)
80
LAZARUS_DEFAULT?=	3.2.0
80
LAZARUS_DEFAULT?=	3.2.0
81
.  else
81
.  else
82
LAZARUS_DEFAULT?=	3.3.1
82
LAZARUS_DEFAULT?=	3.3.1
83
.  endif
83
.  endif
84
# Possible values: rust, legacy
84
# Possible values: rust, legacy
85
.  if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
85
.  if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
86
LIBRSVG2_DEFAULT?=	rust
86
LIBRSVG2_DEFAULT?=	rust
87
.  else
87
.  else
88
LIBRSVG2_DEFAULT?=	legacy
88
LIBRSVG2_DEFAULT?=	legacy
89
.  endif
89
.  endif
90
# Possible values: c7
90
# Possible values: c7
91
LINUX_DEFAULT?=		c7
91
LINUX_DEFAULT?=		c7
92
# Possible values: 11, 12, 13, 14, 15, 16, 17, -devel (to be used when non-base compiler is required)
92
# Possible values: 11, 12, 13, 14, 15, 16, 17, -devel (to be used when non-base compiler is required)
93
LLVM_DEFAULT?=		15
93
LLVM_DEFAULT?=		15
94
# Possible values: 5.1, 5.2, 5.3, 5.4
94
# Possible values: 5.1, 5.2, 5.3, 5.4
95
LUA_DEFAULT?=		5.4
95
LUA_DEFAULT?=		5.4
96
# Possible values: luajit, luajit-devel, luajit-openresty
96
# Possible values: luajit, luajit-devel, luajit-openresty
97
.  if ${ARCH:Mpowerpc64*}
97
.  if ${ARCH:Mpowerpc64*}
98
LUAJIT_DEFAULT?=	luajit-openresty
98
LUAJIT_DEFAULT?=	luajit-openresty
99
.  else
99
.  else
100
LUAJIT_DEFAULT?=	luajit-devel
100
LUAJIT_DEFAULT?=	luajit-devel
101
.  endif
101
.  endif
102
# Possible values: 5.10, 5.20, 6.8
102
# Possible values: 5.10, 5.20, 6.8
103
MONO_DEFAULT?=		5.20
103
MONO_DEFAULT?=		5.20
104
# Possible values: 8.0, 8.1, 10.5m, 10.6m, 10.11m
104
# Possible values: 8.0, 8.1, 10.5m, 10.6m, 10.11m
105
MYSQL_DEFAULT?=		8.0
105
MYSQL_DEFAULT?=		8.0
106
# Possible values: ninja, samurai
106
# Possible values: ninja, samurai
107
NINJA_DEFAULT?=		ninja
107
NINJA_DEFAULT?=		ninja
108
# Possible value: 18, 20, 21, current, lts (Note: current = 21 and lts = 20)
108
# Possible value: 18, 20, 21, current, lts (Note: current = 21 and lts = 20)
109
NODEJS_DEFAULT?=	lts
109
NODEJS_DEFAULT?=	lts
110
# Possible value: 25, 26
110
# Possible value: 25, 26
111
OPENLDAP_DEFAULT?=	26
111
OPENLDAP_DEFAULT?=	26
112
# Possible values: 5.34, 5.36, 5.38, devel
112
# Possible values: 5.34, 5.36, 5.38, devel
113
.  if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \
113
.  if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \
114
    defined(PACKAGE_BUILDING))
114
    defined(PACKAGE_BUILDING))
115
PERL5_DEFAULT?=		5.36
115
PERL5_DEFAULT?=		5.36
116
.  elif !defined(PERL5_DEFAULT)
116
.  elif !defined(PERL5_DEFAULT)
117
# There's no need to replace development versions, like "5.23" with "devel"
117
# There's no need to replace development versions, like "5.23" with "devel"
118
# because 1) nobody is supposed to use it outside of poudriere, and 2) it must
118
# because 1) nobody is supposed to use it outside of poudriere, and 2) it must
119
# be set manually in /etc/make.conf in the first place, and we're never getting
119
# be set manually in /etc/make.conf in the first place, and we're never getting
120
# in here.
120
# in here.
121
.    if !defined(_PERL5_FROM_BIN)
121
.    if !defined(_PERL5_FROM_BIN)
122
_PERL5_FROM_BIN!=	${LOCALBASE}/bin/perl -e 'printf "%vd\n", $$^V;'
122
_PERL5_FROM_BIN!=	${LOCALBASE}/bin/perl -e 'printf "%vd\n", $$^V;'
123
.    endif
123
.    endif
124
_EXPORTED_VARS+=	_PERL5_FROM_BIN
124
_EXPORTED_VARS+=	_PERL5_FROM_BIN
125
PERL5_DEFAULT:=		${_PERL5_FROM_BIN:R}
125
PERL5_DEFAULT:=		${_PERL5_FROM_BIN:R}
126
.  endif
126
.  endif
127
# Possible values: 12, 13, 14, 15, 16
127
# Possible values: 12, 13, 14, 15, 16
128
PGSQL_DEFAULT?=		15
128
PGSQL_DEFAULT?=		16
129
# Possible values: 8.1, 8.2, 8.3
129
# Possible values: 8.1, 8.2, 8.3
130
PHP_DEFAULT?=		8.2
130
PHP_DEFAULT?=		8.2
131
# Possible values: rust, legacy
131
# Possible values: rust, legacy
132
.  if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
132
.  if empty(ARCH:Naarch64:Namd64:Narmv7:Ni386:Npowerpc64:Npowerpc64le:Npowerpc:Nriscv64)
133
PYCRYPTOGRAPHY_DEFAULT?=	rust
133
PYCRYPTOGRAPHY_DEFAULT?=	rust
134
.  else
134
.  else
135
PYCRYPTOGRAPHY_DEFAULT?=	legacy
135
PYCRYPTOGRAPHY_DEFAULT?=	legacy
136
.  endif
136
.  endif
137
# Possible values: 3.8, 3.9, 3.10, 3.11
137
# Possible values: 3.8, 3.9, 3.10, 3.11
138
PYTHON_DEFAULT?=	3.9
138
PYTHON_DEFAULT?=	3.9
139
# Possible values: 2.7
139
# Possible values: 2.7
140
PYTHON2_DEFAULT?=	2.7
140
PYTHON2_DEFAULT?=	2.7
141
# Possible values: 3.1, 3.2, 3.3
141
# Possible values: 3.1, 3.2, 3.3
142
RUBY_DEFAULT?=		3.2
142
RUBY_DEFAULT?=		3.2
143
# Possible values: rust, rust-nightly
143
# Possible values: rust, rust-nightly
144
RUST_DEFAULT?=		rust
144
RUST_DEFAULT?=		rust
145
# Possible values: 4.16, 4.19
145
# Possible values: 4.16, 4.19
146
SAMBA_DEFAULT?=		4.16
146
SAMBA_DEFAULT?=		4.16
147
# Possible values: base, openssl, openssl111, openssl31, openssl32, libressl, libressl-devel
147
# Possible values: base, openssl, openssl111, openssl31, openssl32, libressl, libressl-devel
148
.  if !defined(SSL_DEFAULT)
148
.  if !defined(SSL_DEFAULT)
149
#	If no preference was set, check for an installed base version
149
#	If no preference was set, check for an installed base version
150
#	but give an installed port preference over it.
150
#	but give an installed port preference over it.
151
.    if	!defined(SSL_DEFAULT) && \
151
.    if	!defined(SSL_DEFAULT) && \
152
	!exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \
152
	!exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \
153
	exists(${DESTDIR}/usr/include/openssl/opensslv.h)
153
	exists(${DESTDIR}/usr/include/openssl/opensslv.h)
154
SSL_DEFAULT=	base
154
SSL_DEFAULT=	base
155
.    else
155
.    else
156
.      if exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so)
156
.      if exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so)
157
.        if defined(PKG_BIN)
157
.        if defined(PKG_BIN)
158
# find installed port and use it for dependency
158
# find installed port and use it for dependency
159
.          if !defined(OPENSSL_INSTALLED)
159
.          if !defined(OPENSSL_INSTALLED)
160
.            if defined(DESTDIR)
160
.            if defined(DESTDIR)
161
PKGARGS=	-c ${DESTDIR}
161
PKGARGS=	-c ${DESTDIR}
162
.            else
162
.            else
163
PKGARGS=
163
PKGARGS=
164
.            endif
164
.            endif
165
OPENSSL_INSTALLED!=	${PKG_BIN} ${PKGARGS} which -qo ${LOCALBASE}/lib/libcrypto.so || :
165
OPENSSL_INSTALLED!=	${PKG_BIN} ${PKGARGS} which -qo ${LOCALBASE}/lib/libcrypto.so || :
166
.          endif
166
.          endif
167
.          if defined(OPENSSL_INSTALLED) && !empty(OPENSSL_INSTALLED)
167
.          if defined(OPENSSL_INSTALLED) && !empty(OPENSSL_INSTALLED)
168
SSL_DEFAULT:=		${OPENSSL_INSTALLED:T}
168
SSL_DEFAULT:=		${OPENSSL_INSTALLED:T}
169
WARNING+=	"You have ${OPENSSL_INSTALLED} installed but do not have DEFAULT_VERSIONS+=ssl=${SSL_DEFAULT} set in your make.conf"
169
WARNING+=	"You have ${OPENSSL_INSTALLED} installed but do not have DEFAULT_VERSIONS+=ssl=${SSL_DEFAULT} set in your make.conf"
170
.          endif
170
.          endif
171
.        else
171
.        else
172
check-makevars::
172
check-makevars::
173
	@${ECHO_MSG} "You have a ${LOCALBASE}/lib/libcrypto.so file installed, but the framework is unable"
173
	@${ECHO_MSG} "You have a ${LOCALBASE}/lib/libcrypto.so file installed, but the framework is unable"
174
	@${ECHO_MSG} "to determine what port it comes from."
174
	@${ECHO_MSG} "to determine what port it comes from."
175
	@${ECHO_MSG} "Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again."
175
	@${ECHO_MSG} "Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again."
176
	@${FALSE}
176
	@${FALSE}
177
.        endif
177
.        endif
178
.      endif
178
.      endif
179
.    endif
179
.    endif
180
# Make sure we have a default in the end
180
# Make sure we have a default in the end
181
SSL_DEFAULT?=	base
181
SSL_DEFAULT?=	base
182
.  endif
182
.  endif
183
# Possible values: 8.5, 8.6, 8.7
183
# Possible values: 8.5, 8.6, 8.7
184
TCLTK_DEFAULT?=		8.6
184
TCLTK_DEFAULT?=		8.6
185
# Possible values: 6, 7
185
# Possible values: 6, 7
186
VARNISH_DEFAULT?=	6
186
VARNISH_DEFAULT?=	6
187
187
188
.endif
188
.endif

Return to bug 278885