first commit
[scm/bb/meta-tizen.git] / recipes-tizen / tel-plugin-indicator / tel-plugin-indicator.inc
1 DESCRIPTION = "Telephony Indicator plugin"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
4 LICENSE = "Apache-2.0"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by tel-plugin-indicator 
13 PROVIDES += "tel-plugin-indicator"
14 RPROVIDES_tel-plugin-indicator += "tel-plugin-indicator"
15
16 RDEPENDS = ""
17 #RDEPENDS of tel-plugin-indicator (${PN})
18 RDEPENDS_${PN} += "/sbin/ldconfig"
19
20
21 DEPENDS = ""
22 #DEPENDS of tel-plugin-indicator 
23 DEPENDS += "pkgconfig(glib-2.0)"
24 DEPENDS += "cmake"
25 DEPENDS += "dlog"
26 DEPENDS += "libtcore"
27
28 do_patch() {
29  chmod -Rf a+rX,u+w,g-w,o-w ${S}
30  #setup -q
31  cp ${S}/packaging/tel-plugin-indicator.manifest .
32  
33  
34 }
35
36 do_configure() {
37 }
38
39 do_compile() {
40  LANG=C
41  export LANG
42  unset DISPLAY
43  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
44  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
45  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
46  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
47  
48  
49    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
50    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
51    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ; 
52    cmake \
53          -DCMAKE_VERBOSE_MAKEFILE=ON \
54          -DCMAKE_INSTALL_PREFIX:PATH=/usr \
55          -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
56          -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
57          -DLIB_INSTALL_DIR:PATH=/usr/lib \
58          -DSYSCONF_INSTALL_DIR:PATH=/etc \
59          -DSHARE_INSTALL_PREFIX:PATH=/usr/share \
60          -DCMAKE_SKIP_RPATH:BOOL=ON \
61          -DBUILD_SHARED_LIBS:BOOL=ON \
62          -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake .
63  make -j16
64  
65  
66 }
67
68 do_install() {
69  echo export RPM_BUILD_ROOT=${D}
70  LANG=C
71  export LANG
72  unset DISPLAY
73  rm -rf ${D} 
74  mkdir -p ${D} 
75  
76  
77    oe_runmake \
78          DESTDIR=${D} \
79          INSTALL_ROOT=${D} \
80          BINDIR=/usr/bin \
81    install  
82    rm -f ${D}/usr/share/info/dir 
83    find ${D} -regex ".*\.la$" | xargs rm -f -- 
84    find ${D} -regex ".*\.a$" | xargs rm -f --
85  mkdir -p ${D}/usr/share/license
86  cp LICENSE ${D}/usr/share/license/tel-plugin-indicator
87  
88  
89 }
90
91 PACKAGES = ""
92 PACKAGES += "tel-plugin-indicator"
93
94 tel-plugin-indicator_files = ""
95 tel-plugin-indicator_files += "tel-plugin-indicator.manifest"
96 tel-plugin-indicator_files += "/usr/lib/telephony/plugins/indicator-plugin*"
97 tel-plugin-indicator_files += "/usr/share/license/tel-plugin-indicator"
98
99 FILES_${PN} = "${tel-plugin-indicator_files}"
100
101 PKG_tel-plugin-indicator= "tel-plugin-indicator"
102
103 require tel-plugin-indicator-extraconf.inc