summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-08-09 15:48:54 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-08-09 15:48:54 +0000
commit162e24e1f6f02438d13a18c3ffbc4968d08b5fec (patch)
tree11e2531cbc457c108a0c0dbbd223a85829ee15af /eclass
parentapp-admin/lib_users: Bump to python-r1.eclass; add py3.3 support; Clean DESCR... (diff)
downloadgentoo-2-162e24e1f6f02438d13a18c3ffbc4968d08b5fec.tar.gz
gentoo-2-162e24e1f6f02438d13a18c3ffbc4968d08b5fec.tar.bz2
gentoo-2-162e24e1f6f02438d13a18c3ffbc4968d08b5fec.zip
Emulate install -l, by Yuta SATOH
Diffstat (limited to 'eclass')
-rw-r--r--eclass/freebsd.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index 431c3ffd3ae0..9cf8ae8e5ea5 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.30 2013/08/09 13:58:47 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/freebsd.eclass,v 1.31 2013/08/09 15:48:54 aballier Exp $
#
# Diego Pettenò <flameeyes@gentoo.org>
@@ -108,6 +108,13 @@ freebsd_src_compile() {
# Make sure to use FreeBSD definitions while crosscompiling
[[ -z "${BMAKE}" ]] && BMAKE="$(freebsd_get_bmake)"
+ # Starting from FreeBSD 9.2, its install command supports the -l option and
+ # they now use it. Emulate it if we are on a system that does not have it.
+ if [[ ${RV} > 9.1 ]] && ! has_version '>=sys-freebsd/freebsd-ubin-9.2_beta1' ; then
+ export INSTALL_LINK="ln -f"
+ export INSTALL_SYMLINK="ln -fs"
+ fi
+
# Create objdir if MAKEOBJDIRPREFIX is defined, so that we can make out of
# tree builds easily.
if [[ -n "${MAKEOBJDIRPREFIX}" ]] ; then