diff options
author | Joonas Niilola <juippis@gmail.com> | 2019-01-11 06:57:59 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-02-04 02:12:04 +0100 |
commit | f77b1be67b97101d6efdb430dc14cd2e1f780287 (patch) | |
tree | b795e2bacb5e56f8ff4f0c8a99e0419b7622d087 /dev-libs/efl | |
parent | media-gfx/sane-frontends: EAPI-7 bump, fix gimp symlink, SRC_URI (diff) | |
download | gentoo-f77b1be67b97101d6efdb430dc14cd2e1f780287.tar.gz gentoo-f77b1be67b97101d6efdb430dc14cd2e1f780287.tar.bz2 gentoo-f77b1be67b97101d6efdb430dc14cd2e1f780287.zip |
dev-libs/efl: fix GL handling in ebuilds
Bug: https://bugs.gentoo.org/673460
Closes: https://bugs.gentoo.org/673702
Closes: https://bugs.gentoo.org/673588
Package-Manager: Portage[mgorny]-2.3.51.1
Signed-off-by: Joonas Niilola <juippis@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/10696
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/efl')
-rw-r--r-- | dev-libs/efl/efl-1.20.7-r3.ebuild | 302 | ||||
-rw-r--r-- | dev-libs/efl/efl-1.21.1-r3.ebuild | 24 | ||||
-rw-r--r-- | dev-libs/efl/metadata.xml | 1 |
3 files changed, 313 insertions, 14 deletions
diff --git a/dev-libs/efl/efl-1.20.7-r3.ebuild b/dev-libs/efl/efl-1.20.7-r3.ebuild new file mode 100644 index 000000000000..eb9d5b8d1fa2 --- /dev/null +++ b/dev-libs/efl/efl-1.20.7-r3.ebuild @@ -0,0 +1,302 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit gnome2-utils pax-utils xdg-utils + +DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" +HOMEPAGE="https://www.enlightenment.org/" +SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${P}.tar.xz" + +LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="avahi +bmp dds connman debug doc drm +eet examples fbcon +fontconfig fribidi gif gles2 glib gnutls gstreamer harfbuzz hyphen +ico ibus ivi jpeg2k libressl libuv luajit neon nls opengl ssl pdf physics pixman postscript +ppm +psd pulseaudio raw scim sdl sound static-libs svg systemd tga tiff tslib unwind v4l valgrind vlc vnc wayland webp X xcf xim xine xpm xpresent" + +REQUIRED_USE=" + ?? ( gles2 opengl ) + fbcon? ( !tslib ) + gles2? ( + || ( wayland X ) + !sdl + ) + ibus? ( glib ) + opengl? ( X ) + pulseaudio? ( sound ) + sdl? ( opengl ) + vnc? ( fbcon X ) + wayland? ( gles2 !opengl ) + xim? ( X ) +" + +COMMON_DEPEND=" + media-libs/libpng:0= + sys-apps/dbus + sys-apps/util-linux + sys-libs/zlib:= + virtual/jpeg:0= + avahi? ( net-dns/avahi ) + connman? ( net-misc/connman ) + drm? ( + dev-libs/libinput + media-libs/mesa[gbm] + x11-libs/libdrm + x11-libs/libxkbcommon + ) + fontconfig? ( media-libs/fontconfig ) + fribidi? ( dev-libs/fribidi ) + gif? ( media-libs/giflib:= ) + glib? ( dev-libs/glib:2 ) + gles2? ( media-libs/mesa[egl,gles2] ) + gstreamer? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + ) + harfbuzz? ( media-libs/harfbuzz ) + hyphen? ( dev-libs/hyphen ) + ibus? ( app-i18n/ibus ) + jpeg2k? ( media-libs/openjpeg:0= ) + libuv? ( dev-libs/libuv ) + luajit? ( dev-lang/luajit:= ) + !luajit? ( dev-lang/lua:* ) + nls? ( sys-devel/gettext ) + pdf? ( app-text/poppler:=[cxx] ) + physics? ( sci-physics/bullet:= ) + pixman? ( x11-libs/pixman ) + postscript? ( app-text/libspectre ) + pulseaudio? ( media-sound/pulseaudio ) + raw? ( media-libs/libraw:= ) + scim? ( app-i18n/scim ) + sdl? ( + media-libs/libsdl2 + virtual/opengl + ) + sound? ( media-libs/libsndfile ) + ssl? ( + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:= ) + ) + ) + svg? ( + gnome-base/librsvg + x11-libs/cairo + ) + systemd? ( sys-apps/systemd ) + tiff? ( media-libs/tiff:0= ) + tslib? ( x11-libs/tslib:= ) + unwind? ( sys-libs/libunwind ) + valgrind? ( dev-util/valgrind ) + vlc? ( >=media-video/vlc-3.0.0 ) + vnc? ( net-libs/libvncserver ) + wayland? ( + dev-libs/wayland + media-libs/mesa[gles2,wayland] + x11-libs/libxkbcommon + ) + webp? ( media-libs/libwebp:= ) + X? ( + media-libs/freetype + x11-libs/libXcursor + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libXScrnSaver + opengl? ( + x11-libs/libX11 + x11-libs/libXrender + virtual/opengl + ) + gles2? ( + x11-libs/libX11 + x11-libs/libXrender + virtual/opengl + xpresent? ( x11-libs/libXpresent ) + ) + ) + xine? ( media-libs/xine-lib ) + xpm? ( x11-libs/libXpm ) +" + +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen ) +" + +RDEPEND=" + ${COMMON_DEPEND} + !media-libs/elementary + !media-plugins/emotion_generic_players + !media-plugins/evas_generic_loaders +" + +src_prepare() { + default + + # Remove sleep command that forces user to read warnings about their configuration. + # Back out gnu make hack that causes regen of Makefiles. + # Delete var setting that causes the build to abort. + sed -i \ + -e '/sleep 10/d' \ + -e '/^#### Work around bug in automake check macro$/,/^#### Info$/d' \ + -e '/BARF_OK=/s:=.*:=:' \ + configure || die "Sedding configure file failed in src_prepare." + + # Upstream still doesnt offer a configure flag. #611108 + if ! use unwind ; then + sed -i -e 's:libunwind libunwind-generic:xxxxxxxxxxxxxxxx:' \ + configure || die "Sedding configure file with unwind fix failed." + fi + + xdg_environment_reset +} + +src_configure() { + local myconf=( + --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 + --enable-cserve + --enable-image-loader-generic + --enable-image-loader-jpeg + --enable-image-loader-png + --enable-libmount + --enable-xinput2 + + --disable-eglfs + --disable-gesture + --disable-gstreamer + --disable-image-loader-tgv + --disable-tizen + --disable-xinput22 + + $(use_enable avahi) + $(use_enable bmp image-loader-bmp) + $(use_enable bmp image-loader-wbmp) + $(use_enable dds image-loader-dds) + $(use_enable drm) + $(use_enable drm elput) + $(use_enable doc) + $(use_enable eet image-loader-eet) + $(use_enable examples always-build-examples) + $(use_enable fbcon fb) + $(use_enable fontconfig) + $(use_enable fribidi) + $(use_enable gif image-loader-gif) + $(use_enable gles2 egl) + $(use_enable gstreamer gstreamer1) + $(use_enable harfbuzz) + $(use_enable hyphen) + $(use_enable ico image-loader-ico) + $(use_enable ibus) + $(use_enable ivi wayland-ivi-shell) + $(use_enable jpeg2k image-loader-jp2k) + $(use_enable libuv) + $(use_enable !luajit lua-old) + $(use_enable neon) + $(use_enable nls) + $(use_enable pdf poppler) + $(use_enable physics) + $(use_enable pixman) + $(use_enable pixman pixman-font) + $(use_enable pixman pixman-rect) + $(use_enable pixman pixman-line) + $(use_enable pixman pixman-poly) + $(use_enable pixman pixman-image) + $(use_enable pixman pixman-image-scale-sample) + $(use_enable postscript spectre) + $(use_enable ppm image-loader-pmaps) + $(use_enable psd image-loader-psd) + $(use_enable pulseaudio) + $(use_enable raw libraw) + $(use_enable scim) + $(use_enable sdl) + $(use_enable sound audio) + $(use_enable static-libs static) + $(use_enable svg librsvg) + $(use_enable systemd) + $(use_enable tga image-loader-tga) + $(use_enable tiff image-loader-tiff) + $(use_enable tslib) + $(use_enable v4l v4l2) + $(use_enable valgrind) + $(use_enable vlc libvlc) + $(use_enable vnc vnc-server) + $(use_enable wayland) + $(use_enable webp image-loader-webp) + $(use_enable xcf) + $(use_enable xim) + $(use_enable xine) + $(use_enable xpm image-loader-xpm) + + --with-crypto=$(usex gnutls gnutls $(usex ssl openssl none)) + --with-glib=$(usex glib) + --with-js=none + --with-net-control=$(usex connman connman none) + --with-profile=$(usex debug debug release) + --with-x11=$(usex X xlib none) + + $(use_with X x) + ) + + use drm && use wayland && myconf+=( --enable-gl-drm ) + use X && use xpresent && myconf+=( --enable-xpresent ) + + if use opengl ; then + myconf+=( --with-opengl=full ) + elif use gles2 ; then + myconf+=( --with-opengl=es ) + elif use drm && use wayland ; then + myconf+=( --with-opengl=es ) + else + myconf+=( --with-opengl=none ) + fi + + econf "${myconf[@]}" +} + +src_compile() { + if host-is-pax && use luajit ; then + # We need to build the lua code first so we can pax-mark it. #547076 + local target='_e_built_sources_target_gogogo_' + printf '%s: $(BUILT_SOURCES)\n' "${target}" >> src/Makefile || die + emake -C src "${target}" + emake -C src bin/elua/elua + pax-mark m src/bin/elua/.libs/elua + fi + + V=1 emake || die "Compiling EFL failed." + + if use doc ; then + V=1 emake -j1 doc || die "Compiling docs for EFL failed." + fi +} + +src_install() { + if use doc ; then + local HTML_DOCS=( doc/. ) + fi + + einstalldocs + + V=1 emake install DESTDIR="${D}" || die "Installing EFL files failed." + + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/dev-libs/efl/efl-1.21.1-r3.ebuild b/dev-libs/efl/efl-1.21.1-r3.ebuild index a2bedffdb459..5d7865140e86 100644 --- a/dev-libs/efl/efl-1.21.1-r3.ebuild +++ b/dev-libs/efl/efl-1.21.1-r3.ebuild @@ -12,24 +12,21 @@ SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${P}.tar.xz" LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux" -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" +IUSE="+bmp dds connman debug drm +eet examples fbcon +fontconfig fribidi gif gles2 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" REQUIRED_USE=" - ?? ( opengl egl ) - ?? ( opengl gles ) - egl? ( gles ) + ?? ( gles2 opengl ) fbcon? ( !tslib ) - gles? ( - || ( X wayland ) + gles2? ( + || ( wayland X ) !sdl - egl ) ibus? ( glib ) opengl? ( X ) pulseaudio? ( sound ) sdl? ( opengl ) - vnc? ( X fbcon ) - wayland? ( egl gles !opengl ) + vnc? ( fbcon X ) + wayland? ( gles2 !opengl ) xim? ( X ) xpresent? ( X ) " @@ -48,11 +45,10 @@ RDEPEND=" x11-libs/libdrm x11-libs/libxkbcommon ) - egl? ( media-libs/mesa[egl] ) fontconfig? ( media-libs/fontconfig ) fribidi? ( dev-libs/fribidi ) gif? ( media-libs/giflib:= ) - gles? ( media-libs/mesa[gles2] ) + gles2? ( media-libs/mesa[egl,gles2] ) glib? ( dev-libs/glib:2 ) gstreamer? ( media-libs/gstreamer:1.0 @@ -115,7 +111,7 @@ RDEPEND=" x11-libs/libXrender x11-libs/libXtst x11-libs/libXScrnSaver - gles? ( + gles2? ( x11-libs/libX11 x11-libs/libXrender virtual/opengl @@ -177,12 +173,12 @@ src_configure() { $(use_enable drm) $(use_enable drm elput) $(use_enable eet image-loader-eet) - $(use_enable egl) $(use_enable examples always-build-examples) $(use_enable fbcon fb) $(use_enable fontconfig) $(use_enable fribidi) $(use_enable gif image-loader-gif) + $(use_enable gles2 egl) $(use_enable gstreamer gstreamer1) $(use_enable harfbuzz) $(use_enable hyphen) @@ -237,7 +233,7 @@ src_configure() { if use opengl ; then myconf+=( --with-opengl=full ) - elif use egl ; then + elif use gles2 ; then myconf+=( --with-opengl=es ) elif use drm && use wayland ; then myconf+=( --with-opengl=es ) diff --git a/dev-libs/efl/metadata.xml b/dev-libs/efl/metadata.xml index 9a89497c2f4d..04c533dba691 100644 --- a/dev-libs/efl/metadata.xml +++ b/dev-libs/efl/metadata.xml @@ -16,6 +16,7 @@ <flag name="egl">Enable EGL rendering</flag> <flag name="fribidi">Enable bidirectional text support</flag> <flag name="gles">Enable the OpenGL ES GL implementation</flag> + <flag name="gles2">Enable the OpenGL ES GL implementation</flag> <flag name="glib">Enable <pkg>dev-libs/glib</pkg> support</flag> <flag name="harfbuzz">Enable complex text shaping and layout support</flag> <flag name="hyphen">Enable text hyphenation support</flag> |