1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit gnome2-utils pax-utils xdg-utils
8 DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
9 HOMEPAGE="https://www.enlightenment.org"
10 SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${P}.tar.xz"
12 LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
14 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
15 IUSE="+bmp dds connman debug drm +eet egl examples fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz hyphen +ico ibus jpeg2k libressl libuv luajit neon nls opengl ssl pdf physics postscript +ppm +psd pulseaudio raw scim sdl sound static-libs svg +system-lz4 systemd tga tiff tslib unwind v4l valgrind vlc vnc wayland webp X xcf xim xine xpm xpresent zeroconf"
32 wayland? ( egl gles !opengl )
44 connman? ( net-misc/connman )
51 egl? ( media-libs/mesa[egl] )
52 fontconfig? ( media-libs/fontconfig )
53 fribidi? ( dev-libs/fribidi )
54 gif? ( media-libs/giflib:= )
55 gles? ( media-libs/mesa[gles2] )
56 glib? ( dev-libs/glib:2 )
58 media-libs/gstreamer:1.0
59 media-libs/gst-plugins-base:1.0
61 harfbuzz? ( media-libs/harfbuzz )
62 hyphen? ( dev-libs/hyphen )
63 ibus? ( app-i18n/ibus )
64 jpeg2k? ( media-libs/openjpeg:= )
65 libuv? ( dev-libs/libuv )
66 luajit? ( dev-lang/luajit:= )
67 !luajit? ( dev-lang/lua:* )
68 nls? ( sys-devel/gettext )
69 pdf? ( app-text/poppler:=[cxx] )
70 physics? ( sci-physics/bullet:= )
71 postscript? ( app-text/libspectre )
72 pulseaudio? ( media-sound/pulseaudio )
73 raw? ( media-libs/libraw:= )
74 scim? ( app-i18n/scim )
79 sound? ( media-libs/libsndfile )
81 gnutls? ( net-libs/gnutls:= )
83 !libressl? ( dev-libs/openssl:= )
84 libressl? ( dev-libs/libressl:= )
91 system-lz4? ( app-arch/lz4 )
92 systemd? ( sys-apps/systemd )
93 tiff? ( media-libs/tiff:0= )
94 tslib? ( x11-libs/tslib:= )
95 unwind? ( sys-libs/libunwind )
96 valgrind? ( dev-util/valgrind )
97 vlc? ( media-video/vlc )
98 vnc? ( net-libs/libvncserver )
101 media-libs/mesa[gles2,wayland]
102 x11-libs/libxkbcommon
104 webp? ( media-libs/libwebp:= )
109 x11-libs/libXcomposite
117 x11-libs/libXScrnSaver
129 xine? ( media-libs/xine-lib )
130 xpm? ( x11-libs/libXpm )
131 xpresent? ( x11-libs/libXpresent )
132 zeroconf? ( net-dns/avahi )
141 "${FILESDIR}/${P}-fix_evas_preload_segfault.patch"
147 # Upstream still doesnt offer a configure flag. #611108
148 if ! use unwind ; then
149 sed -i -e 's:libunwind libunwind-generic:xxxxxxxxxxxxxxxx:' \
150 configure || die "Sedding configure file with unwind fix failed."
153 xdg_environment_reset
159 --enable-image-loader-generic
160 --enable-image-loader-jpeg
161 --enable-image-loader-png
170 --disable-image-loader-tgv
172 --disable-wayland-ivi-shell
174 $(use_enable bmp image-loader-bmp)
175 $(use_enable bmp image-loader-wbmp)
176 $(use_enable dds image-loader-dds)
178 $(use_enable drm elput)
179 $(use_enable eet image-loader-eet)
181 $(use_enable examples always-build-examples)
182 $(use_enable fbcon fb)
183 $(use_enable fontconfig)
184 $(use_enable fribidi)
185 $(use_enable gif image-loader-gif)
186 $(use_enable gstreamer gstreamer1)
187 $(use_enable harfbuzz)
189 $(use_enable ico image-loader-ico)
191 $(use_enable jpeg2k image-loader-jp2k)
193 $(use_enable !luajit lua-old)
196 $(use_enable pdf poppler)
197 $(use_enable physics)
198 $(use_enable postscript spectre)
199 $(use_enable ppm image-loader-pmaps)
200 $(use_enable psd image-loader-psd)
201 $(use_enable pulseaudio)
202 $(use_enable raw libraw)
205 $(use_enable sound audio)
206 $(use_enable static-libs static)
207 $(use_enable svg librsvg)
208 $(use_enable system-lz4 liblz4)
209 $(use_enable systemd)
210 $(use_enable tga image-loader-tga)
211 $(use_enable tiff image-loader-tiff)
213 $(use_enable v4l v4l2)
214 $(use_enable valgrind)
215 $(use_enable vlc libvlc)
216 $(use_enable vnc vnc-server)
217 $(use_enable wayland)
218 $(use_enable webp image-loader-webp)
222 $(use_enable xpm image-loader-xpm)
223 $(use_enable xpresent)
224 $(use_enable zeroconf avahi)
226 --with-crypto=$(usex gnutls gnutls $(usex ssl openssl none))
227 --with-glib=$(usex glib)
229 --with-net-control=$(usex connman connman none)
230 --with-profile=$(usex debug debug release)
231 --with-x11=$(usex X xlib none)
236 use drm && use wayland && myconf+=( --enable-gl-drm )
239 myconf+=( --with-opengl=full )
241 myconf+=( --with-opengl=es )
242 elif use drm && use wayland ; then
243 myconf+=( --with-opengl=es )
245 myconf+=( --with-opengl=none )
252 if host-is-pax && use luajit ; then
253 # We need to build the lua code first so we can pax-mark it. #547076
254 local target='_e_built_sources_target_gogogo_'
255 printf '%s: $(BUILT_SOURCES)\n' "${target}" >> src/Makefile || die
256 emake -C src "${target}"
257 emake -C src bin/elua/elua
258 pax-mark m src/bin/elua/.libs/elua
261 V=1 emake || die "Compiling EFL failed."
267 V=1 emake install DESTDIR="${D}" || die "Installing EFL files failed."
269 find "${D}" -name '*.la' -delete || die
273 gnome2_icon_cache_update
274 xdg_mimeinfo_database_update
278 gnome2_icon_cache_update
279 xdg_mimeinfo_database_update