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 dbus freetype jpeg lua udev \
25 # Regenerate the autotools:
26 # - to fix an issue in eldbus-codegen: https://phab.enlightenment.org/T2718
27 # - to remove dependency on libXp: https://phab.enlightenment.org/D3150
32 # --disable-cxx-bindings: disable C++11 bindings.
33 # --disable-sdl: disable sdl2 support.
34 # --disable-systemd: disable systemd support.
35 # --disable-xinput22: disable X11 XInput v2.2+ support.
36 # --enable-lua-old: disable Elua and remove luajit dependency.
37 # --with-opengl=none: disable opengl support.
39 --with-edje-cc
=$(HOST_DIR
)/usr
/bin
/edje_cc \
40 --with-eolian-gen
=$(HOST_DIR
)/usr
/bin
/eolian_gen \
41 --disable-cxx-bindings \
48 # Disable untested configuration warning.
49 ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
),)
50 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-aba
53 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
),y
)
54 EFL_DEPENDENCIES
+= util-linux
55 EFL_CONF_OPTS
+= --enable-libmount
57 EFL_CONF_OPTS
+= --disable-libmount
60 ifeq ($(BR2_PACKAGE_FONTCONFIG
),y
)
61 EFL_CONF_OPTS
+= --enable-fontconfig
62 EFL_DEPENDENCIES
+= fontconfig
64 EFL_CONF_OPTS
+= --disable-fontconfig
67 ifeq ($(BR2_PACKAGE_LIBFRIBIDI
),y
)
68 EFL_CONF_OPTS
+= --enable-fribidi
69 EFL_DEPENDENCIES
+= libfribidi
71 EFL_CONF_OPTS
+= --disable-fribidi
74 ifeq ($(BR2_PACKAGE_GSTREAMER1
)$(BR2_PACKAGE_GST1_PLUGINS_BASE
),yy
)
75 EFL_CONF_OPTS
+= --enable-gstreamer1
76 EFL_DEPENDENCIES
+= gstreamer1 gst1-plugins-base
78 EFL_CONF_OPTS
+= --disable-gstreamer1
81 ifeq ($(BR2_PACKAGE_BULLET
),y
)
82 EFL_CONF_OPTS
+= --enable-physics
83 EFL_DEPENDENCIES
+= bullet
85 EFL_CONF_OPTS
+= --disable-physics
88 ifeq ($(BR2_PACKAGE_LIBSNDFILE
),y
)
89 EFL_CONF_OPTS
+= --enable-audio
90 EFL_DEPENDENCIES
+= libsndfile
92 EFL_CONF_OPTS
+= --disable-audio
95 ifeq ($(BR2_PACKAGE_PULSEAUDIO
),y
)
96 EFL_CONF_OPTS
+= --enable-pulseaudio
97 EFL_DEPENDENCIES
+= pulseaudio
99 EFL_CONF_OPTS
+= --disable-pulseaudio
102 ifeq ($(BR2_PACKAGE_HARFBUZZ
),y
)
103 EFL_DEPENDENCIES
+= harfbuzz
104 EFL_CONF_OPTS
+= --enable-harfbuzz
106 EFL_CONF_OPTS
+= --disable-harfbuzz
109 ifeq ($(BR2_PACKAGE_TSLIB
),y
)
110 EFL_DEPENDENCIES
+= tslib
111 EFL_CONF_OPTS
+= --enable-tslib
113 EFL_CONF_OPTS
+= --disable-tslib
116 ifeq ($(BR2_PACKAGE_LIBGLIB2
),y
)
117 EFL_DEPENDENCIES
+= libglib2
118 EFL_CONF_OPTS
+= --with-glib
=yes
120 EFL_CONF_OPTS
+= --with-glib
=no
123 # Prefer openssl (the default) over gnutls.
124 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
125 EFL_DEPENDENCIES
+= openssl
126 EFL_CONF_OPTS
+= --with-crypto
=openssl
127 else ifeq ($(BR2_PACKAGE_GNUTLS
)$(BR2_PACKAGE_LIBGCRYPT
),yy
)
128 EFL_DEPENDENCIES
+= gnutls libgcrypt
129 EFL_CONF_OPTS
+= --with-crypto
=gnutls \
130 --with-libgcrypt-prefix
=$(STAGING_DIR
)/usr
132 EFL_CONF_OPTS
+= --with-crypto
=none
133 endif # BR2_PACKAGE_OPENSSL
135 ifeq ($(BR2_PACKAGE_WAYLAND
),y
)
136 EFL_DEPENDENCIES
+= wayland libxkbcommon
137 EFL_CONF_OPTS
+= --enable-wayland
139 EFL_CONF_OPTS
+= --disable-wayland
142 ifeq ($(BR2_PACKAGE_EFL_FB
),y
)
143 EFL_CONF_OPTS
+= --enable-fb
145 EFL_CONF_OPTS
+= --disable-fb
148 ifeq ($(BR2_PACKAGE_EFL_X_XLIB
),y
)
151 --with-x
=$(STAGING_DIR
) \
152 --x-includes
=$(STAGING_DIR
)/usr
/include \
153 --x-libraries
=$(STAGING_DIR
)/usr
/lib
155 EFL_DEPENDENCIES
+= \
167 EFL_CONF_OPTS
+= --with-x11
=none
170 # Loaders that need external dependencies needs to be --enable-XXX=yes
171 # otherwise the default is '=static'.
172 # All other loaders are statically built-in
173 ifeq ($(BR2_PACKAGE_EFL_PNG
),y
)
174 EFL_CONF_OPTS
+= --enable-image-loader-png
=yes
175 EFL_DEPENDENCIES
+= libpng
177 EFL_CONF_OPTS
+= --disable-image-loader-png
180 ifeq ($(BR2_PACKAGE_EFL_JPEG
),y
)
181 EFL_CONF_OPTS
+= --enable-image-loader-jpeg
=yes
182 # efl already depends on jpeg.
184 EFL_CONF_OPTS
+= --disable-image-loader-jpeg
187 ifeq ($(BR2_PACKAGE_EFL_GIF
),y
)
188 EFL_CONF_OPTS
+= --enable-image-loader-gif
=yes
189 EFL_DEPENDENCIES
+= giflib
191 EFL_CONF_OPTS
+= --disable-image-loader-gif
194 ifeq ($(BR2_PACKAGE_EFL_TIFF
),y
)
195 EFL_CONF_OPTS
+= --enable-image-loader-tiff
=yes
196 EFL_DEPENDENCIES
+= tiff
198 EFL_CONF_OPTS
+= --disable-image-loader-tiff
201 ifeq ($(BR2_PACKAGE_EFL_JP2K
),y
)
202 EFL_CONF_OPTS
+= --enable-image-loader-jp2k
=yes
203 EFL_DEPENDENCIES
+= openjpeg
205 EFL_CONF_OPTS
+= --disable-image-loader-jp2k
208 ifeq ($(BR2_PACKAGE_EFL_WEBP
),y
)
209 EFL_CONF_OPTS
+= --enable-image-loader-webp
=yes
210 EFL_DEPENDENCIES
+= webp
212 EFL_CONF_OPTS
+= --disable-image-loader-webp
215 $(eval
$(autotools-package
))
217 ################################################################################
221 ################################################################################
223 # We want to build only some host tools used later in the build.
224 # Actually we want: edje_cc, embryo_cc and eet.
227 # * host-dbus: for Eldbus
228 # * host-freetype: for libevas
229 # * host-libglib2: for libecore
230 # * host-libjpeg, host-libpng: for libevas image loader
231 # * host-lua: disable luajit dependency
232 HOST_EFL_DEPENDENCIES
= \
243 # --disable-audio, --disable-multisense remove libsndfile dependency.
244 # --disable-cxx-bindings: disable C++11 bindings.
245 # --disable-fontconfig: remove dependency on fontconfig.
246 # --disable-fribidi: remove dependency on libfribidi.
247 # --disable-gstreamer1: remove dependency on gtreamer 1.0.
248 # --disable-libeeze: remove libudev dependency.
249 # --disable-libmount: remove dependency on host-util-linux libmount.
250 # --disable-physics: remove Bullet dependency.
251 # --enable-image-loader-gif=no: disable Gif dependency.
252 # --enable-image-loader-tiff=no: disable Tiff dependency.
253 # --enable-lua-old: disable Elua and remove luajit dependency.
254 # --with-crypto=none: remove dependencies on openssl or gnutls.
255 # --with-x11=none: remove dependency on X.org.
256 # Yes I really know what I am doing.
257 HOST_EFL_CONF_OPTS
+= \
259 --disable-cxx-bindings \
260 --disable-fontconfig \
262 --disable-gstreamer1 \
265 --disable-multisense \
267 --enable-image-loader-gif
=no \
268 --enable-image-loader-jpeg
=yes \
269 --enable-image-loader-png
=yes \
270 --enable-image-loader-tiff
=no \
276 --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba
278 $(eval
$(host-autotools-package
))