/[gentoo-x86]/eclass/multilib.eclass
Gentoo

Diff of /eclass/multilib.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.24 Revision 1.25
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.24 2005/03/08 10:40:42 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.25 2005/03/08 11:55:55 eradicator Exp $
4# 4#
5# Author: Jeremy Huddleston <eradicator@gentoo.org> 5# Author: Jeremy Huddleston <eradicator@gentoo.org>
6# 6#
7# This eclass is for all functions pertaining to handling multilib. 7# This eclass is for all functions pertaining to handling multilib.
8# configurations. 8# configurations.
89### END DOCUMENTATION ### 89### END DOCUMENTATION ###
90 90
91# Defaults: 91# Defaults:
92export MULTILIB_ABIS=${MULTILIB_ABIS:-"default"} 92export MULTILIB_ABIS=${MULTILIB_ABIS:-"default"}
93export DEFAULT_ABI=${DEFAULT_ABI:-"default"} 93export DEFAULT_ABI=${DEFAULT_ABI:-"default"}
94# This causes econf to set --libdir=/usr/lib where it didn't before
94export ABI=${ABI:-"default"} 95#export ABI=${ABI:-"default"}
95export CFLAGS_default 96export CFLAGS_default
96export LDFLAGS_default 97export LDFLAGS_default
97export CHOST_default=${CHOST_default:-${CHOST}} 98export CHOST_default=${CHOST_default:-${CHOST}}
98export LIBDIR_default=${CONF_LIBDIR:-"lib"} 99export LIBDIR_default=${CONF_LIBDIR:-"lib"}
99export CDEFINE_default="__unix__" 100export CDEFINE_default="__unix__"
172get_abi_var() { 173get_abi_var() {
173 local flag=${1} 174 local flag=${1}
174 local abi 175 local abi
175 if [ $# -gt 1 ]; then 176 if [ $# -gt 1 ]; then
176 abi=${2} 177 abi=${2}
177 elif [ -n "${ABI}" ]; then
178 abi=${ABI}
179 elif [ -n "${DEFAULT_ABI}" ]; then 178 elif [ -n "${DEFAULT_ABI}" ]; then
180 abi=${DEFAULT_ABI} 179 abi=${DEFAULT_ABI}
181 else 180 else
182 abi="default" 181 abi="default"
183 fi 182 fi
280# if we're in the last (or only) run through src_{unpack,compile,install} 279# if we're in the last (or only) run through src_{unpack,compile,install}
281is_final_abi() { 280is_final_abi() {
282 has_multilib_profile || return 0 281 has_multilib_profile || return 0
283 local ALL_ABIS=$(get_install_abis) 282 local ALL_ABIS=$(get_install_abis)
284 local LAST_ABI=${ALL_ABIS/* /} 283 local LAST_ABI=${ALL_ABIS/* /}
285 [[ "${LAST_ABI}" == "${ABI}" ]] 284 [[ ${LAST_ABI} == ${ABI} ]]
286} 285}
287 286
288# echo the number of ABIs we will be installing for 287# echo the number of ABIs we will be installing for
289number_abis() { 288number_abis() {
290 get_install_abis | wc -w 289 get_install_abis | wc -w
304 if [[ -z "${MULTILIB_ABIS}" ]]; then 303 if [[ -z "${MULTILIB_ABIS}" ]]; then
305 echo ${incdir} 304 echo ${incdir}
306 return 0 305 return 0
307 fi 306 fi
308 307
309 local abi=${ABI:-${DEFAULT_ABI}} 308 local abi=${ABI-${DEFAULT_ABI}}
310 if [[ ${#} -gt 0 ]]; then 309 if [[ ${#} -gt 0 ]]; then
311 abi=${1} 310 abi=${1}
312 shift 311 shift
313 fi 312 fi
314 313

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20