Update recipes generation.
[scm/bb/meta-tizen.git] / recipes-tizen / libtapi / libtapi.inc
1 DESCRIPTION = "Telephony client API library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Telephony/Libraries"
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 libtapi3 
16
17
18 #PROVIDES by libtapi3-dev 
19
20
21 RDEPENDS = ""
22 #RDEPENDS of libtapi3-dev (${PN}3-dev)
23 RDEPENDS_${PN}3-dev += "libtapi3"
24
25
26 DEPENDS = ""
27 #DEPENDS of libtapi3 
28 DEPENDS_append_class-native = " cmake-native"
29 DEPENDS_append_class-target = " cmake-native"
30 inherit pythonnative
31 DEPENDS += "security-server"
32 DEPENDS += "dlog"
33 DEPENDS += "glib-2.0"
34 DEPENDS += "python-xml"
35
36 do_prep() {
37  cd ${S}
38  chmod -Rf a+rX,u+w,g-w,o-w ${S}
39  #setup -q
40  cp ${S}/packaging/libtapi.manifest .
41  
42  
43 }
44 do_patch_append() {
45     bb.build.exec_func('do_prep', d)
46 }
47
48 do_configure() {
49 }
50
51 do_compile() {
52  cd ${S}
53  LANG=C
54  export LANG
55  unset DISPLAY
56  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
57  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
58  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
59  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
60  
61  
62    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
63    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
64    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ; 
65    cmake \
66          -DCMAKE_VERBOSE_MAKEFILE=ON \
67          -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
68          -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
69          -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
70          -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
71          -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
72          -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
73          -DCMAKE_SKIP_RPATH:BOOL=ON \
74          -DBUILD_SHARED_LIBS:BOOL=ON . -DTAPI_VERSION=3.0.1
75  
76  make -j16
77  
78  
79  
80 }
81
82 do_install() {
83  echo export RPM_BUILD_ROOT=${D}
84  cd ${S}
85  LANG=C
86  export LANG
87  unset DISPLAY
88  rm -rf ${D} 
89  mkdir -p ${D} 
90  
91  
92    oe_runmake \
93          DESTDIR=${D} \
94          INSTALL_ROOT=${D} \
95          BINDIR=${prefix}/bin \
96    install  
97    rm -f ${D}${infodir}/dir 
98    find ${D} -regex ".*\.la$" | xargs rm -f -- 
99    find ${D} -regex ".*\.a$" | xargs rm -f --
100  
101  
102 }
103
104 PACKAGES += " libtapi3 "
105 PACKAGES += " libtapi3-dev "
106
107 libtapi3_files = ""
108 libtapi3_files += "libtapi.manifest"
109 libtapi3_files += "${prefix}/lib/*.so*"
110 libtapi3_files += "${prefix}/bin/tapitest"
111
112 libtapi3-dev_files = ""
113 libtapi3-dev_files += "libtapi.manifest"
114 libtapi3-dev_files += "${prefix}/include/tapi-3.0/*.h"
115 libtapi3-dev_files += "${prefix}/include/tapi-3.0/common/*.h"
116 libtapi3-dev_files += "${prefix}/include/tapi-3.0/private/*.h"
117 libtapi3-dev_files += "${prefix}/lib/pkgconfig/*.pc"
118 libtapi3-dev_files += "${prefix}/lib/*.so"
119
120 FILES_${PN} = "${libtapi3_files}"
121 FILES_${PN}-dev = "${libtapi3-dev_files}"
122
123 PKG_libtapi3= "libtapi3"
124 PKG_libtapi3-dev= "libtapi3-dev"
125
126 require libtapi-extraconf.inc
127