2013-09-19 08:16:43 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# MAINTAINER: ports@FreeBSD.org
|
|
|
|
#
|
2014-02-25 00:32:09 +00:00
|
|
|
# Provide default versions for ports with multiple versions selectable
|
|
|
|
# by the user.
|
2013-09-19 08:16:43 +00:00
|
|
|
#
|
2014-02-25 00:32:09 +00:00
|
|
|
# Users who want to override these defaults can easily do so by defining
|
|
|
|
# DEFAULT_VERSIONS in their make.conf as follows:
|
2013-09-19 08:16:43 +00:00
|
|
|
#
|
2016-12-31 16:50:58 +00:00
|
|
|
# DEFAULT_VERSIONS= perl5=5.20 ruby=2.0
|
2013-09-19 08:16:43 +00:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_BSD_DEFAULT_VERSIONS_MK)
|
|
|
|
_INCLUDE_BSD_DEFAULT_VERSIONS_MK= yes
|
|
|
|
|
2016-06-23 10:19:02 +00:00
|
|
|
LOCALBASE?= /usr/local
|
|
|
|
|
2018-05-24 18:44:04 +00:00
|
|
|
.for lang in APACHE BDB COROSYNC EMACS FIREBIRD FORTRAN FPC GCC GHOSTSCRIPT \
|
2019-01-16 00:54:39 +00:00
|
|
|
LAZARUS LINUX LLVM LUA MYSQL PERL5 PGSQL PHP PYTHON PYTHON2 PYTHON3 \
|
|
|
|
RUBY RUST SAMBA SSL TCLTK VARNISH
|
2016-10-24 14:53:26 +00:00
|
|
|
.if defined(${lang}_DEFAULT)
|
2018-01-09 07:40:55 +00:00
|
|
|
ERROR+= "The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf"
|
2016-10-24 14:53:26 +00:00
|
|
|
.endif
|
|
|
|
#.undef ${lang}_DEFAULT
|
|
|
|
.endfor
|
|
|
|
|
2013-09-19 08:16:43 +00:00
|
|
|
.for lang in ${DEFAULT_VERSIONS}
|
|
|
|
_l= ${lang:C/=.*//g}
|
2014-05-05 09:45:36 +00:00
|
|
|
${_l:tu}_DEFAULT= ${lang:C/.*=//g}
|
2013-09-19 08:16:43 +00:00
|
|
|
.endfor
|
|
|
|
|
2019-02-05 13:49:18 +00:00
|
|
|
# Possible values: 2.4
|
2014-07-13 15:51:43 +00:00
|
|
|
APACHE_DEFAULT?= 2.4
|
2016-05-02 13:16:52 +00:00
|
|
|
# Possible values: 48, 5, 6
|
|
|
|
BDB_DEFAULT?= 5
|
2018-05-24 18:44:04 +00:00
|
|
|
# Possible values: 2, 3
|
|
|
|
COROSYNC_DEFAULT?= 2
|
2018-02-01 18:03:09 +00:00
|
|
|
# Possible_values: full canna nox devel_full devel_nox
|
|
|
|
#EMACS_DEFAULT?= let the flavor be the default if not explicitly set
|
2016-04-14 13:34:25 +00:00
|
|
|
# Possible values: 2.5
|
2016-03-24 15:47:50 +00:00
|
|
|
FIREBIRD_DEFAULT?= 2.5
|
2017-11-18 13:09:56 +00:00
|
|
|
# Possible values: flang (experimental), gfortran
|
|
|
|
FORTRAN_DEFAULT?= gfortran
|
2018-03-07 17:33:33 +00:00
|
|
|
# Possible values: 3.0.4
|
2018-02-01 07:14:41 +00:00
|
|
|
FPC_DEFAULT?= 3.0.4
|
2019-02-08 15:41:01 +00:00
|
|
|
# Possible values: 6, 7, 8
|
2018-12-11 21:28:31 +00:00
|
|
|
GCC_DEFAULT?= 8
|
2016-04-14 13:34:25 +00:00
|
|
|
# Possible values: 7, 8, 9, agpl
|
2016-03-24 15:47:50 +00:00
|
|
|
GHOSTSCRIPT_DEFAULT?= agpl
|
2018-12-06 20:33:12 +00:00
|
|
|
# Possible values: 1.8.4
|
2018-06-03 08:12:24 +00:00
|
|
|
LAZARUS_DEFAULT?= 1.8.4
|
2017-02-05 21:20:24 +00:00
|
|
|
.if ${ARCH} == amd64
|
2017-01-19 15:44:53 +00:00
|
|
|
# Possible values: c6, c6_64, c7
|
2017-01-12 10:44:45 +00:00
|
|
|
LINUX_DEFAULT?= c6_64
|
|
|
|
.else
|
2017-01-19 15:44:53 +00:00
|
|
|
# Possible values: c6
|
2016-09-05 19:23:42 +00:00
|
|
|
LINUX_DEFAULT?= c6
|
2017-01-12 10:44:45 +00:00
|
|
|
.endif
|
2019-01-16 00:54:39 +00:00
|
|
|
# Possible values: 50, 60, 70 (to be used when non-base compiler is required)
|
|
|
|
LLVM_DEFAULT?= 70
|
2016-04-14 13:34:25 +00:00
|
|
|
# Possible values: 5.1, 5.2, 5.3
|
2014-01-12 21:16:06 +00:00
|
|
|
LUA_DEFAULT?= 5.2
|
2018-06-10 08:09:25 +00:00
|
|
|
# Possible values: 5.5, 5.6, 5.7, 8.0, 5.5m, 10.0m, 10.1m, 10.2m, 10.3m, 5.5p, 5.6p, 5.7p, 5.6w
|
2015-02-04 13:45:13 +00:00
|
|
|
MYSQL_DEFAULT?= 5.6
|
2018-06-02 08:11:44 +00:00
|
|
|
# Possible values: 5.24, 5.26, 5.28, devel
|
2015-10-20 20:26:59 +00:00
|
|
|
.if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \
|
|
|
|
defined(PACKAGE_BUILDING))
|
2018-12-13 20:44:04 +00:00
|
|
|
PERL5_DEFAULT?= 5.28
|
2015-09-14 12:19:48 +00:00
|
|
|
.elif !defined(PERL5_DEFAULT)
|
|
|
|
# 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
|
|
|
|
# be set manually in /etc/make.conf in the first place, and we're never getting
|
|
|
|
# in here.
|
2015-10-19 20:53:15 +00:00
|
|
|
.if !defined(_PERL5_FROM_BIN)
|
2015-09-14 12:19:48 +00:00
|
|
|
_PERL5_FROM_BIN!= perl -e 'printf "%vd\n", $$^V;'
|
2015-10-19 20:53:15 +00:00
|
|
|
.endif
|
|
|
|
_EXPORTED_VARS+= _PERL5_FROM_BIN
|
2015-09-14 12:19:48 +00:00
|
|
|
PERL5_DEFAULT:= ${_PERL5_FROM_BIN:R}
|
|
|
|
.endif
|
2019-01-14 15:50:05 +00:00
|
|
|
# Possible values: 9.4, 9.5, 9.6, 10, 11
|
2017-06-22 14:16:02 +00:00
|
|
|
PGSQL_DEFAULT?= 9.5
|
2019-01-01 13:19:23 +00:00
|
|
|
# Possible values: 7.1, 7.2, 7.3
|
2018-10-22 14:04:03 +00:00
|
|
|
PHP_DEFAULT?= 7.2
|
2018-12-18 09:19:03 +00:00
|
|
|
# Possible values: 2.7, 3.5, 3.6, 3.7
|
2013-10-03 09:25:37 +00:00
|
|
|
PYTHON_DEFAULT?= 2.7
|
2016-04-14 13:34:25 +00:00
|
|
|
# Possible values: 2.7
|
2013-10-03 09:25:37 +00:00
|
|
|
PYTHON2_DEFAULT?= 2.7
|
2018-12-18 09:19:03 +00:00
|
|
|
# Possible values: 3.5, 3.6, 3.7
|
2017-04-28 02:18:54 +00:00
|
|
|
PYTHON3_DEFAULT?= 3.6
|
2018-01-31 16:44:04 +00:00
|
|
|
# Possible values: 2.3, 2.4, 2.5
|
2017-12-24 19:23:49 +00:00
|
|
|
RUBY_DEFAULT?= 2.4
|
2019-01-04 04:00:39 +00:00
|
|
|
# Possible values: rust, rust-nightly
|
|
|
|
RUST_DEFAULT?= rust
|
2018-06-14 17:50:33 +00:00
|
|
|
# Possible values: 4.6, 4.7, 4.8
|
2018-09-01 17:05:47 +00:00
|
|
|
SAMBA_DEFAULT?= 4.7
|
2018-11-10 10:09:48 +00:00
|
|
|
# Possible values: base, openssl, openssl111, libressl, libressl-devel
|
2016-06-16 13:22:58 +00:00
|
|
|
.if !defined(SSL_DEFAULT)
|
|
|
|
# If no preference was set, check for an installed base version
|
|
|
|
# but give an installed port preference over it.
|
2018-01-09 07:40:55 +00:00
|
|
|
. if !defined(SSL_DEFAULT) && \
|
2016-06-16 13:22:58 +00:00
|
|
|
!exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \
|
|
|
|
exists(${DESTDIR}/usr/include/openssl/opensslv.h)
|
|
|
|
SSL_DEFAULT= base
|
|
|
|
. else
|
|
|
|
. if exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so)
|
2016-06-23 10:19:02 +00:00
|
|
|
. if defined(PKG_BIN)
|
2016-06-16 13:22:58 +00:00
|
|
|
# find installed port and use it for dependency
|
2016-06-23 10:19:02 +00:00
|
|
|
. if !defined(OPENSSL_INSTALLED)
|
|
|
|
. if defined(DESTDIR)
|
2016-06-16 13:22:58 +00:00
|
|
|
PKGARGS= -c ${DESTDIR}
|
2016-06-23 10:19:02 +00:00
|
|
|
. else
|
2016-06-16 13:22:58 +00:00
|
|
|
PKGARGS=
|
2016-06-23 10:19:02 +00:00
|
|
|
. endif
|
2016-06-16 13:22:58 +00:00
|
|
|
OPENSSL_INSTALLED!= ${PKG_BIN} ${PKGARGS} which -qo ${LOCALBASE}/lib/libcrypto.so || :
|
2016-06-23 10:19:02 +00:00
|
|
|
. endif
|
|
|
|
. if defined(OPENSSL_INSTALLED) && !empty(OPENSSL_INSTALLED)
|
2016-06-16 13:22:58 +00:00
|
|
|
SSL_DEFAULT:= ${OPENSSL_INSTALLED:T}
|
2016-06-16 22:35:23 +00:00
|
|
|
WARNING+= "You have ${OPENSSL_INSTALLED} installed but do not have DEFAULT_VERSIONS+=ssl=${SSL_DEFAULT} set in your make.conf"
|
2016-06-23 10:19:02 +00:00
|
|
|
. endif
|
|
|
|
. else
|
|
|
|
check-makevars::
|
|
|
|
@${ECHO_MSG} "You have a ${LOCALBASE}/lib/libcrypto.so file installed, but the framework is unable"
|
|
|
|
@${ECHO_MSG} "to determine what port it comes from."
|
|
|
|
@${ECHO_MSG} "Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again."
|
|
|
|
@${FALSE}
|
2016-06-16 13:22:58 +00:00
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
# Make sure we have a default in the end
|
|
|
|
SSL_DEFAULT?= base
|
|
|
|
.endif
|
2017-11-23 12:11:41 +00:00
|
|
|
# Possible values: 8.5, 8.6, 8.7
|
2014-01-12 21:16:06 +00:00
|
|
|
TCLTK_DEFAULT?= 8.6
|
2013-09-19 08:16:43 +00:00
|
|
|
|
2019-01-14 18:09:46 +00:00
|
|
|
# Possible values: 4, 6
|
2016-10-26 14:15:38 +00:00
|
|
|
VARNISH_DEFAULT?= 4
|
|
|
|
|
2013-09-19 08:16:43 +00:00
|
|
|
.endif
|