Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Always include bsd.default-versions.mk in bsd.port.mk.
The variable defined in it are now always available after including
bsd.port.pre.mk.

PR:		210666
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6933
  • Loading branch information
mat813 committed Aug 3, 2016
1 parent 67e53fb commit 3ccc862
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 29 deletions.
2 changes: 0 additions & 2 deletions Mk/Uses/bdb.mk
Expand Up @@ -65,8 +65,6 @@ WARNING+= "WITH_BDB_VER is deprecated and will be removed on 2016-08-01. Use DEF
BDB_DEFAULT:=${WITH_BDB_VER}
.endif

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

_BDB_DEFAULT_save:=${BDB_DEFAULT}

_DB_PORTS= 48 5 6
Expand Down
1 change: 0 additions & 1 deletion Mk/Uses/firebird.mk
Expand Up @@ -7,7 +7,6 @@

.if !defined(_INCLUDE_USES_FIREBIRD_MK)
_INCLUDE_USES_FIREBIRD_MK= yes
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if !empty(firebird_ARGS)
FIREBIRD_VER= ${firebird_ARGS}
Expand Down
1 change: 0 additions & 1 deletion Mk/Uses/fortran.mk
Expand Up @@ -16,7 +16,6 @@ fortran_ARGS= gcc
.endif

.if ${fortran_ARGS} == gcc
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
_GCC_VER= ${GCC_DEFAULT:S/.//}
.if ${GCC_DEFAULT} == ${LANG_GCC_IS}
BUILD_DEPENDS+= gfortran${_GCC_VER}:lang/gcc
Expand Down
3 changes: 0 additions & 3 deletions Mk/Uses/ghostscript.mk
Expand Up @@ -38,9 +38,6 @@ _GS_ARGS= ${ghostscript_ARGS}
IGNORE?= Unknown ghostscript argument ${_GS_ARGS}
.endif

# Determine version number of Ghostscript to use
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if ${GHOSTSCRIPT_DEFAULT:N[789]:Nagpl}
IGNORE?= Invalid GHOSTSCRIPT_DEFAULT value: ${GHOSTSCRIPT_DEFAULT}, please select one of ${_GS_VERSION}
.endif
Expand Down
1 change: 0 additions & 1 deletion Mk/Uses/lua.mk
Expand Up @@ -14,7 +14,6 @@ _INCLUDE_USES_LUA_MK= yes
# Mk/bsd.default-versions.mk in sync.
_LUA_VALID_VERSIONS= 53 52 51

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
_LUA_DEFAULT_VERSION= ${LUA_DEFAULT:S/.//}
.if ! ${_LUA_VALID_VERSIONS:M${_LUA_DEFAULT_VERSION}}
IGNORE= Invalid lua version ${LUA_DEFAULT}
Expand Down
2 changes: 0 additions & 2 deletions Mk/Uses/mysql.mk
Expand Up @@ -26,8 +26,6 @@
.if !defined(_INCLUDE_USES_MYSQL_MK)
_INCLUDE_USES_MYSQL_MK= yes

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if !empty(mysql_ARGS)
.undef _WANT_MYSQL_VER
.undef _WANT_MYSQL_SERVER
Expand Down
1 change: 0 additions & 1 deletion Mk/Uses/perl5.mk
Expand Up @@ -51,7 +51,6 @@ THIS_IS_OLD_PERL= yes
# end of remove
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
.if ${PERL5_DEFAULT} == 5.18
.include "${PORTSDIR}/lang/perl5.18/version.mk"
.elif ${PERL5_DEFAULT} == 5.20
Expand Down
2 changes: 0 additions & 2 deletions Mk/Uses/pgsql.mk
Expand Up @@ -43,8 +43,6 @@ PGSQL_LIBVER= 5
PGSQL$v_LIBVER?= ${PGSQL_LIBVER}
.endfor

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.for v in ${PGSQL_DEFAULT}
. if ! ${VALID_PGSQL_VER:M$v}
IGNORE= Invalid PGSQL default version ${PGSQL_DEFAULT}; valid versions are ${VALID_PGSQL_VER}
Expand Down
2 changes: 0 additions & 2 deletions Mk/Uses/php.mk
Expand Up @@ -38,8 +38,6 @@ PHP_Include_MAINTAINER= ale@FreeBSD.org

_INCLUDE_USES_PHP_MK= yes

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

. if defined(DEFAULT_PHP_VER)
WARNING+= "DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=${DEFAULT_PHP_VER} instead"
. endif
Expand Down
3 changes: 0 additions & 3 deletions Mk/Uses/python.mk
Expand Up @@ -260,9 +260,6 @@ _PYTHON_RUN_DEP= yes
_PYTHON_TEST_DEP= yes
.endif

# Determine version number of Python to use
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if defined(PYTHON_DEFAULT_VERSION)
WARNING+= "PYTHON_DEFAULT_VERSION is defined, consider using DEFAULT_VERSIONS=python=${PYTHON_DEFAULT_VERSION:S/^python//} instead"
.endif
Expand Down
2 changes: 0 additions & 2 deletions Mk/Uses/ssl.mk
Expand Up @@ -32,8 +32,6 @@ _INCLUDE_USES_SSL_MK= yes
IGNORE= "USES=ssl does not take any argument."
.endif

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if ${SSL_DEFAULT} == base
OPENSSLBASE= /usr
OPENSSLDIR?= /etc/ssl
Expand Down
1 change: 0 additions & 1 deletion Mk/Uses/tcl.mk
Expand Up @@ -78,7 +78,6 @@ _TCLTK_VALID_VERSIONS= 84 85 86
# Bring in the default and check that the specified version is in the list of
# valid versions.
#
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
_TCLTK_DEFAULT_VERSION= ${TCLTK_DEFAULT:S/.//}
.if ! ${_TCLTK_VALID_VERSIONS:M${_TCLTK_DEFAULT_VERSION}}
IGNORE= Invalid tcltk version ${TCLTK_DEFAULT}
Expand Down
2 changes: 0 additions & 2 deletions Mk/bsd.apache.mk
Expand Up @@ -85,8 +85,6 @@

Apache_Pre_Include= bsd.apache.mk

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if defined(DEFAULT_APACHE_VER)
WARNING+= "DEFAULT_APACHE_VER is defined, consider using DEFAULT_VERSIONS+=apache=${DEFAULT_APACHE_VER} instead"
.endif
Expand Down
2 changes: 0 additions & 2 deletions Mk/bsd.fpc.mk
Expand Up @@ -30,8 +30,6 @@

_FPCMKINCLUDED= yes

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if defined(DEFAULT_FPC_VER)
WARNING+= "DEFAULT_FPC_VER is defined, consider using DEFAULT_VERSIONS=fpc=${DEFAULT_FPC_VER} instead"
.endif
Expand Down
2 changes: 0 additions & 2 deletions Mk/bsd.gcc.mk
Expand Up @@ -31,8 +31,6 @@

GCC_Include_MAINTAINER= gerald@FreeBSD.org

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

# All GCC versions supported by the ports framework. Keep them in
# ascending order and in sync with the table below.
# When adding a version, please keep the comment in
Expand Down
2 changes: 2 additions & 0 deletions Mk/bsd.port.mk
Expand Up @@ -1275,6 +1275,8 @@ WITH_DEBUG= yes

_PREMKINCLUDED= yes

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if defined(PORTVERSION)
.if ${PORTVERSION:M*[-_,]*}x != x
IGNORE= PORTVERSION ${PORTVERSION} may not contain '-' '_' or ','
Expand Down
2 changes: 0 additions & 2 deletions Mk/bsd.ruby.mk
Expand Up @@ -128,8 +128,6 @@ Ruby_Include_MAINTAINER= ruby@FreeBSD.org
# RUBY_ELISPDIR - Installation path for emacs lisp files.
#

.include "${PORTSDIR}/Mk/bsd.default-versions.mk"

.if defined(RUBY_DEFAULT_VER)
WARNING+= "RUBY_DEFAULT_VER is defined, consider using DEFAULT_VERSIONS=ruby=${RUBY_DEFAULT_VER} instead"
.endif
Expand Down

0 comments on commit 3ccc862

Please sign in to comment.