7 SRC_URI = "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/${MOZPV}-candidates/build2/source/firefox-${MOZPV}-source.tar.bz2 \
9 file://jsautocfg-dontoverwrite.patch;patch=1 \
10 file://random_to_urandom.diff;patch=1 \
13 S = "${WORKDIR}/mozilla-central"
15 DEFAULT_PREFERENCE = "-1"
20 FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
22 do_configure_prepend() {
23 sed -i -e s:'head -1':'head -n1':g client.mk
24 oe_runmake -f client.mk CONFIGURE_ARGS="${EXTRA_OECONF}" configure
27 do_compile_prepend() {
28 cp ${WORKDIR}/jsautocfg.h ${S}/js/src/
29 sed -i -e "s|CPU_ARCH =|CPU_ARCH = ${TARGET_ARCH}|" \
30 -e s:'$(OS_TEST)':${TARGET_ARCH}:g \
31 ${S}/security/coreconf/Linux.mk
35 install -d ${STAGING_INCDIR}/firefox-${MOZPV}
38 headers=`find . -name "*.h"`
41 install -D -m 0644 $f ${STAGING_INCDIR}/firefox-${MOZPV}/
43 # removes 2 lines that call absent headers
44 sed -e '178,179d' ${STAGING_INCDIR}/firefox-${MOZPV}/nsIServiceManager.h