1 DESCRIPTION = "Notification Library"
2 HOMEPAGE = "http://nohomepage.org"
12 inherit manifest autotools-brokensep
17 #PROVIDES by notification-service-dev
18 PROVIDES += "notification-service-dev"
21 #PROVIDES by notification
24 #PROVIDES by notification-dev
25 PROVIDES += "notification-dev"
29 #RDEPENDS of notification-service-dev (${PN}-service-dev)
30 RDEPENDS_${PN}-service-dev += "notification"
32 #RDEPENDS of notification (${PN})
33 RDEPENDS_${PN} += "sqlite3"
34 RDEPENDS_${PN} += "glibc"
35 RDEPENDS_${PN} += "libtzplatform-config"
37 #RDEPENDS of notification-dev (${PN}-dev)
38 RDEPENDS_${PN}-dev += "notification"
42 #DEPENDS of notification
44 DEPENDS += "dbus-glib"
48 DEPENDS += "tizen-platform-config"
57 DEPENDS += "libcom-core"
59 DEPENDS += "libslp-db-util"
63 chmod -Rf a+rX,u+w,g-w,o-w ${S}
65 cp ${S}/packaging/notification.manifest .
70 bb.build.exec_func('do_prep', d)
81 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
85 -DCMAKE_VERBOSE_MAKEFILE=ON \
86 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
87 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
88 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
89 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
90 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
91 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
92 -DCMAKE_SKIP_RPATH:BOOL=ON \
93 -DBUILD_SHARED_LIBS:BOOL=ON \
94 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
103 export RPM_BUILD_ROOT=${D}
116 BINDIR=${prefix}/bin \
118 rm -f ${D}${infodir}/dir
119 find ${D} -regex ".*\.la$" | xargs rm -f --
120 find ${D} -regex ".*\.a$" | xargs rm -f --
122 mkdir -p ${D}/usr/share/license
123 cp -f LICENSE.APLv2.0 ${D}/usr/share/license/notification
128 pkg_postinst_${PN}() {
131 [ "x$D" == "x" ] && ldconfig
132 $D${prefix}/share/notification/notification_DB_init.sh
139 [ "x$D" == "x" ] && ldconfig
142 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
143 PACKAGES += " notification-service-dev "
144 PACKAGES += " notification "
145 PACKAGES += " notification-dev "
147 notification-service-dev_files = ""
148 notification-service-dev_files += "${prefix}/include/notification/service/notification_ipc.h"
149 notification-service-dev_files += "${prefix}/include/notification/service/notification_noti.h"
150 notification-service-dev_files += "${prefix}/include/notification/service/notification_setting_service.h"
151 notification-service-dev_files += "${prefix}/lib/pkgconfig/notification-service.pc"
153 notification_files = ""
154 notification_files += "${prefix}/lib/libnotification.so*"
155 notification_files += "${prefix}/share/notification/notification_DB_init.sh"
156 notification_files += "/usr/share/license/notification"
157 MANIFESTFILES_${PN} = "notification.manifest"
159 notification-dev_files = ""
160 notification-dev_files += "${prefix}/include/notification/notification.h"
161 notification-dev_files += "${prefix}/include/notification/notification_error.h"
162 notification-dev_files += "${prefix}/include/notification/notification_type.h"
163 notification-dev_files += "${prefix}/include/notification/notification_list.h"
164 notification-dev_files += "${prefix}/include/notification/notification_status.h"
165 notification-dev_files += "${prefix}/include/notification/notification_setting.h"
166 notification-dev_files += "${prefix}/lib/pkgconfig/notification.pc"
168 FILES_${PN}-service-dev = "${notification-service-dev_files}"
169 FILES_${PN} = "${notification_files}"
170 FILES_${PN}-dev = "${notification-dev_files}"
172 PKG_notification-service-dev= "notification-service-dev"
173 PKG_notification= "notification"
174 PKG_notification-dev= "notification-dev"
176 require notification-extraconf.inc