1 ################################################################################
5 ################################################################################
8 EFL_SOURCE
= efl-
$(EFL_VERSION
).
tar.xz
9 EFL_SITE
= http
://download.enlightenment.org
/rel
/libs
/efl
10 EFL_LICENSE
= BSD-2c
, LGPLv2.1
+, GPLv2
+
14 licenses
/COPYING.BSD \
15 licenses
/COPYING.FTL \
16 licenses
/COPYING.GPL \
17 licenses
/COPYING.LGPL \
18 licenses
/COPYING.SMALL
20 EFL_INSTALL_STAGING
= YES
22 EFL_DEPENDENCIES
= host-pkgconf host-efl host-luajit dbus freetype \
23 jpeg luajit lz4 udev util-linux zlib
26 # --disable-lua-old: build elua for the target.
27 # --disable-poppler: disable poppler image loader.
28 # --disable-sdl: disable sdl2 support.
29 # --disable-spectre: disable spectre image loader.
30 # --disable-xinput22: disable X11 XInput v2.2+ support.
31 # --enable-liblz4: use liblz4 from lz4 package.
32 # --with-doxygen: disable doxygen documentation
34 --with-edje-cc
=$(HOST_DIR
)/usr
/bin
/edje_cc \
35 --with-eet-eet
=$(HOST_DIR
)/usr
/bin
/eet \
36 --with-eldbus_codegen
=$(HOST_DIR
)/usr
/bin
/eldbus-codegen \
37 --with-elementary-codegen
=$(HOST_DIR
)/usr
/bin
/elementary_codegen \
38 --with-elm-prefs-cc
=$(HOST_DIR
)/usr
/bin
/elm_prefs_cc \
39 --with-elua
=$(HOST_DIR
)/usr
/bin
/elua \
40 --with-eolian-gen
=$(HOST_DIR
)/usr
/bin
/eolian_gen \
50 # Disable untested configuration warning.
51 ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
),)
52 EFL_CONF_OPTS
+= --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
55 ifeq ($(BR2_PACKAGE_EFL_EOLIAN_CPP
),y
)
56 EFL_CONF_OPTS
+= --enable-cxx-bindings \
57 --with-eolian-cxx
=$(HOST_DIR
)/usr
/bin
/eolian_cxx
59 EFL_CONF_OPTS
+= --disable-cxx-bindings
62 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
),y
)
63 EFL_DEPENDENCIES
+= util-linux
64 EFL_CONF_OPTS
+= --enable-libmount
66 EFL_CONF_OPTS
+= --disable-libmount
69 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
70 EFL_CONF_OPTS
+= --enable-systemd
71 EFL_DEPENDENCIES
+= systemd
73 EFL_CONF_OPTS
+= --disable-systemd
76 ifeq ($(BR2_PACKAGE_FONTCONFIG
),y
)
77 EFL_CONF_OPTS
+= --enable-fontconfig
78 EFL_DEPENDENCIES
+= fontconfig
80 EFL_CONF_OPTS
+= --disable-fontconfig
83 ifeq ($(BR2_PACKAGE_LIBFRIBIDI
),y
)
84 EFL_CONF_OPTS
+= --enable-fribidi
85 EFL_DEPENDENCIES
+= libfribidi
87 EFL_CONF_OPTS
+= --disable-fribidi
90 ifeq ($(BR2_PACKAGE_GSTREAMER1
)$(BR2_PACKAGE_GST1_PLUGINS_BASE
),yy
)
91 EFL_CONF_OPTS
+= --enable-gstreamer1
92 EFL_DEPENDENCIES
+= gstreamer1 gst1-plugins-base
94 EFL_CONF_OPTS
+= --disable-gstreamer1
97 ifeq ($(BR2_PACKAGE_BULLET
),y
)
98 EFL_CONF_OPTS
+= --enable-physics
99 EFL_DEPENDENCIES
+= bullet
101 EFL_CONF_OPTS
+= --disable-physics
104 ifeq ($(BR2_PACKAGE_LIBSNDFILE
),y
)
105 EFL_CONF_OPTS
+= --enable-audio
106 EFL_DEPENDENCIES
+= libsndfile
108 EFL_CONF_OPTS
+= --disable-audio
111 ifeq ($(BR2_PACKAGE_PULSEAUDIO
),y
)
112 EFL_CONF_OPTS
+= --enable-pulseaudio
113 EFL_DEPENDENCIES
+= pulseaudio
115 EFL_CONF_OPTS
+= --disable-pulseaudio
118 ifeq ($(BR2_PACKAGE_HARFBUZZ
),y
)
119 EFL_DEPENDENCIES
+= harfbuzz
120 EFL_CONF_OPTS
+= --enable-harfbuzz
122 EFL_CONF_OPTS
+= --disable-harfbuzz
125 ifeq ($(BR2_PACKAGE_TSLIB
),y
)
126 EFL_DEPENDENCIES
+= tslib
127 EFL_CONF_OPTS
+= --enable-tslib
129 EFL_CONF_OPTS
+= --disable-tslib
132 ifeq ($(BR2_PACKAGE_LIBGLIB2
),y
)
133 EFL_DEPENDENCIES
+= libglib2
134 EFL_CONF_OPTS
+= --with-glib
=yes
136 EFL_CONF_OPTS
+= --with-glib
=no
139 # Prefer openssl (the default) over gnutls.
140 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
141 EFL_DEPENDENCIES
+= openssl
142 EFL_CONF_OPTS
+= --with-crypto
=openssl
143 else ifeq ($(BR2_PACKAGE_GNUTLS
)$(BR2_PACKAGE_LIBGCRYPT
),yy
)
144 EFL_DEPENDENCIES
+= gnutls libgcrypt
145 EFL_CONF_OPTS
+= --with-crypto
=gnutls \
146 --with-libgcrypt-prefix
=$(STAGING_DIR
)/usr
148 EFL_CONF_OPTS
+= --with-crypto
=none
149 endif # BR2_PACKAGE_OPENSSL
151 ifeq ($(BR2_PACKAGE_EFL_ELPUT
),y
)
152 EFL_CONF_OPTS
+= --enable-elput
153 EFL_DEPENDENCIES
+= libinput
155 EFL_CONF_OPTS
+= --disable-elput
158 ifeq ($(BR2_PACKAGE_EFL_FB
),y
)
159 EFL_CONF_OPTS
+= --enable-fb
161 EFL_CONF_OPTS
+= --disable-fb
164 ifeq ($(BR2_PACKAGE_EFL_X_XLIB
),y
)
167 --with-x
=$(STAGING_DIR
) \
168 --x-includes
=$(STAGING_DIR
)/usr
/include \
169 --x-libraries
=$(STAGING_DIR
)/usr
/lib
171 EFL_DEPENDENCIES
+= \
183 EFL_CONF_OPTS
+= --with-x11
=none
186 ifeq ($(BR2_PACKAGE_EFL_OPENGL
),y
)
187 EFL_CONF_OPTS
+= --with-opengl
=full
188 EFL_DEPENDENCIES
+= libgl
189 # OpenGL ES requires EGL
190 else ifeq ($(BR2_PACKAGE_EFL_OPENGLES
),y
)
191 EFL_CONF_OPTS
+= --with-opengl
=es
--enable-egl
192 EFL_DEPENDENCIES
+= libegl libgles
193 else ifeq ($(BR2_PACKAGE_EFL_OPENGL_NONE
),y
)
194 EFL_CONF_OPTS
+= --with-opengl
=none
197 ifeq ($(BR2_PACKAGE_EFL_DRM
),y
)
198 EFL_CONF_OPTS
+= --enable-drm
199 EFL_DEPENDENCIES
+= libdrm libegl mesa3d
201 EFL_CONF_OPTS
+= --disable-drm
204 # The EFL Wayland support requires Evas GLES DRM engine support
205 # which depends on wayland-client to build.
206 # So enable gl_drm only when wayland support is selected.
207 ifeq ($(BR2_PACKAGE_EFL_WAYLAND
),y
)
208 EFL_DEPENDENCIES
+= wayland
209 EFL_CONF_OPTS
+= --enable-wayland
--enable-gl-drm
211 EFL_CONF_OPTS
+= --disable-wayland
--disable-gl-drm
214 EFL_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_LIBXKBCOMMON
),libxkbcommon
)
216 # Loaders that need external dependencies needs to be --enable-XXX=yes
217 # otherwise the default is '=static'.
218 # All other loaders are statically built-in
219 ifeq ($(BR2_PACKAGE_EFL_PNG
),y
)
220 EFL_CONF_OPTS
+= --enable-image-loader-png
=yes
221 EFL_DEPENDENCIES
+= libpng
223 EFL_CONF_OPTS
+= --disable-image-loader-png
226 ifeq ($(BR2_PACKAGE_EFL_JPEG
),y
)
227 EFL_CONF_OPTS
+= --enable-image-loader-jpeg
=yes
228 # efl already depends on jpeg.
230 EFL_CONF_OPTS
+= --disable-image-loader-jpeg
233 ifeq ($(BR2_PACKAGE_EFL_GIF
),y
)
234 EFL_CONF_OPTS
+= --enable-image-loader-gif
=yes
235 EFL_DEPENDENCIES
+= giflib
237 EFL_CONF_OPTS
+= --disable-image-loader-gif
240 ifeq ($(BR2_PACKAGE_EFL_TIFF
),y
)
241 EFL_CONF_OPTS
+= --enable-image-loader-tiff
=yes
242 EFL_DEPENDENCIES
+= tiff
244 EFL_CONF_OPTS
+= --disable-image-loader-tiff
247 ifeq ($(BR2_PACKAGE_EFL_JP2K
),y
)
248 EFL_CONF_OPTS
+= --enable-image-loader-jp2k
=yes
249 EFL_DEPENDENCIES
+= openjpeg
251 EFL_CONF_OPTS
+= --disable-image-loader-jp2k
254 ifeq ($(BR2_PACKAGE_EFL_WEBP
),y
)
255 EFL_CONF_OPTS
+= --enable-image-loader-webp
=yes
256 EFL_DEPENDENCIES
+= webp
258 EFL_CONF_OPTS
+= --disable-image-loader-webp
261 ifeq ($(BR2_PACKAGE_EFL_LIBRAW
),y
)
262 EFL_DEPENDENCIES
+= libraw
263 EFL_CONF_OPTS
+= --enable-libraw
265 EFL_CONF_OPTS
+= --disable-libraw
268 ifeq ($(BR2_PACKAGE_EFL_SVG
),y
)
269 EFL_DEPENDENCIES
+= librsvg cairo
270 EFL_CONF_OPTS
+= --enable-librsvg
272 EFL_CONF_OPTS
+= --disable-librsvg
275 ifeq ($(BR2_PACKAGE_UPOWER
),)
276 # upower ecore system module is only useful if upower
277 # dbus service is available.
278 # It's not essential, only used to notify applications
279 # of power state, such as low battery or AC power, so
280 # they can adapt their power consumption.
281 define EFL_HOOK_REMOVE_UPOWER
282 rm -fr
$(TARGET_DIR
)/usr
/lib
/ecore
/system
/upower
284 EFL_POST_INSTALL_TARGET_HOOKS
= EFL_HOOK_REMOVE_UPOWER
287 $(eval
$(autotools-package
))
289 ################################################################################
293 ################################################################################
295 # We want to build only some host tools used later in the build.
296 # Actually we want: edje_cc, eet and embryo_cc. eolian_cxx is built only
297 # if selected for the target.
300 # * host-dbus: for Eldbus
301 # * host-freetype: for libevas
302 # * host-libglib2: for libecore
303 # * host-libjpeg, host-libpng: for libevas image loader
304 # * host-luajit for Elua tool for the host
305 HOST_EFL_DEPENDENCIES
= \
316 # --disable-audio, --disable-multisense remove libsndfile dependency.
317 # --disable-fontconfig: remove dependency on fontconfig.
318 # --disable-fribidi: remove dependency on libfribidi.
319 # --disable-gstreamer1: remove dependency on gtreamer 1.0.
320 # --disable-libeeze: remove libudev dependency.
321 # --disable-libmount: remove dependency on host-util-linux libmount.
322 # --disable-lua-old: build elua for the host.
323 # --disable-physics: remove Bullet dependency.
324 # --disable-poppler: disable poppler image loader.
325 # --disable-spectre: disable spectre image loader.
326 # --enable-image-loader-gif=no: disable Gif dependency.
327 # --enable-image-loader-tiff=no: disable Tiff dependency.
328 # --with-crypto=none: remove dependencies on openssl or gnutls.
329 # --with-doxygen: disable doxygen documentation
330 # --with-x11=none: remove dependency on X.org.
331 # Yes I really know what I am doing.
332 HOST_EFL_CONF_OPTS
+= \
334 --disable-fontconfig \
336 --disable-gstreamer1 \
342 --disable-multisense \
347 --enable-image-loader-gif
=no \
348 --enable-image-loader-jpeg
=yes \
349 --enable-image-loader-png
=yes \
350 --enable-image-loader-tiff
=no \
356 --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
358 # Enable Eolian language bindings to provide eolian_cxx tool for the
359 # host which is required to build Eolian language bindings for the
361 ifeq ($(BR2_PACKAGE_EFL_EOLIAN_CPP
),y
)
362 HOST_EFL_CONF_OPTS
+= --enable-cxx-bindings
364 HOST_EFL_CONF_OPTS
+= --disable-cxx-bindings
367 # Always disable upower system module from host as it's
368 # not useful and would try to use the output/host/var
369 # system bus which is non-existent and does not contain
370 # any upower service in it.
371 define HOST_EFL_HOOK_REMOVE_UPOWER
372 rm -fr
$(HOST_DIR
)/usr
/lib
/ecore
/system
/upower
374 HOST_EFL_POST_INSTALL_HOOKS
= HOST_EFL_HOOK_REMOVE_UPOWER
376 $(eval
$(host-autotools-package
))