Tizen recipes : Fix tizen common build and get little more closer to current Tizen...
[scm/bb/meta-tizen.git] / meta-tizen-ivi / meta-tizen-common-base / recipes-devtools / meta-common / meta-common.inc
1 DESCRIPTION = "Common Meta Data"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Base/Configuration"
4 LICENSE = "GPL-2.0"
5 PV = "001"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by meta-common
17
18
19 RDEPENDS = ""
20 #RDEPENDS of meta-common (${PN})
21 RDEPENDS_${PN} += "meta-generic"
22
23
24 DEPENDS = ""
25
26 do_prep() {
27  cd ${S}
28  chmod -Rf a+rX,u+w,g-w,o-w ${S}
29  #setup -q
30  cp ${S}/packaging/meta-common.manifest .
31  
32  
33 }
34 do_patch_append() {
35     bb.build.exec_func('do_prep', d)
36 }
37
38 do_configure() {
39 }
40
41 do_compile() {
42  cd ${S}
43  LANG=C
44  export LANG
45  unset DISPLAY
46  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
47  
48  oe_runmake
49  
50  
51  
52 }
53
54 do_install() {
55  export RPM_BUILD_ROOT=${D}
56  cd ${S}
57  LANG=C
58  export LANG
59  unset DISPLAY
60  rm -rf ${D}
61  mkdir -p ${D}
62  
63  
64    oe_runmake \
65          DESTDIR=${D} \
66          INSTALL_ROOT=${D} \
67          BINDIR=${prefix}/bin \
68    install  
69    rm -f ${D}${infodir}/dir 
70    find ${D} -regex ".*\.la$" | xargs rm -f -- 
71    find ${D} -regex ".*\.a$" | xargs rm -f --
72  
73  
74 }
75
76 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
77 PACKAGES += " meta-common "
78
79 meta-common_files = ""
80 meta-common_files += "${prefix}/share/package-groups/common/*.yaml"
81 meta-common_files += "${prefix}/share/image-configurations/common/*.yaml"
82 meta-common_files += "${prefix}/share/image-configurations/common/configs/*.yaml"
83 meta-common_files += "${prefix}/share/image-configurations/common/partitions"
84 meta-common_files += "${prefix}/share/image-configurations/common/scripts"
85 MANIFESTFILES_${PN} = "meta-common.manifest"
86
87 FILES_${PN} = "${meta-common_files}"
88
89 PKG_meta-common= "meta-common"
90
91 require meta-common-extraconf.inc
92