Update recipes generation.
[scm/bb/meta-tizen.git] / recipes-tizen / tizen-platform-wrapper / tizen-platform-wrapper.inc
1 DESCRIPTION = "A toolkit to generate the libtizen-platform-config library"
2 HOMEPAGE = "http://www.tizen.org"
3 SECTION = "Development/Tools"
4 LICENSE = "LGPL-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 tizen-platform-wrapper 
16
17
18 RDEPENDS = ""
19 #RDEPENDS of tizen-platform-wrapper (${PN})
20 RDEPENDS_${PN} += "gperf"
21
22
23 DEPENDS = ""
24
25 do_prep() {
26  cd ${S}
27  chmod -Rf a+rX,u+w,g-w,o-w ${S}
28  #setup -q
29  cp ${S}/packaging/tizen-platform-wrapper.manifest .
30  
31  
32 }
33 do_patch_append() {
34     bb.build.exec_func('do_prep', d)
35 }
36
37 do_configure() {
38 }
39
40 do_compile() {
41  cd ${S}
42  LANG=C
43  export LANG
44  unset DISPLAY
45  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
46  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
47  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
48  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
49  
50  
51    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
52    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
53    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
54    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
55          --target=x86_64-tizen-linux \
56          --program-prefix= \
57          --prefix=${prefix} \
58          --exec-prefix=${prefix} \
59          --bindir=${prefix}/bin \
60          --sbindir=${prefix}/sbin \
61          --sysconfdir=${sysconfdir} \
62          --datadir=${prefix}/share \
63          --includedir=${prefix}/include \
64          --libdir=${prefix}/lib \
65          --libexecdir=${prefix}/libexec \
66          --localstatedir=${localstatedir} \
67          --sharedstatedir=${prefix}/com \
68          --mandir=${mandir} \
69          --infodir=${infodir}
70  oe_runmake -j16
71  
72  
73  
74 }
75
76 do_install() {
77  echo export RPM_BUILD_ROOT=${D}
78  cd ${S}
79  LANG=C
80  export LANG
81  unset DISPLAY
82  rm -rf ${D} 
83  mkdir -p ${D} 
84  
85  
86    oe_runmake \
87          DESTDIR=${D} \
88          INSTALL_ROOT=${D} \
89          BINDIR=${prefix}/bin \
90    install  
91    rm -f ${D}${infodir}/dir 
92    find ${D} -regex ".*\.la$" | xargs rm -f -- 
93    find ${D} -regex ".*\.a$" | xargs rm -f --
94  
95  
96 }
97
98
99 tizen-platform-wrapper_files = ""
100 tizen-platform-wrapper_files += "tizen-platform-wrapper.manifest"
101 tizen-platform-wrapper_files += "${prefix}/bin/*"
102 tizen-platform-wrapper_files += "${prefix}/share/tizen-platform-wrapper/*"
103 tizen-platform-wrapper_files += "${prefix}/lib/pkgconfig/tizen-platform-wrapper.pc"
104
105 FILES_${PN} = "${tizen-platform-wrapper_files}"
106
107 PKG_tizen-platform-wrapper= "tizen-platform-wrapper"
108
109 require tizen-platform-wrapper-extraconf.inc
110