|
Lines 17-23
Link Here
|
| 17 |
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 -sparc x86" |
17 |
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 -sparc x86" |
| 18 |
SLOT="1.9" |
18 |
SLOT="1.9" |
| 19 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
19 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
| 20 |
IUSE="" |
20 |
IUSE="pgo" |
| 21 |
|
21 |
|
| 22 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
22 |
RDEPEND="java? ( >=virtual/jre-1.4 ) |
| 23 |
>=sys-devel/binutils-2.16.1 |
23 |
>=sys-devel/binutils-2.16.1 |
|
Lines 132-149
Link Here
|
| 132 |
# |
132 |
# |
| 133 |
#################################### |
133 |
#################################### |
| 134 |
|
134 |
|
| 135 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
135 |
# profile guided optimization |
| 136 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
136 |
local pgo="" |
| 137 |
econf || die |
137 |
use pgo && pgo="-j1 profiledbuild" |
| 138 |
|
138 |
|
| 139 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
139 |
append-cxxflags -DGENTOO_NSPLUGINS_DIR=\\\"/usr/$(get_libdir)/nsplugins\\\" |
| 140 |
# to econf, but the quotes cause configure to fail. |
140 |
append-cxxflags -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/$(get_libdir)/nsbrowser/plugins\\\" |
| 141 |
sed -i -e \ |
141 |
|
| 142 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
142 |
# without econf we need these |
| 143 |
"${S}"/config/autoconf.mk \ |
143 |
mozconfig_annotate '' --prefix=/usr |
| 144 |
"${S}"/toolkit/content/buildconfig.html |
144 |
mozconfig_annotate '' --libdir=/usr/$(get_libdir) |
| 145 |
|
145 |
|
| 146 |
emake || die "emake failed" |
146 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
|
|
147 |
emake -f client.mk ${pgo} || die "emake failed" |
| 147 |
} |
148 |
} |
| 148 |
|
149 |
|
| 149 |
src_install() { |
150 |
src_install() { |