Update according to the actual Q1 tizen common release
[scm/bb/meta-tizen.git] / meta-tizen-common-share / recipes-efl / edbus / edbus.inc
1 DESCRIPTION = "EFL Wrapper for DBus"
2 HOMEPAGE = "http://www.enlightenment.org/"
3 SECTION = "Graphics & UI Framework/EFL"
4 LICENSE = "BSD-2-Clause"
5 PV = "1.7.9"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by edbus-dev
17 PROVIDES += "edbus-dev"
18
19
20 #PROVIDES by edbus
21
22
23 RDEPENDS = ""
24 #RDEPENDS of edbus-dev (${PN}-dev)
25 RDEPENDS_${PN}-dev += "edbus"
26
27
28 DEPENDS = ""
29 #DEPENDS of edbus
30 DEPENDS += "evas"
31 DEPENDS += "ecore"
32 DEPENDS += "dbus"
33 inherit pkgconfig
34 DEPENDS += "eina"
35
36 do_prep() {
37  cd ${S}
38  chmod -Rf a+rX,u+w,g-w,o-w ${S}
39  #setup -q -n e_dbus-1.7.9
40  cp ${S}/packaging/edbus.manifest .
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   
59   autotools_do_configure
60   oe_runmake
61   
62   
63   
64 }
65 EXTRA_OECONF += " --disable-static"
66
67 do_install() {
68  export RPM_BUILD_ROOT=${D}
69  cd ${S}
70  LANG=C
71  export LANG
72  unset DISPLAY
73  rm -rf ${D}
74  mkdir -p ${D}
75  
76  
77    oe_runmake \
78          DESTDIR=${D} \
79          INSTALL_ROOT=${D} \
80          BINDIR=${prefix}/bin \
81    install  
82    rm -f ${D}${infodir}/dir 
83    find ${D} -regex ".*\.la$" | xargs rm -f -- 
84    find ${D} -regex ".*\.a$" | xargs rm -f --
85  
86  
87 }
88
89 pkg_postinst_${PN}() {
90     #!/bin/sh -e
91
92     [ "x$D" == "x" ] && ldconfig
93 }
94
95 pkg_postrm_${PN}() {
96     #!/bin/sh -e
97
98     [ "x$D" == "x" ] && ldconfig
99 }
100
101 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
102 PACKAGES += " edbus-dev "
103 PACKAGES += " edbus "
104
105 edbus-dev_files = ""
106 edbus-dev_files += "${prefix}/include/e_dbus-1/*.h"
107 edbus-dev_files += "${prefix}/lib/*.so"
108 edbus-dev_files += "${prefix}/lib/pkgconfig/*.pc"
109 edbus-dev_files += "${prefix}/include/e_dbus-1/connman0_7x/E_Connman.h"
110 edbus-dev_files += "${prefix}/bin/e-notify-send"
111 MANIFESTFILES_${PN}-dev = "edbus.manifest"
112
113 edbus_files = ""
114 edbus_files += "${prefix}/bin/e_dbus_*"
115 edbus_files += "${prefix}/bin/e-notify-send"
116 edbus_files += "${prefix}/lib/libe*.so.*"
117 edbus_files += "${prefix}/share/e_dbus/logo.png"
118 MANIFESTFILES_${PN} = "edbus.manifest"
119
120 FILES_${PN}-dev = "${edbus-dev_files}"
121 FILES_${PN} = "${edbus_files}"
122
123 PKG_edbus-dev= "edbus-dev"
124 PKG_edbus= "edbus"
125
126 require edbus-extraconf.inc
127