| 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/eutils.eclass,v 1.100 2004/09/12 07:16:45 mr_bones_ Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.101 2004/09/12 17:42:33 lv Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is for general purpose functions that most ebuilds |
7 | # This eclass is for general purpose functions that most ebuilds |
| 8 | # have to implement themselves. |
8 | # have to implement themselves. |
| … | |
… | |
| 61 | CONF_LIBDIR="lib" |
61 | CONF_LIBDIR="lib" |
| 62 | fi |
62 | fi |
| 63 | # and of course, default to lib if CONF_LIBDIR isnt set |
63 | # and of course, default to lib if CONF_LIBDIR isnt set |
| 64 | echo ${CONF_LIBDIR:=lib} |
64 | echo ${CONF_LIBDIR:=lib} |
| 65 | } |
65 | } |
|
|
66 | |
|
|
67 | |
|
|
68 | get_multilibdir() { |
|
|
69 | echo ${CONF_MULTILIBDIR:=lib32} |
|
|
70 | } |
|
|
71 | |
| 66 | |
72 | |
| 67 | # Sometimes you need to override the value returned by get_libdir. A good |
73 | # Sometimes you need to override the value returned by get_libdir. A good |
| 68 | # example of this is xorg-x11, where lib32 isnt a supported configuration, |
74 | # example of this is xorg-x11, where lib32 isnt a supported configuration, |
| 69 | # and where lib64 -must- be used on amd64 (for applications that need lib |
75 | # and where lib64 -must- be used on amd64 (for applications that need lib |
| 70 | # to be 32bit, such as adobe acrobat). Note that this override also bypasses |
76 | # to be 32bit, such as adobe acrobat). Note that this override also bypasses |