diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-09-14 12:19:48 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-09-14 12:19:48 +0000 |
commit | afae652a2a20e0b0caa335e766dff03094773e1f (patch) | |
tree | b5c267ca5490c7e06b5fe235a5d442d93eac880d /Mk/bsd.default-versions.mk | |
parent | 5a735b9d085e581f8b876095c25db79a9bc533dd (diff) | |
download | ports-afae652a2a20e0b0caa335e766dff03094773e1f.tar.gz ports-afae652a2a20e0b0caa335e766dff03094773e1f.zip |
Make it so that the default Perl is always called perl5.
- Move Perl's man1 files along with its man3 files.
- Move where Perl installs its modules man1 pages.
- Convert the ports installing man1 pages.
- Make different Perl versions installable at the same time.
Though you should note that only the default version can be used to
install Perl modules, and the non default Perl versions cannot use the
modules installed via ports if they contain .so as they are installed
in a version specific directory.
Reviewed by: bapt (the Mk bits)
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3542
Notes
Notes:
svn path=/head/; revision=396892
Diffstat (limited to 'Mk/bsd.default-versions.mk')
-rw-r--r-- | Mk/bsd.default-versions.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk index 3e6c85cbc280..f335a72916de 100644 --- a/Mk/bsd.default-versions.mk +++ b/Mk/bsd.default-versions.mk @@ -23,7 +23,17 @@ FPC_DEFAULT?= 2.6.4 GCC_DEFAULT?= 4.8 LUA_DEFAULT?= 5.2 MYSQL_DEFAULT?= 5.6 +.if defined(PACKAGE_BUILDING) || !exists(${LOCALBASE}/bin/perl) PERL5_DEFAULT?= 5.20 +.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. +_PERL5_FROM_BIN!= perl -e 'printf "%vd\n", $$^V;' +PERL5_DEFAULT:= ${_PERL5_FROM_BIN:R} +.undef _PERL5_FROM_BIN +.endif PGSQL_DEFAULT?= 9.3 PHP_DEFAULT?= 5.6 PYTHON_DEFAULT?= 2.7 |