1 DESCRIPTION = "Notification Library"
2 HOMEPAGE = "http://nohomepage.org"
11 inherit manifest autotools-brokensep
16 #PROVIDES by notification-service-dev
17 PROVIDES += "notification-service-dev"
20 #PROVIDES by notification
23 #PROVIDES by notification-dev
24 PROVIDES += "notification-dev"
28 #RDEPENDS of notification-service-dev (${PN}-service-dev)
29 RDEPENDS_${PN}-service-dev += "notification"
31 #RDEPENDS of notification (${PN})
32 RDEPENDS_${PN} += "sqlite3"
33 RDEPENDS_${PN} += "glibc"
34 RDEPENDS_${PN} += "libtzplatform-config"
36 #RDEPENDS of notification-dev (${PN}-dev)
37 RDEPENDS_${PN}-dev += "notification"
41 #DEPENDS of notification
43 DEPENDS += "dbus-glib"
47 DEPENDS += "tizen-platform-config"
56 DEPENDS += "libcom-core"
58 DEPENDS += "libslp-db-util"
62 chmod -Rf a+rX,u+w,g-w,o-w ${S}
64 cp ${S}/packaging/notification.manifest .
69 bb.build.exec_func('do_prep', d)
80 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
84 -DCMAKE_VERBOSE_MAKEFILE=ON \
85 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
86 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
87 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
88 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
89 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
90 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
91 -DCMAKE_SKIP_RPATH:BOOL=ON \
92 -DBUILD_SHARED_LIBS:BOOL=ON \
93 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
102 export RPM_BUILD_ROOT=${D}
115 BINDIR=${prefix}/bin \
117 rm -f ${D}${infodir}/dir
118 find ${D} -regex ".*\.la$" | xargs rm -f --
119 find ${D} -regex ".*\.a$" | xargs rm -f --
121 mkdir -p ${D}/usr/share/license
122 cp -f LICENSE.APLv2.0 ${D}/usr/share/license/notification
127 pkg_postinst_${PN}() {
130 [ "x$D" == "x" ] && ldconfig
131 $D${prefix}/share/notification/notification_DB_init.sh
138 [ "x$D" == "x" ] && ldconfig
141 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
142 PACKAGES += " notification-service-dev "
143 PACKAGES += " notification "
144 PACKAGES += " notification-dev "
146 notification-service-dev_files = ""
147 notification-service-dev_files += "${prefix}/include/notification/service/notification_ipc.h"
148 notification-service-dev_files += "${prefix}/include/notification/service/notification_noti.h"
149 notification-service-dev_files += "${prefix}/include/notification/service/notification_setting_service.h"
150 notification-service-dev_files += "${prefix}/lib/pkgconfig/notification-service.pc"
152 notification_files = ""
153 notification_files += "${prefix}/lib/libnotification.so*"
154 notification_files += "${prefix}/share/notification/notification_DB_init.sh"
155 notification_files += "/usr/share/license/notification"
156 MANIFESTFILES_${PN} = "notification.manifest"
158 notification-dev_files = ""
159 notification-dev_files += "${prefix}/include/notification/notification.h"
160 notification-dev_files += "${prefix}/include/notification/notification_error.h"
161 notification-dev_files += "${prefix}/include/notification/notification_type.h"
162 notification-dev_files += "${prefix}/include/notification/notification_list.h"
163 notification-dev_files += "${prefix}/include/notification/notification_status.h"
164 notification-dev_files += "${prefix}/include/notification/notification_setting.h"
165 notification-dev_files += "${prefix}/lib/pkgconfig/notification.pc"
167 FILES_${PN}-service-dev = "${notification-service-dev_files}"
168 FILES_${PN} = "${notification_files}"
169 FILES_${PN}-dev = "${notification-dev_files}"
171 PKG_notification-service-dev= "notification-service-dev"
172 PKG_notification= "notification"
173 PKG_notification-dev= "notification-dev"
175 require notification-extraconf.inc