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