1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 if [[ "${PV}" == "9999" ]] ; then
10 EGIT_SUB_PROJECT="core"
11 EGIT_URI_APPEND="${PN}"
12 elif [[ *"${PV}" == *"_pre"* ]] ; then
14 SRC_URI="https://download.enlightenment.org/pre-releases/${MY_P}.tar.xz"
17 SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.xz"
21 inherit enlightenment pax-utils
23 DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
25 LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
26 IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus jpeg2k libressl neon oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l valgrind wayland webp X xim xine xpm"
30 opengl? ( || ( X sdl wayland ) )
31 gles? ( || ( X wayland ) )
35 wayland? ( egl !opengl gles )
41 >=dev-libs/libinput-0.8
44 >=x11-libs/libxkbcommon-0.3.0
46 fontconfig? ( media-libs/fontconfig )
47 fribidi? ( dev-libs/fribidi )
48 gif? ( media-libs/giflib )
49 glib? ( dev-libs/glib:2 )
50 gnutls? ( net-libs/gnutls )
53 !libressl? ( dev-libs/openssl:0= )
54 libressl? ( dev-libs/libressl )
58 media-libs/gstreamer:1.0
59 media-libs/gst-plugins-base:1.0
61 harfbuzz? ( media-libs/harfbuzz )
62 ibus? ( app-i18n/ibus )
63 jpeg2k? ( media-libs/openjpeg:0 )
64 !oldlua? ( >=dev-lang/luajit-2.0.0 )
65 oldlua? ( dev-lang/lua:* )
66 physics? ( >=sci-physics/bullet-2.80 )
67 pixman? ( x11-libs/pixman )
68 png? ( media-libs/libpng:0= )
69 pulseaudio? ( media-sound/pulseaudio )
70 scim? ( app-i18n/scim )
75 sound? ( media-libs/libsndfile )
76 systemd? ( sys-apps/systemd )
77 tiff? ( media-libs/tiff:0= )
78 tslib? ( x11-libs/tslib )
79 valgrind? ( dev-util/valgrind )
81 >=dev-libs/wayland-1.8.0
82 >=x11-libs/libxkbcommon-0.3.1
83 media-libs/mesa[gles2,wayland]
85 webp? ( media-libs/libwebp )
89 x11-libs/libXcomposite
98 x11-libs/libXScrnSaver
112 xine? ( >=media-libs/xine-lib-1.1.1 )
113 xpm? ( x11-libs/libXpm )
116 >=sys-apps/util-linux-2.20.0
135 #external lz4 support currently broken because of unstable ABI/API
138 #soft blockers added above for binpkg users
139 #hard blocks are needed for building
158 ${CORE_EFL_CONFLICTS}
161 doc? ( app-doc/doxygen )
167 enlightenment_src_prepare
169 # Remove stupid sleep command.
170 # Also back out gnu make hack that causes regen of Makefiles.
171 # Delete var setting that causes the build to abort.
174 -e '/^#### Work around bug in automake check macro$/,/^#### Info$/d' \
175 -e '/BARF_OK=/s:=.*:=:' \
180 if use ssl && use gnutls ; then
181 einfo "You enabled both USE=ssl and USE=gnutls, but only one can be used;"
182 einfo "gnutls has been selected for you."
184 if use opengl && use gles ; then
185 einfo "You enabled both USE=opengl and USE=gles, but only one can be used;"
186 einfo "opengl has been selected for you."
190 --with-profile=$(usex debug debug release)
191 --with-crypto=$(usex gnutls gnutls $(usex ssl openssl none))
192 --with-x11=$(usex X xlib none)
194 --with-opengl=$(usex opengl full $(usex gles es none))
195 --with-glib=$(usex glib)
196 --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
198 $(use_enable bmp image-loader-bmp)
199 $(use_enable bmp image-loader-wbmp)
202 $(use_enable eet image-loader-eet)
204 $(use_enable fbcon fb)
205 $(use_enable fontconfig)
206 $(use_enable fribidi)
207 $(use_enable gif image-loader-gif)
208 $(use_enable gstreamer gstreamer1)
209 $(use_enable harfbuzz)
210 $(use_enable ico image-loader-ico)
212 $(use_enable jpeg2k image-loader-jp2k)
215 $(use_enable oldlua lua-old)
216 $(use_enable physics)
218 $(use_enable pixman pixman-font)
219 $(use_enable pixman pixman-rect)
220 $(use_enable pixman pixman-line)
221 $(use_enable pixman pixman-poly)
222 $(use_enable pixman pixman-image)
223 $(use_enable pixman pixman-image-scale-sample)
224 $(use_enable png image-loader-png)
225 $(use_enable ppm image-loader-pmaps)
226 $(use_enable psd image-loader-psd)
227 $(use_enable pulseaudio)
230 $(use_enable sound audio)
231 $(use_enable systemd)
232 $(use_enable tga image-loader-tga)
233 $(use_enable tiff image-loader-tiff)
235 $(use_enable v4l v4l2)
236 $(use_enable valgrind)
237 $(use_enable wayland)
238 $(use_enable webp image-loader-webp)
241 $(use_enable xpm image-loader-xpm)
243 --enable-image-loader-generic
244 --enable-image-loader-jpeg
254 # external lz4 support currently broken because of unstable ABI/API
258 enlightenment_src_configure
262 if host-is-pax && ! use oldlua ; then
263 # We need to build the lua code first so we can pax-mark it. #547076
264 local target='_e_built_sources_target_gogogo_'
265 printf '%s: $(BUILT_SOURCES)\n' "${target}" >> src/Makefile || die
266 emake -C src "${target}"
267 emake -C src bin/elua/elua
268 pax-mark m src/bin/elua/.libs/elua
270 enlightenment_src_compile
276 enlightenment_src_install