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

Diff of /eclass/multilib-build.eclass

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

Revision 1.16 Revision 1.17
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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-build.eclass,v 1.16 2013/07/27 17:31:47 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.17 2013/07/30 02:08:54 mattst88 Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: flags and utility functions for building multilib packages 8# @BLURB: flags and utility functions for building multilib packages
33 abi_x86_32:x86 33 abi_x86_32:x86
34 abi_x86_64:amd64 34 abi_x86_64:amd64
35 abi_x86_x32:x32 35 abi_x86_x32:x32
36 abi_x86_32:x86_fbsd 36 abi_x86_32:x86_fbsd
37 abi_x86_64:amd64_fbsd 37 abi_x86_64:amd64_fbsd
38 abi_mips_n32:n32
39 abi_mips_n64:n64
40 abi_mips_o32:o32
38) 41)
39 42
40# @ECLASS-VARIABLE: MULTILIB_USEDEP 43# @ECLASS-VARIABLE: MULTILIB_USEDEP
41# @DESCRIPTION: 44# @DESCRIPTION:
42# The USE-dependency to be used on dependencies (libraries) needing 45# The USE-dependency to be used on dependencies (libraries) needing
284# else /* 64-bit ABI */ 287# else /* 64-bit ABI */
285# error "abi_x86_64 not supported by the package." 288# error "abi_x86_64 not supported by the package."
286# endif 289# endif
287#elif defined(__i386__) /* plain x86 */ 290#elif defined(__i386__) /* plain x86 */
288# error "abi_x86_32 not supported by the package." 291# error "abi_x86_32 not supported by the package."
292#elif defined(__mips__)
293# if(_MIPS_SIM == _ABIN32) /* n32 */
294# error "abi_mips_n32 not supported by the package."
295# elif(_MIPS_SIM == _ABI64) /* n64 */
296# error "abi_mips_n64 not supported by the package."
297# elif(_MIPS_SIM == _ABIO32) /* o32 */
298# error "abi_mips_o32 not supported by the package."
299# endif
289#else 300#else
290# error "No ABI matched, please report a bug to bugs.gentoo.org" 301# error "No ABI matched, please report a bug to bugs.gentoo.org"
291#endif 302#endif
292_EOF_ 303_EOF_
293 fi 304 fi
299 abi_flag=abi_x86_64;; 310 abi_flag=abi_x86_64;;
300 x86|x86_fbsd) 311 x86|x86_fbsd)
301 abi_flag=abi_x86_32;; 312 abi_flag=abi_x86_32;;
302 x32) 313 x32)
303 abi_flag=abi_x86_x32;; 314 abi_flag=abi_x86_x32;;
315 n32)
316 abi_flag=abi_mips_n32;;
317 n64)
318 abi_flag=abi_mips_n64;;
319 o32)
320 abi_flag=abi_mips_o32;;
304 *) 321 *)
305 die "Header wrapping for ${ABI} not supported yet";; 322 die "Header wrapping for ${ABI} not supported yet";;
306 esac 323 esac
307 324
308 # Note: match a space afterwards to avoid collision potential. 325 # Note: match a space afterwards to avoid collision potential.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20