diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/classes/mozilla.bbclass | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/mozilla.bbclass')
-rw-r--r-- | meta/classes/mozilla.bbclass | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/classes/mozilla.bbclass b/meta/classes/mozilla.bbclass new file mode 100644 index 0000000000..629f2531da --- /dev/null +++ b/meta/classes/mozilla.bbclass | |||
@@ -0,0 +1,53 @@ | |||
1 | SECTION = "x11/utils" | ||
2 | DEPENDS += "gnu-config-native virtual/libintl xt libxi \ | ||
3 | zip-native gtk+ orbit2 libidl-native" | ||
4 | LICENSE = "MPL NPL" | ||
5 | SRC_URI += "file://mozconfig" | ||
6 | |||
7 | inherit gettext | ||
8 | |||
9 | EXTRA_OECONF = "--target=${TARGET_SYS} --host=${BUILD_SYS} \ | ||
10 | --build=${BUILD_SYS} --prefix=${prefix}" | ||
11 | EXTRA_OEMAKE = "'HOST_LIBIDL_LIBS=${HOST_LIBIDL_LIBS}' \ | ||
12 | 'HOST_LIBIDL_CFLAGS=${HOST_LIBIDL_CFLAGS}'" | ||
13 | SELECTED_OPTIMIZATION = "-Os -fsigned-char -fno-strict-aliasing" | ||
14 | |||
15 | export CROSS_COMPILE = "1" | ||
16 | export MOZCONFIG = "${WORKDIR}/mozconfig" | ||
17 | export MOZ_OBJDIR = "${S}" | ||
18 | |||
19 | export CONFIGURE_ARGS = "${EXTRA_OECONF}" | ||
20 | export HOST_LIBIDL_CFLAGS = "`${HOST_LIBIDL_CONFIG} --cflags`" | ||
21 | export HOST_LIBIDL_LIBS = "`${HOST_LIBIDL_CONFIG} --libs`" | ||
22 | export HOST_LIBIDL_CONFIG = "PKG_CONFIG_PATH=${STAGING_BINDIR}/../share/pkgconfig pkg-config libIDL-2.0" | ||
23 | export HOST_CC = "${BUILD_CC}" | ||
24 | export HOST_CXX = "${BUILD_CXX}" | ||
25 | export HOST_CFLAGS = "${BUILD_CFLAGS}" | ||
26 | export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}" | ||
27 | export HOST_LDFLAGS = "${BUILD_LDFLAGS}" | ||
28 | export HOST_RANLIB = "${BUILD_RANLIB}" | ||
29 | export HOST_AR = "${BUILD_AR}" | ||
30 | |||
31 | mozilla_do_configure() { | ||
32 | ( | ||
33 | set -e | ||
34 | for cg in `find ${S} -name config.guess`; do | ||
35 | install -m 0755 \ | ||
36 | ${STAGING_BINDIR}/../share/gnu-config/config.guess \ | ||
37 | ${STAGING_BINDIR}/../share/gnu-config/config.sub \ | ||
38 | `dirname $cg`/ | ||
39 | done | ||
40 | ) | ||
41 | oe_runmake -f client.mk ${MOZ_OBJDIR}/Makefile \ | ||
42 | ${MOZ_OBJDIR}/config.status | ||
43 | } | ||
44 | |||
45 | mozilla_do_compile() { | ||
46 | oe_runmake -f client.mk build_all | ||
47 | } | ||
48 | |||
49 | mozilla_do_install() { | ||
50 | oe_runmake DESTDIR="${D}" destdir="${D}" install | ||
51 | } | ||
52 | |||
53 | EXPORT_FUNCTIONS do_configure do_compile do_install | ||