1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
DESCRIPTION = "Evas is the Enlightenment canvas API"
LICENSE = "MIT BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b9b25b03d63aa496552658c7e78b11a1"
# can also depend on valgrind, libsdl-x11, directfb
DEPENDS = "librsvg eina eet freetype jpeg libpng virtual/libx11 libxext libxrender fontconfig libfribidi giflib"
DEPENDS_virtclass-native = "freetype-native libxext-native libpng-native jpeg-native eet-native eina-native libfribidi-native"
inherit efl
BBCLASSEXTEND = "native"
INC_PR = "r0"
FILESPATHPKG =. "${BPN}-${PV}:${BPN}:"
python populate_packages_prepend () {
for plugin_type in "engines loaders savers".split():
bb.note( "splitting packages for evas %s..." % plugin_type )
basedir = bb.data.expand( '${libdir}/evas/modules/%s' % plugin_type, d )
do_split_packages(d, basedir, '^(.*)',
output_pattern = 'evas-' + plugin_type[:-1] + "-%s",
description = 'Evas module %s',
allow_dirs=True, recursive=False, extra_depends="" )
plugin_type = "cserve2"
bb.note( "splitting packages for evas %s..." % plugin_type )
basedir = bb.data.expand( '${libdir}/evas/%s/loaders' % plugin_type, d )
do_split_packages(d, basedir, '^(.*)',
output_pattern = 'evas-' + plugin_type + "-%s",
description = 'Evas csever2 loader module %s',
allow_dirs=True, recursive=False, extra_depends="" )
}
do_install_append() {
find "${D}" -name .debug -type d -exec rm -rf {} \;
}
FILES_${PN}-dev += "${libdir}/evas/modules/*/*/*/*.a ${libdir}/evas/modules/*/*/*/*.la"
FILES_${PN}-dbg += "${libdir}/evas/modules/*/*/*/.debug/ ${libdir}/evas/cserve2/loaders/*/*/.debug/"
FILES_${PN}-cserve2 += "${libexecdir}/evas_cserve2* ${libexecdir}/dummy_slave"
PACKAGES += "${PN}-cserve2"
PACKAGES_DYNAMIC = "evas-engine-* evas-loader-* evas-saver-* evas-cserve2-*"
# evas-loader-svg is gone as we don't have esvg and probably won't have anytime soon
# http://www.intesis.hr/news/16-esvg-source
# http://blog.gmane.org/gmane.comp.window-managers.enlightenment.user/page=3
RRECOMMENDS_${PN} += "evas-loader-generic evas-generic-loader-svn"
RRECOMMENDS_${PN} = " \
evas-engine-fb \
evas-engine-software-generic \
evas-engine-software-x11 \
evas-engine-software-16 \
evas-engine-software-16-x11 \
evas-engine-xrender-x11 \
\
evas-loader-png \
evas-loader-jpeg \
evas-loader-gif \
evas-loader-svg \
"
# Some upgrade path tweaking
AUTO_LIBNAME_PKGS = ""
EVAS_CPU_TWEAKS = ""
# Disabled for now, see http://thread.gmane.org/gmane.comp.window-managers.enlightenment.devel/25194
EVAS_CPU_TWEAKS_armv7a = "--disable-cpu-neon"
# common options
EVAS_OECONF = " \
--x-includes=${STAGING_INCDIR}/X11 \
--x-libraries=${STAGING_LIBDIR} \
--enable-evas-magic-debug \
--enable-fb \
--disable-directfb \
--disable-sdl \
--enable-buffer=static \
--enable-static-software-generic \
--disable-software-ddraw \
--disable-software-qtopia \
--disable-software-xcb \
--disable-xrender-xcb \
--disable-glitz-x11 \
--enable-image-loader-eet=static \
--disable-image-loader-edb \
--enable-image-loader-png \
--enable-image-loader-jpeg \
--enable-image-loader-tiff \
--enable-image-loader-xpm \
--enable-cpu-c \
--enable-fontconfig \
--enable-font-loader-eet \
--enable-scale-sample \
--enable-scale-smooth \
--enable-convert-yuv \
--enable-small-dither-mask \
--disable-no-dither-mask \
--disable-convert-8-rgb-332 \
--disable-convert-8-rgb-666 \
--disable-convert-8-rgb-232 \
--disable-convert-8-rgb-222 \
--disable-convert-8-rgb-221 \
--disable-convert-8-rgb-121 \
--disable-convert-8-rgb-111 \
--enable-convert-16-rgb-565 \
--disable-convert-16-rgb-555 \
--disable-convert-16-rgb-444 \
--disable-convert-16-rgb-ipq \
--enable-convert-16-rgb-rot-0 \
--enable-convert-16-rgb-rot-90 \
--disable-convert-16-rgb-rot-180 \
--enable-convert-16-rgb-rot-270 \
${EVAS_CPU_TWEAKS} \
"
# either sgx or 6410 atm
GLES ?= "sgx"
# This is a hack to get openGL|ES 2.x support enabled for people that have the SDK headers in staging.
# We put this in the main recipe, since it will just not build the gl stuff when the headers are missing
# If the above sentence confuse you: everything is built and configured as before if you don't have the SDK
EXTRA_OECONF = "${EVAS_OECONF} \
--enable-pthreads \
--enable-async-events \
--enable-async-preload \
--enable-simple-x11 \
--enable-software-x11 \
--enable-xrender-x11 \
--enable-software-16-x11 \
--enable-image-loader-gif \
--enable-image-loader-svg \
--enable-convert-24-rgb-888 \
--enable-convert-24-bgr-888 \
--enable-convert-32-rgb-8888 \
--enable-convert-32-rgbx-8888 \
--enable-convert-32-bgr-8888 \
--enable-convert-32-bgrx-8888 \
--enable-convert-32-rgb-rot-0 \
--enable-convert-32-rgb-rot-90 \
--disable-convert-32-rgb-rot-180 \
--enable-convert-32-rgb-rot-270 \
--enable-gl-x11 \
--enable-gl-xlib \
--enable-gl-flavor-gles \
--enable-gles-variety-${GLES} \
"
EXTRA_OECONF_virtclass-native = "${EVAS_OECONF} \
--disable-software-x11 \
--disable-software-16-x11 \
--disable-gl-x11 \
--disable-gl-xlib \
--disable-xrender-x11 \
--disable-image-loader-gif \
--disable-image-loader-svg \
--disable-convert-24-rgb-888 \
--disable-convert-24-bgr-888 \
--disable-convert-32-rgb-8888 \
--disable-convert-32-rgbx-8888 \
--disable-convert-32-bgr-8888 \
--disable-convert-32-bgrx-8888 \
--disable-convert-32-rgb-rot-0 \
--disable-convert-32-rgb-rot-90 \
--disable-convert-32-rgb-rot-270 \
"
|