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