| 1 |
bapt |
327602 |
# $FreeBSD$ |
| 2 |
|
|
# |
| 3 |
|
|
# MAINTAINER: ports@FreeBSD.org |
| 4 |
|
|
# |
| 5 |
gerald |
345909 |
# Provide default versions for ports with multiple versions selectable |
| 6 |
|
|
# by the user. |
| 7 |
bapt |
327602 |
# |
| 8 |
gerald |
345909 |
# Users who want to override these defaults can easily do so by defining |
| 9 |
|
|
# DEFAULT_VERSIONS in their make.conf as follows: |
| 10 |
bapt |
327602 |
# |
| 11 |
rene |
430142 |
# DEFAULT_VERSIONS= perl5=5.20 ruby=2.0 |
| 12 |
bapt |
327602 |
|
| 13 |
|
|
.if !defined(_INCLUDE_BSD_DEFAULT_VERSIONS_MK) |
| 14 |
|
|
_INCLUDE_BSD_DEFAULT_VERSIONS_MK= yes |
| 15 |
|
|
|
| 16 |
mat |
417358 |
LOCALBASE?= /usr/local |
| 17 |
|
|
|
| 18 |
flo |
470801 |
.for lang in APACHE BDB COROSYNC EMACS FIREBIRD FORTRAN FPC GCC GHOSTSCRIPT \ |
| 19 |
tobik |
490437 |
LAZARUS LINUX LLVM LUA MYSQL PERL5 PGSQL PHP PYTHON PYTHON2 PYTHON3 \ |
| 20 |
|
|
RUBY RUST SAMBA SSL TCLTK VARNISH |
| 21 |
mat |
424571 |
.if defined(${lang}_DEFAULT) |
| 22 |
mat |
458513 |
ERROR+= "The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf" |
| 23 |
mat |
424571 |
.endif |
| 24 |
|
|
#.undef ${lang}_DEFAULT |
| 25 |
|
|
.endfor |
| 26 |
|
|
|
| 27 |
bapt |
327602 |
.for lang in ${DEFAULT_VERSIONS} |
| 28 |
|
|
_l= ${lang:C/=.*//g} |
| 29 |
bapt |
352986 |
${_l:tu}_DEFAULT= ${lang:C/.*=//g} |
| 30 |
bapt |
327602 |
.endfor |
| 31 |
|
|
|
| 32 |
sunpoet |
492225 |
# Possible values: 2.4 |
| 33 |
ohauer |
361689 |
APACHE_DEFAULT?= 2.4 |
| 34 |
mat |
414444 |
# Possible values: 48, 5, 6 |
| 35 |
|
|
BDB_DEFAULT?= 5 |
| 36 |
flo |
470801 |
# Possible values: 2, 3 |
| 37 |
|
|
COROSYNC_DEFAULT?= 2 |
| 38 |
jrm |
460621 |
# Possible_values: full canna nox devel_full devel_nox |
| 39 |
|
|
#EMACS_DEFAULT?= let the flavor be the default if not explicitly set |
| 40 |
mat |
413261 |
# Possible values: 2.5 |
| 41 |
tijl |
411798 |
FIREBIRD_DEFAULT?= 2.5 |
| 42 |
tijl |
454428 |
# Possible values: flang (experimental), gfortran |
| 43 |
|
|
FORTRAN_DEFAULT?= gfortran |
| 44 |
acm |
463816 |
# Possible values: 3.0.4 |
| 45 |
acm |
460558 |
FPC_DEFAULT?= 3.0.4 |
| 46 |
gerald |
492439 |
# Possible values: 6, 7, 8 |
| 47 |
gerald |
487260 |
GCC_DEFAULT?= 8 |
| 48 |
mat |
413261 |
# Possible values: 7, 8, 9, agpl |
| 49 |
tijl |
411798 |
GHOSTSCRIPT_DEFAULT?= agpl |
| 50 |
acm |
494880 |
# Possible values: 2.0.0 |
| 51 |
|
|
LAZARUS_DEFAULT?= 2.0.0 |
| 52 |
tijl |
433456 |
.if ${ARCH} == amd64 |
| 53 |
tijl |
431882 |
# Possible values: c6, c6_64, c7 |
| 54 |
tijl |
431245 |
LINUX_DEFAULT?= c6_64 |
| 55 |
|
|
.else |
| 56 |
tijl |
431882 |
# Possible values: c6 |
| 57 |
tijl |
421387 |
LINUX_DEFAULT?= c6 |
| 58 |
tijl |
431245 |
.endif |
| 59 |
tobik |
490437 |
# Possible values: 50, 60, 70 (to be used when non-base compiler is required) |
| 60 |
jbeich |
496337 |
LLVM_DEFAULT?= 80 |
| 61 |
mat |
413261 |
# Possible values: 5.1, 5.2, 5.3 |
| 62 |
crees |
339550 |
LUA_DEFAULT?= 5.2 |
| 63 |
brnrd |
472118 |
# 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 |
| 64 |
ale |
378400 |
MYSQL_DEFAULT?= 5.6 |
| 65 |
rene |
471348 |
# Possible values: 5.24, 5.26, 5.28, devel |
| 66 |
bdrewery |
399879 |
.if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \ |
| 67 |
|
|
defined(PACKAGE_BUILDING)) |
| 68 |
mat |
487382 |
PERL5_DEFAULT?= 5.28 |
| 69 |
mat |
396892 |
.elif !defined(PERL5_DEFAULT) |
| 70 |
|
|
# There's no need to replace development versions, like "5.23" with "devel" |
| 71 |
|
|
# because 1) nobody is supposed to use it outside of poudriere, and 2) it must |
| 72 |
|
|
# be set manually in /etc/make.conf in the first place, and we're never getting |
| 73 |
|
|
# in here. |
| 74 |
bdrewery |
399791 |
.if !defined(_PERL5_FROM_BIN) |
| 75 |
mat |
396892 |
_PERL5_FROM_BIN!= perl -e 'printf "%vd\n", $$^V;' |
| 76 |
bdrewery |
399791 |
.endif |
| 77 |
|
|
_EXPORTED_VARS+= _PERL5_FROM_BIN |
| 78 |
mat |
396892 |
PERL5_DEFAULT:= ${_PERL5_FROM_BIN:R} |
| 79 |
|
|
.endif |
| 80 |
sunpoet |
490297 |
# Possible values: 9.4, 9.5, 9.6, 10, 11 |
| 81 |
tz |
444116 |
PGSQL_DEFAULT?= 9.5 |
| 82 |
rene |
488884 |
# Possible values: 7.1, 7.2, 7.3 |
| 83 |
joneum |
482746 |
PHP_DEFAULT?= 7.2 |
| 84 |
rene |
487739 |
# Possible values: 2.7, 3.5, 3.6, 3.7 |
| 85 |
mva |
329164 |
PYTHON_DEFAULT?= 2.7 |
| 86 |
mat |
413261 |
# Possible values: 2.7 |
| 87 |
mva |
329164 |
PYTHON2_DEFAULT?= 2.7 |
| 88 |
rene |
487739 |
# Possible values: 3.5, 3.6, 3.7 |
| 89 |
miwi |
439592 |
PYTHON3_DEFAULT?= 3.6 |
| 90 |
sunpoet |
460514 |
# Possible values: 2.3, 2.4, 2.5 |
| 91 |
swills |
457193 |
RUBY_DEFAULT?= 2.4 |
| 92 |
jbeich |
489241 |
# Possible values: rust, rust-nightly |
| 93 |
|
|
RUST_DEFAULT?= rust |
| 94 |
rene |
472389 |
# Possible values: 4.6, 4.7, 4.8 |
| 95 |
antoine |
478711 |
SAMBA_DEFAULT?= 4.7 |
| 96 |
mat |
484599 |
# Possible values: base, openssl, openssl111, libressl, libressl-devel |
| 97 |
mat |
416965 |
.if !defined(SSL_DEFAULT) |
| 98 |
|
|
# If no preference was set, check for an installed base version |
| 99 |
|
|
# but give an installed port preference over it. |
| 100 |
mat |
458513 |
. if !defined(SSL_DEFAULT) && \ |
| 101 |
mat |
416965 |
!exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \ |
| 102 |
|
|
exists(${DESTDIR}/usr/include/openssl/opensslv.h) |
| 103 |
|
|
SSL_DEFAULT= base |
| 104 |
|
|
. else |
| 105 |
|
|
. if exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) |
| 106 |
mat |
417358 |
. if defined(PKG_BIN) |
| 107 |
mat |
416965 |
# find installed port and use it for dependency |
| 108 |
mat |
417358 |
. if !defined(OPENSSL_INSTALLED) |
| 109 |
|
|
. if defined(DESTDIR) |
| 110 |
mat |
416965 |
PKGARGS= -c ${DESTDIR} |
| 111 |
mat |
417358 |
. else |
| 112 |
mat |
416965 |
PKGARGS= |
| 113 |
mat |
417358 |
. endif |
| 114 |
|
|
OPENSSL_INSTALLED!= ${PKG_BIN} ${PKGARGS} which -qo ${LOCALBASE}/lib/libcrypto.so || : |
| 115 |
mat |
416965 |
. endif |
| 116 |
mat |
417358 |
. if defined(OPENSSL_INSTALLED) && !empty(OPENSSL_INSTALLED) |
| 117 |
mat |
416965 |
SSL_DEFAULT:= ${OPENSSL_INSTALLED:T} |
| 118 |
mat |
416985 |
WARNING+= "You have ${OPENSSL_INSTALLED} installed but do not have DEFAULT_VERSIONS+=ssl=${SSL_DEFAULT} set in your make.conf" |
| 119 |
mat |
417358 |
. endif |
| 120 |
|
|
. else |
| 121 |
|
|
check-makevars:: |
| 122 |
|
|
@${ECHO_MSG} "You have a ${LOCALBASE}/lib/libcrypto.so file installed, but the framework is unable" |
| 123 |
|
|
@${ECHO_MSG} "to determine what port it comes from." |
| 124 |
|
|
@${ECHO_MSG} "Add DEFAULT_VERSIONS+=ssl=<openssl package name> to your /etc/make.conf and try again." |
| 125 |
|
|
@${FALSE} |
| 126 |
mat |
416965 |
. endif |
| 127 |
|
|
. endif |
| 128 |
|
|
. endif |
| 129 |
|
|
# Make sure we have a default in the end |
| 130 |
|
|
SSL_DEFAULT?= base |
| 131 |
|
|
.endif |
| 132 |
gahr |
454756 |
# Possible values: 8.5, 8.6, 8.7 |
| 133 |
crees |
339550 |
TCLTK_DEFAULT?= 8.6 |
| 134 |
bapt |
327602 |
|
| 135 |
feld |
490309 |
# Possible values: 4, 6 |
| 136 |
feld |
424707 |
VARNISH_DEFAULT?= 4 |
| 137 |
|
|
|
| 138 |
bapt |
327602 |
.endif |