eab724dd80afdd82a50eea82b25ca7ec04000650
[scm/bb/meta-tizen.git] / meta-tizen-ivi / recipes-automotive / CommonAPI / CommonAPI.inc
1 DESCRIPTION = "GENIVI IPC Common API C++ Runtime"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Automotive/GENIVI"
4 LICENSE = "MPL-2.0"
5 PV = "2.1.6"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by CommonAPI
17
18
19 #PROVIDES by libCommonAPI
20 PROVIDES += "libCommonAPI"
21
22
23 #PROVIDES by CommonAPI-dev
24 PROVIDES += "CommonAPI-dev"
25
26
27 RDEPENDS = ""
28 #RDEPENDS of CommonAPI (${PN})
29 RDEPENDS_${PN} += "glibc"
30
31 #RDEPENDS of CommonAPI-dev (${PN}-dev)
32 RDEPENDS_${PN}-dev += "libCommonAPI"
33
34
35 DEPENDS = ""
36
37 do_prep() {
38  cd ${S}
39  chmod -Rf a+rX,u+w,g-w,o-w ${S}
40  #setup -q
41  
42  
43 }
44 do_patch_append() {
45     bb.build.exec_func('do_prep', d)
46 }
47
48 do_configure() {
49 }
50
51 do_compile() {
52  cd ${S}
53   LANG=C
54   export LANG
55   unset DISPLAY
56   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
57   
58   autoreconf -i
59   
60   autotools_do_configure
61   
62   make -j16
63   
64   
65   
66 }
67 EXTRA_OECONF += ""
68
69 do_install() {
70  export RPM_BUILD_ROOT=${D}
71  cd ${S}
72  LANG=C
73  export LANG
74  unset DISPLAY
75  rm -rf ${D}
76  mkdir -p ${D}
77  
78  
79    oe_runmake \
80          DESTDIR=${D} \
81          INSTALL_ROOT=${D} \
82          BINDIR=${prefix}/bin \
83    install  
84    rm -f ${D}${infodir}/dir 
85    find ${D} -regex ".*\.la$" | xargs rm -f -- 
86    find ${D} -regex ".*\.a$" | xargs rm -f --
87  
88  
89 }
90
91 pkg_postinst_libCommonAPI() {
92     #!/bin/sh -e
93
94     [ "x$D" == "x" ] && ldconfig
95 }
96
97 pkg_postrm_libCommonAPI() {
98     #!/bin/sh -e
99
100     [ "x$D" == "x" ] && ldconfig
101 }
102
103 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
104 PACKAGES += " libCommonAPI "
105 PACKAGES += " CommonAPI-dev "
106
107 libCommonAPI_files = ""
108 libCommonAPI_files += "${prefix}/lib/*so.*"
109
110 CommonAPI-dev_files = ""
111 CommonAPI-dev_files += "${prefix}/include/CommonAPI-2.1/CommonAPI/*"
112 CommonAPI-dev_files += "${prefix}/lib/*.so"
113 CommonAPI-dev_files += "${prefix}/lib/pkgconfig/*.pc"
114
115 FILES_lib${PN} = "${libCommonAPI_files}"
116 FILES_${PN}-dev = "${CommonAPI-dev_files}"
117
118 PKG_libCommonAPI= "libCommonAPI"
119 PKG_CommonAPI-dev= "CommonAPI-dev"
120
121 require CommonAPI-extraconf.inc
122