diff options
| author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
|---|---|---|
| committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
| commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
| tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/mozilla | |
| parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) | |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/mozilla')
98 files changed, 9839 insertions, 0 deletions
diff --git a/recipes/mozilla/fennec/arm/mozconfig b/recipes/mozilla/fennec/arm/mozconfig new file mode 100644 index 0000000000..926fa86041 --- /dev/null +++ b/recipes/mozilla/fennec/arm/mozconfig @@ -0,0 +1,14 @@ +mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile" +mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir +mk_add_options AUTOCONF=autoconf2.13 + +ac_add_options --disable-javaxpcom + +ac_add_options --enable-system-cairo +ac_add_options --with-system-zlib +ac_add_options --with-system-jpeg + +ac_add_app_options xulrunner --with-arm-kuser +ac_add_app_options xulrunner --enable-application=xulrunner + +ac_add_app_options mobile --enable-application=mobile diff --git a/recipes/mozilla/fennec/jsautocfg-dontoverwrite.patch b/recipes/mozilla/fennec/jsautocfg-dontoverwrite.patch new file mode 100644 index 0000000000..39978cfd11 --- /dev/null +++ b/recipes/mozilla/fennec/jsautocfg-dontoverwrite.patch @@ -0,0 +1,23 @@ +--- mozilla/js/src/Makefile.in.orig 2006-12-12 11:46:02.000000000 +0000 ++++ mozilla/js/src/Makefile.in 2006-12-12 11:46:27.000000000 +0000 +@@ -319,20 +319,8 @@ + + jsopcode.h jsopcode.c: jsopcode.tbl + +-ifeq (,$(CROSS_COMPILE)$(filter-out WINNT,$(OS_ARCH))) + jsautocfg.h: + touch $@ +-else +-ifeq ($(OS_ARCH),WINCE) +-jsautocfg.h: +- touch $@ +-else +-jsautocfg.h: jscpucfg$(HOST_BIN_SUFFIX) +- @rm -f $@ jsautocfg.tmp +- ./jscpucfg > jsautocfg.tmp +- mv jsautocfg.tmp $@ +-endif +-endif + + # jscpucfg is a strange target + # Needs to be built with the host compiler but needs to include diff --git a/recipes/mozilla/fennec/mozconfig b/recipes/mozilla/fennec/mozconfig new file mode 100644 index 0000000000..7696f78a9c --- /dev/null +++ b/recipes/mozilla/fennec/mozconfig @@ -0,0 +1,14 @@ +mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile" +mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir +mk_add_options AUTOCONF=autoconf2.13 + +ac_add_options --disable-javaxpcom + +ac_add_options --enable-system-cairo +ac_add_options --with-system-zlib +ac_add_options --with-system-bz2 +ac_add_options --with-system-jpeg + +ac_add_app_options xulrunner --enable-application=xulrunner + +ac_add_app_options mobile --enable-application=mobile diff --git a/recipes/mozilla/fennec/mozilla-fennec.desktop b/recipes/mozilla/fennec/mozilla-fennec.desktop new file mode 100644 index 0000000000..5c56d1d21d --- /dev/null +++ b/recipes/mozilla/fennec/mozilla-fennec.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +Version=0.7 +Encoding=UTF-8 +Name=Fennec +Comment=Fennec mobile browser +GenericName=Fennec +Exec=/usr/lib/fennec/fennec +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=mozilla-fennec +Categories=Application;Network; +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png; +StartupWMClass=Fennec +StartupNotify=true +X-Osso-Service=Mozilla.Fennec + diff --git a/recipes/mozilla/fennec/mozilla-fennec.png b/recipes/mozilla/fennec/mozilla-fennec.png Binary files differnew file mode 100644 index 0000000000..b940df9b1e --- /dev/null +++ b/recipes/mozilla/fennec/mozilla-fennec.png diff --git a/recipes/mozilla/fennec_hg.bb b/recipes/mozilla/fennec_hg.bb new file mode 100644 index 0000000000..a714c882c7 --- /dev/null +++ b/recipes/mozilla/fennec_hg.bb @@ -0,0 +1,70 @@ +DESCRIPTION = "Mozilla Mobile browser" +DEPENDS += "cairo alsa-lib " + +PV = "0.9+1.0a2" +MOZPV = "1.0a2" +PR = "r2" +PE = "1" + +SRC_URI = "hg://hg.mozilla.org/;module=mozilla-central;rev=df94feb90a4f \ + hg://hg.mozilla.org/;module=mobile-browser;rev=0361cd36d50d \ + file://jsautocfg.h \ + file://jsautocfg-dontoverwrite.patch;patch=1 \ +" + +S = "${WORKDIR}/mozilla-central" + +inherit mozilla +require firefox.inc + +PARALLEL_MAKE = "" +export HOST_LIBIDL_CONFIG = "${STAGING_BINDIR_NATIVE}/libIDL-config-2" +FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2" + +export LIBXUL_DIST="${S}/objdir/xulrunner/dist/" +CFLAGS_append = " -DMOZ_GFX_OPTIMIZE_MOBILE " + +do_configure_prepend() { + if [ -e ${WORKDIR}/mobile-browser ] ; then + mv ${WORKDIR}/mobile-browser ${S}/mobile + fi + sed -i -e 's:head\ -1:head\ -n1:g' client.mk + oe_runmake -f client.mk CONFIGURE_ARGS="${EXTRA_OECONF}" configure +} + +do_compile_prepend() { + cp ${WORKDIR}/jsautocfg.h ${S}/js/src/ + cp ${WORKDIR}/jsautocfg.h ${S}/objdir/xulrunner/js/src/ + sed -i -e "s|CPU_ARCH =|CPU_ARCH = ${TARGET_ARCH}|" \ + -e s:'$(OS_TEST)':${TARGET_ARCH}:g \ + ${S}/security/coreconf/Linux.mk + + sed -i -e /LIBXUL_DIST/d \ + -e /LIBXUL_SDK/d \ + ${S}/objdir/mobile/config/autoconf.mk + + echo "LIBXUL_DIST = ${S}/objdir/xulrunner/dist" >> ${S}/objdir/mobile/config/autoconf.mk + echo "LIBXUL_SDK = ${S}/objdir/xulrunner/dist" >> ${S}/objdir/mobile/config/autoconf.mk +} + + +do_install() { + cd ${S}/objdir/mobile/ + oe_runmake package + install -d ${D}/${libdir} + tar xjf ${S}/objdir/mobile/dist/fennec-${MOZPV}*.tar.bz2 -C ${D}/${libdir} + # remove x86 binary + rm ${D}/${libdir}/fennec/xulrunner/nsinstall + install -d ${D}${datadir}/applications + install -d ${D}${datadir}/pixmaps + install -m 0644 ${WORKDIR}/mozilla-${PN}.desktop ${D}${datadir}/applications/ + install -m 0644 ${WORKDIR}/mozilla-${PN}.png ${D}${datadir}/pixmaps/ +} + +do_stage() { + : +} + + +FILES_${PN} += "${libdir}/fennec" + diff --git a/recipes/mozilla/files/arm/jsautocfg.h b/recipes/mozilla/files/arm/jsautocfg.h new file mode 100644 index 0000000000..e9d37dee91 --- /dev/null +++ b/recipes/mozilla/files/arm/jsautocfg.h @@ -0,0 +1,54 @@ +#ifndef js_cpucfg___ +#define js_cpucfg___ + +/* AUTOMATICALLY GENERATED - DO NOT EDIT, unless you are an OE dev :) */ + +#define IS_LITTLE_ENDIAN 1 +#undef IS_BIG_ENDIAN + +#define JS_BYTES_PER_BYTE 1L +#define JS_BYTES_PER_SHORT 2L +#define JS_BYTES_PER_INT 4L +#define JS_BYTES_PER_INT64 8L +#define JS_BYTES_PER_LONG 4L +#define JS_BYTES_PER_FLOAT 4L +#define JS_BYTES_PER_DOUBLE 8L +#define JS_BYTES_PER_WORD 4L +#define JS_BYTES_PER_DWORD 8L + +#define JS_BITS_PER_BYTE 8L +#define JS_BITS_PER_SHORT 16L +#define JS_BITS_PER_INT 32L +#define JS_BITS_PER_INT64 64L +#define JS_BITS_PER_LONG 32L +#define JS_BITS_PER_FLOAT 32L +#define JS_BITS_PER_DOUBLE 64L +#define JS_BITS_PER_WORD 32L + +#define JS_BITS_PER_BYTE_LOG2 3L +#define JS_BITS_PER_SHORT_LOG2 4L +#define JS_BITS_PER_INT_LOG2 5L +#define JS_BITS_PER_INT64_LOG2 6L +#define JS_BITS_PER_LONG_LOG2 5L +#define JS_BITS_PER_FLOAT_LOG2 5L +#define JS_BITS_PER_DOUBLE_LOG2 6L +#define JS_BITS_PER_WORD_LOG2 5L + +#define JS_ALIGN_OF_SHORT 2L +#define JS_ALIGN_OF_INT 4L +#define JS_ALIGN_OF_LONG 4L +#define JS_ALIGN_OF_INT64 8L +#define JS_ALIGN_OF_FLOAT 4L +#define JS_ALIGN_OF_DOUBLE 8L +#define JS_ALIGN_OF_POINTER 4L +#define JS_ALIGN_OF_WORD 4L + +#define JS_BYTES_PER_WORD_LOG2 2L +#define JS_BYTES_PER_DWORD_LOG2 3L +#define JS_WORDS_PER_DWORD_LOG2 1L + +#define JS_STACK_GROWTH_DIRECTION (-1) + +#define JS_HAVE_LONG_LONG |
