Tizen recipes: avoid -j16
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-core / tizen-platform-wrapper / tizen-platform-wrapper.inc
1 DESCRIPTION = "A toolkit to generate the libtizen-platform-config library"
2 HOMEPAGE = "http://www.tizen.org"
3 SECTION = "Development/Tools"
4 LICENSE = "LGPL-2.0"
5 PV = "2.0"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by tizen-platform-wrapper
17
18
19 RDEPENDS = ""
20 #RDEPENDS of tizen-platform-wrapper (${PN})
21 RDEPENDS_${PN} += "coreutils"
22 RDEPENDS_${PN} += "gperf"
23
24
25 DEPENDS = ""
26
27 do_prep() {
28  cd ${S}
29  chmod -Rf a+rX,u+w,g-w,o-w ${S}
30  #setup -q
31  cp ${S}/packaging/tizen-platform-wrapper.manifest .
32  
33  
34 }
35 do_patch_append() {
36     bb.build.exec_func('do_prep', d)
37 }
38
39 do_configure() {
40 }
41
42 do_compile() {
43  cd ${S}
44   LANG=C
45   export LANG
46   unset DISPLAY
47   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
48   
49   
50   autotools_do_configure
51   oe_runmake ${PARALLEL_MAKE}
52   
53   
54   
55 }
56 EXTRA_OECONF += ""
57
58 do_install() {
59  export RPM_BUILD_ROOT=${D}
60  cd ${S}
61  LANG=C
62  export LANG
63  unset DISPLAY
64  rm -rf ${D}
65  mkdir -p ${D}
66  
67  
68    oe_runmake \
69          DESTDIR=${D} \
70          INSTALL_ROOT=${D} \
71          BINDIR=${prefix}/bin \
72    install  
73    rm -f ${D}${infodir}/dir 
74    find ${D} -regex ".*\.la$" | xargs rm -f -- 
75    find ${D} -regex ".*\.a$" | xargs rm -f --
76  
77  
78 }
79
80 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
81 PACKAGES += " tizen-platform-wrapper "
82
83 tizen-platform-wrapper_files = ""
84 tizen-platform-wrapper_files += "${prefix}/bin/*"
85 tizen-platform-wrapper_files += "${prefix}/share/tizen-platform-wrapper/*"
86 tizen-platform-wrapper_files += "${prefix}/lib/pkgconfig/tizen-platform-wrapper.pc"
87 MANIFESTFILES_${PN} = "tizen-platform-wrapper.manifest"
88
89 FILES_${PN} = "${tizen-platform-wrapper_files}"
90
91 PKG_tizen-platform-wrapper= "tizen-platform-wrapper"
92
93 require tizen-platform-wrapper-extraconf.inc
94