Update recipes generation.
[scm/bb/meta-tizen.git] / recipes-tizen / notification / notification.inc
1 DESCRIPTION = "Notification Library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/API"
4 LICENSE = "Apache-2.0"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 BBCLASSEXTEND += ""
13 PROVIDES = ""
14
15 #PROVIDES by notification 
16
17
18 #PROVIDES by notification-dev 
19
20
21 RDEPENDS = ""
22 #RDEPENDS of notification (${PN})
23 RDEPENDS_${PN} += "sqlite3"
24 RDEPENDS_${PN} += "eglibc"
25
26 #RDEPENDS of notification-dev (${PN}-dev)
27 RDEPENDS_${PN}-dev += "notification"
28
29
30 DEPENDS = ""
31 #DEPENDS of notification 
32 DEPENDS += "aul-1"
33 DEPENDS_append_class-native = " cmake-native"
34 DEPENDS_append_class-target = " cmake-native"
35 DEPENDS += "eina"
36 DEPENDS += "dbus"
37 DEPENDS += "bundle"
38 DEPENDS += "ail"
39 DEPENDS += "dlog"
40 DEPENDS += "ecore"
41 DEPENDS += "sqlite3"
42 DEPENDS += "heynoti"
43 DEPENDS += "com-core"
44 DEPENDS += "libslp-db-util"
45
46 do_prep() {
47  cd ${S}
48  chmod -Rf a+rX,u+w,g-w,o-w ${S}
49  #setup -q
50  cp ${S}/packaging/notification.manifest .
51  
52  
53 }
54 do_patch_append() {
55     bb.build.exec_func('do_prep', d)
56 }
57
58 do_configure() {
59 }
60
61 do_compile() {
62  cd ${S}
63  LANG=C
64  export LANG
65  unset DISPLAY
66  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
67  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
68  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
69  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
70  
71  
72    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
73    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
74    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ; 
75    cmake \
76          -DCMAKE_VERBOSE_MAKEFILE=ON \
77          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
78          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
79          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
80          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
81          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
82          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
83          -DCMAKE_SKIP_RPATH:BOOL=ON \
84          -DBUILD_SHARED_LIBS:BOOL=ON .
85  make -j16
86  
87  
88  
89 }
90
91 do_install() {
92  echo export RPM_BUILD_ROOT=${D}
93  cd ${S}
94  LANG=C
95  export LANG
96  unset DISPLAY
97  rm -rf ${D} 
98  mkdir -p ${D} 
99  
100  
101    oe_runmake \
102          DESTDIR=${D} \
103          INSTALL_ROOT=${D} \
104          BINDIR=${prefix}/bin \
105    install  
106    rm -f ${D}${infodir}/dir 
107    find ${D} -regex ".*\.la$" | xargs rm -f -- 
108    find ${D} -regex ".*\.a$" | xargs rm -f --
109  
110  mkdir -p ${D}/usr/share/license
111  cp -f LICENSE.APLv2.0 ${D}/usr/share/license/notification
112  
113  
114 }
115
116
117 notification_files = ""
118 notification_files += "notification.manifest"
119 notification_files += "${prefix}/lib/libnotification.so*"
120 notification_files += "/usr/share/license/notification"
121
122 notification-dev_files = ""
123 notification-dev_files += "${prefix}/include/notification/*.h"
124 notification-dev_files += "${prefix}/lib/pkgconfig/notification.pc"
125
126 FILES_${PN} = "${notification_files}"
127 FILES_${PN}-dev = "${notification-dev_files}"
128
129 PKG_notification= "notification"
130 PKG_notification-dev= "notification-dev"
131
132 require notification-extraconf.inc
133