first commit
[scm/bb/meta-tizen.git] / recipes-tizen / evas / evas.inc
1 DESCRIPTION = "Multi-platform Canvas Library"
2 HOMEPAGE = "http://www.enlightenment.org/"
3 SECTION = "Graphics & UI Framework/Libraries"
4 LICENSE = "BSD-2-Clause"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by evas 
13 PROVIDES += "evas"
14 RPROVIDES_evas += "evas"
15
16 #PROVIDES by evas-examples 
17 PROVIDES += "evas-examples"
18 RPROVIDES_evas-examples += "evas-examples"
19
20 #PROVIDES by evas-devel 
21 PROVIDES += "evas-devel"
22 RPROVIDES_evas-devel += "evas-devel"
23 RPROVIDES_evas-devel += "evas-dev"
24
25 RDEPENDS = ""
26 #RDEPENDS of evas-examples (${PN}-examples)
27 RDEPENDS_${PN}-examples += "evas-dev"
28
29 #RDEPENDS of evas-devel (${PN}-devel)
30 RDEPENDS_${PN}-devel += "evas"
31
32
33 DEPENDS = ""
34 #DEPENDS of evas 
35 DEPENDS += "pkgconfig(xkbcommon)"
36 DEPENDS += "doxygen"
37 DEPENDS += "pkgconfig(harfbuzz)"
38 DEPENDS += "pkgconfig(fontconfig)"
39 DEPENDS += "pkgconfig(wayland-client)"
40 DEPENDS += "libjpeg-devel"
41 DEPENDS += "pkgconfig(eet)"
42 DEPENDS += "pkgconfig(wayland-cursor)"
43 DEPENDS += "pkgconfig(freetype2)"
44 DEPENDS += "pkgconfig(glesv2)"
45 DEPENDS += "pkgconfig(libpng)"
46 DEPENDS += "pkgconfig(pixman-1)"
47 DEPENDS += "pkgconfig(wayland-egl)"
48 DEPENDS += "pkgconfig(ice)"
49 DEPENDS += "pkgconfig(fribidi)"
50 DEPENDS += "pkgconfig(egl)"
51 DEPENDS += "pkgconfig(libtiff-4)"
52 DEPENDS += "pkgconfig(eina)"
53 DEPENDS += "giflib-devel"
54
55 do_patch() {
56  chmod -Rf a+rX,u+w,g-w,o-w ${S}
57  #setup -q
58  cp ${S}/packaging/evas.manifest .
59  
60  
61 }
62
63 do_configure() {
64 }
65
66 do_compile() {
67  LANG=C
68  export LANG
69  unset DISPLAY
70  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
71  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
72  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
73  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
74  
75  
76    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
77    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
78    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
79    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
80          --target=x86_64-tizen-linux \
81          --program-prefix= \
82          --prefix=/usr \
83          --exec-prefix=/usr \
84          --bindir=/usr/bin \
85          --sbindir=/usr/sbin \
86          --sysconfdir=/etc \
87          --datadir=/usr/share \
88          --includedir=/usr/include \
89          --libdir=/usr/lib \
90          --libexecdir=/usr/libexec \
91          --localstatedir=/var \
92          --sharedstatedir=/usr/com \
93          --mandir=/usr/share/man \
94          --infodir=/usr/share/info --enable-pthreads \
95             --without-x             \
96             --disable-software-xcb  \
97             --disable-software-xlib \
98             --enable-gl-flavor-gles \
99              --enable-gles-variety-sgx \
100              --enable-wayland-egl \
101  
102  make -j16
103  
104  
105  
106 }
107
108 do_install() {
109  echo export RPM_BUILD_ROOT=${D}
110  LANG=C
111  export LANG
112  unset DISPLAY
113  rm -rf ${D} 
114  mkdir -p ${D} 
115  
116  
117    oe_runmake \
118          DESTDIR=${D} \
119          INSTALL_ROOT=${D} \
120          BINDIR=/usr/bin \
121    install  
122    rm -f ${D}/usr/share/info/dir 
123    find ${D} -regex ".*\.la$" | xargs rm -f -- 
124    find ${D} -regex ".*\.a$" | xargs rm -f --
125  
126  
127 }
128
129 PACKAGES = ""
130 PACKAGES += "evas"
131 PACKAGES += "evas-devel"
132 PACKAGES += "evas-examples"
133
134 evas_files = ""
135 evas_files += "evas.manifest"
136 evas_files += "/usr/bin/evas_cserve*"
137 evas_files += "/usr/lib/evas/modules/*/*/*/module.so"
138 evas_files += "/usr/lib/libevas.so.*"
139 evas_files += "/usr/lib/evas/cserve2"
140 evas_files += "/usr/libexec/*"
141 evas_files += "/usr/share/evas/checkme"
142
143 evas-devel_files = ""
144 evas-devel_files += "evas.manifest"
145 evas-devel_files += "/usr/include/evas-1/*.h"
146 evas-devel_files += "/usr/lib/*.so"
147 evas-devel_files += "/usr/lib/pkgconfig/*.pc"
148
149 evas-examples_files = ""
150 evas-examples_files += "evas.manifest"
151 evas-examples_files += "/usr/share/evas/examples/*"
152
153 FILES_${PN} = "${evas_files}"
154 FILES_${PN}-devel = "${evas-devel_files}"
155 FILES_${PN}-examples = "${evas-examples_files}"
156
157 PKG_evas= "evas"
158 PKG_evas-devel= "evas-devel"
159 PKG_evas-examples= "evas-examples"
160
161 require evas-extraconf.inc