Tizen recipes: avoid -j16
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-social / calendar-service / calendar-service.inc
1 DESCRIPTION = "DB library for calendar"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Social & Content/Calendar"
4 LICENSE = "Apache 2.0"
5 PV = "0.1.15"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by calendar-service
17
18
19 #PROVIDES by calendar-service-dev
20 PROVIDES += "calendar-service-dev"
21
22
23 RDEPENDS = ""
24 #RDEPENDS of calendar-service (${PN})
25 RDEPENDS_${PN} += "sqlite3"
26 RDEPENDS_${PN} += "coreutils"
27 RDEPENDS_${PN} += "glibc"
28
29 #RDEPENDS of calendar-service-dev (${PN}-dev)
30 RDEPENDS_${PN}-dev += "calendar-service"
31 RDEPENDS_${PN}-dev += "alarm-manager"
32
33
34 DEPENDS = ""
35 #DEPENDS of calendar-service
36 DEPENDS += "pims-ipc"
37 inherit tizen_cmake
38 DEPENDS += "contacts-service"
39 DEPENDS += "bundle"
40 DEPENDS += "tizen-platform-config"
41 DEPENDS += "app-svc"
42 inherit pkgconfig
43 DEPENDS += "dlog"
44 DEPENDS += "glib-2.0"
45 DEPENDS += "alarm-manager"
46 DEPENDS += "icu"
47 DEPENDS += "sqlite3"
48 DEPENDS += "vconf"
49 DEPENDS += "libslp-db-util"
50 DEPENDS += "capi-base-common"
51
52 do_prep() {
53  cd ${S}
54  chmod -Rf a+rX,u+w,g-w,o-w ${S}
55  #setup -q
56  cp ${S}/packaging/calendar-service.manifest .
57  
58  
59  
60 }
61 do_patch_append() {
62     bb.build.exec_func('do_prep', d)
63 }
64
65 do_configure() {
66 }
67
68 do_compile() {
69  cd ${S}
70  LANG=C
71  export LANG
72  unset DISPLAY
73  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
74  
75  
76    cmake \
77          -DCMAKE_VERBOSE_MAKEFILE=ON \
78          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
79          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
80          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
81          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
82          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
83          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
84          -DCMAKE_SKIP_RPATH:BOOL=ON \
85          -DBUILD_SHARED_LIBS:BOOL=ON \
86          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
87          ${EXTRA_OECMAKE} .
88  
89  
90  make ${PARALLEL_MAKE}
91  
92  
93  
94 }
95
96 do_install() {
97  export RPM_BUILD_ROOT=${D}
98  cd ${S}
99  LANG=C
100  export LANG
101  unset DISPLAY
102  rm -rf ${D}
103  mkdir -p ${D}
104  
105  
106    oe_runmake \
107          DESTDIR=${D} \
108          INSTALL_ROOT=${D} \
109          BINDIR=${prefix}/bin \
110    install  
111    rm -f ${D}${infodir}/dir 
112    find ${D} -regex ".*\.la$" | xargs rm -f -- 
113    find ${D} -regex ".*\.a$" | xargs rm -f --
114  
115  mkdir -p ${D}/etc/rc.d/rc3.d/
116  mkdir -p ${D}/etc/rc.d/rc5.d/
117  ln -s ../init.d/calendar-serviced.sh ${D}/etc/rc.d/rc3.d/S85calendar-serviced
118  ln -s ../init.d/calendar-serviced.sh ${D}/etc/rc.d/rc5.d/S85calendar-serviced
119  
120  mkdir -p ${D}${prefix}/lib/systemd/user/tizen-middleware.target.wants
121  install ${S}/packaging/calendar.service ${D}${prefix}/lib/systemd/user/
122  ln -s ../calendar.service ${D}${prefix}/lib/systemd/user/tizen-middleware.target.wants/
123  
124  
125 }
126
127 pkg_postinst_${PN}() {
128     #!/bin/sh -e
129
130     [ "x$D" == "x" ] && ldconfig
131
132 }
133
134 pkg_postrm_${PN}() {
135     #!/bin/sh -e
136
137     [ "x$D" == "x" ] && ldconfig
138 }
139
140 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
141 PACKAGES += " calendar-service "
142 PACKAGES += " calendar-service-dev "
143
144 calendar-service_files = ""
145 calendar-service_files += "${prefix}/bin/calendar-serviced*"
146 calendar-service_files += "${prefix}/lib/libcalendar-service2.so.*"
147 calendar-service_files += "/etc/rc.d/init.d/calendar-serviced.sh"
148 calendar-service_files += "/etc/rc.d/rc3.d/S85calendar-serviced"
149 calendar-service_files += "/etc/rc.d/rc5.d/S85calendar-serviced"
150 calendar-service_files += "/usr/share/calendar-svc/dft-calendar"
151 calendar-service_files += "${prefix}/lib/systemd/user/calendar.service"
152 calendar-service_files += "${prefix}/lib/systemd/user/tizen-middleware.target.wants/calendar.service"
153 MANIFESTFILES_${PN} = "calendar-service.manifest"
154
155 calendar-service-dev_files = ""
156 calendar-service-dev_files += "${prefix}/include/calendar-service/*.h"
157 calendar-service-dev_files += "${prefix}/include/calendar-service2/*.h"
158 calendar-service-dev_files += "${prefix}/lib/*.so"
159 calendar-service-dev_files += "${prefix}/lib/pkgconfig/calendar.pc"
160 calendar-service-dev_files += "${prefix}/lib/pkgconfig/calendar-service2.pc"
161 MANIFESTFILES_${PN}-dev = "calendar-service.manifest"
162
163 FILES_${PN} = "${calendar-service_files}"
164 FILES_${PN}-dev = "${calendar-service-dev_files}"
165
166 PKG_calendar-service= "calendar-service"
167 PKG_calendar-service-dev= "calendar-service-dev"
168
169 require calendar-service-extraconf.inc
170