6f54e7d79d039a2cb12d8d2473af6f5e2389f447
[scm/bb/meta-tizen.git] / recipes-tizen / eina / eina.inc
1 DESCRIPTION = "Data Type Library"
2 HOMEPAGE = "http://www.enlightenment.org/"
3 SECTION = "Graphics/EFL"
4 LICENSE = "LGPL-2.1+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 PROVIDES = ""
13
14 #PROVIDES by eina 
15
16
17 #PROVIDES by eina-dev 
18
19
20 RDEPENDS = ""
21 #RDEPENDS of eina-dev (${PN}-dev)
22 RDEPENDS_${PN}-dev += "eina"
23
24
25 DEPENDS = ""
26 #DEPENDS of eina 
27 DEPENDS += "doxygen"
28
29 do_prep() {
30  cd ${S}
31  chmod -Rf a+rX,u+w,g-w,o-w ${S}
32  #setup -q
33  cp ${S}/packaging/eina.manifest .
34  
35  
36 }
37 do_patch_append() {
38     bb.build.exec_func('do_prep', d)
39 }
40
41 do_configure() {
42 }
43
44 do_compile() {
45  cd ${S}
46  LANG=C
47  export LANG
48  unset DISPLAY
49  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 -I%_fmoddir}" ; export FFLAGS ; 
52  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
53  
54  
55  
56    CFLAGS="${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    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
60          --target=x86_64-tizen-linux \
61          --program-prefix= \
62          --prefix=${prefix} \
63          --exec-prefix=${prefix} \
64          --bindir=${prefix}/bin \
65          --sbindir=${prefix}/sbin \
66          --sysconfdir=${sysconfdir} \
67          --datadir=${prefix}/share \
68          --includedir=${prefix}/include \
69          --libdir=${prefix}/lib \
70          --libexecdir=${prefix}/libexec \
71          --localstatedir=${localstatedir} \
72          --sharedstatedir=${prefix}/com \
73          --mandir=${mandir} \
74          --infodir=${infodir} --disable-static
75  make -j16
76  
77  
78  
79 }
80
81 do_install() {
82  echo export RPM_BUILD_ROOT=${D}
83  cd ${S}
84  LANG=C
85  export LANG
86  unset DISPLAY
87  rm -rf ${D} 
88  mkdir -p ${D} 
89  
90  
91    oe_runmake \
92          DESTDIR=${D} \
93          INSTALL_ROOT=${D} \
94          BINDIR=${prefix}/bin \
95    install  
96    rm -f ${D}${infodir}/dir 
97    find ${D} -regex ".*\.la$" | xargs rm -f -- 
98    find ${D} -regex ".*\.a$" | xargs rm -f --
99  
100  
101  
102 }
103
104
105 eina_files = ""
106 eina_files += "eina.manifest"
107 eina_files += "${prefix}/lib/libeina.so.*"
108
109 eina-dev_files = ""
110 eina-dev_files += "eina.manifest"
111 eina-dev_files += "${prefix}/include/eina-1/*.h"
112 eina-dev_files += "${prefix}/include/eina-1/eina/*"
113 eina-dev_files += "${prefix}/lib/*.so"
114 eina-dev_files += "${prefix}/lib/pkgconfig/*.pc"
115
116 FILES_${PN} = "${eina_files}"
117 FILES_${PN}-dev = "${eina-dev_files}"
118
119 PKG_eina= "eina"
120 PKG_eina-dev= "eina-dev"
121
122 require eina-extraconf.inc
123