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-share / recipes-connectivity / mobile-broadband-provider-info / mobile-broadband-provider-info.inc
1 DESCRIPTION = "Moblie Broadband Dataprovider Database"
2 HOMEPAGE = "http://www.gnome.org"
3 SECTION = "Applications/Internet"
4 LICENSE = "Creative Commons Public Domain"
5 PV = "20120614"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by mobile-broadband-provider-info
17
18
19 RDEPENDS = ""
20
21 DEPENDS = ""
22
23 do_prep() {
24  cd ${S}
25  chmod -Rf a+rX,u+w,g-w,o-w ${S}
26  #setup -q
27  cp ${S}/packaging/mobile-broadband-provider-info.manifest .
28  
29  
30  
31 }
32 do_patch_append() {
33     bb.build.exec_func('do_prep', d)
34 }
35
36 do_configure() {
37 }
38
39 do_compile() {
40  cd ${S}
41   LANG=C
42   export LANG
43   unset DISPLAY
44   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
45   
46   
47   
48   autotools_do_configure
49   make -j16
50   
51   
52   
53 }
54 EXTRA_OECONF += " --disable-static"
55
56 do_install() {
57  export RPM_BUILD_ROOT=${D}
58  cd ${S}
59  LANG=C
60  export LANG
61  unset DISPLAY
62  rm -rf ${D}
63  mkdir -p ${D}
64  
65  
66    oe_runmake \
67          DESTDIR=${D} \
68          INSTALL_ROOT=${D} \
69          BINDIR=${prefix}/bin \
70    install  
71    rm -f ${D}${infodir}/dir 
72    find ${D} -regex ".*\.la$" | xargs rm -f -- 
73    find ${D} -regex ".*\.a$" | xargs rm -f --
74  
75  
76  
77  
78  
79  
80  
81  
82 }
83
84 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
85 PACKAGES += " mobile-broadband-provider-info "
86
87 mobile-broadband-provider-info_files = ""
88 mobile-broadband-provider-info_files += "${prefix}/share/pkgconfig/mobile-broadband-provider-info.pc"
89 mobile-broadband-provider-info_files += "${prefix}/share/mobile-broadband-provider-info/*"
90 MANIFESTFILES_${PN} = "mobile-broadband-provider-info.manifest"
91
92 FILES_${PN} = "${mobile-broadband-provider-info_files}"
93
94 PKG_mobile-broadband-provider-info= "mobile-broadband-provider-info"
95
96 require mobile-broadband-provider-info-extraconf.inc
97