2015-05-05 14:26:02 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-01-19 15:14:38 +04:00
|
|
|
|
2015-05-05 14:26:02 +03:00
|
|
|
EAPI="5"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-12-30 13:17:52 +04:00
|
|
|
PATCH_VER="1.4"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2014-01-19 15:14:38 +04:00
|
|
|
inherit eutils flag-o-matic toolchain
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
KEYWORDS="~alpha ~ppc ~sparc ~x86"
|
|
|
|
|
|
|
|
gcc2-flags() {
|
|
|
|
# Are we trying to compile with gcc3 ? CFLAGS and CXXFLAGS needs to be
|
|
|
|
# valid for gcc-2.95.3 ...
|
|
|
|
if [[ $(tc-arch) == "x86" || $(tc-arch) == "amd64" ]] ; then
|
|
|
|
CFLAGS=${CFLAGS//-mtune=/-mcpu=}
|
|
|
|
CXXFLAGS=${CXXFLAGS//-mtune=/-mcpu=}
|
|
|
|
fi
|
|
|
|
|
|
|
|
replace-cpu-flags k6-{2,3} k6
|
|
|
|
replace-cpu-flags athlon{,-{tbird,4,xp,mp}} i686
|
|
|
|
|
|
|
|
replace-cpu-flags pentium-mmx i586
|
|
|
|
replace-cpu-flags pentium{2,3,4} i686
|
|
|
|
|
|
|
|
replace-cpu-flags ev6{7,8} ev6
|
|
|
|
}
|
|
|
|
|
2014-01-19 15:14:38 +04:00
|
|
|
src_prepare() {
|
2012-12-30 13:17:52 +04:00
|
|
|
rm -rf texinfo
|
2012-02-06 16:39:49 +04:00
|
|
|
strip-linguas -u */po
|
|
|
|
gcc2-flags
|
2014-01-19 15:14:38 +04:00
|
|
|
toolchain_src_prepare
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|