2018-03-25 20:36:01 +00:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2017-11-04 15:39:46 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
|
|
|
|
MY_P=${P/_/-}
|
|
|
|
|
|
|
|
if [[ "${PV}" == "9999" ]] ; then
|
|
|
|
EGIT_SUB_PROJECT="core"
|
|
|
|
EGIT_URI_APPEND="${PN}"
|
|
|
|
elif [[ *"${PV}" == *"_pre"* ]] ; then
|
|
|
|
MY_P=${P%%_*}
|
|
|
|
SRC_URI="https://download.enlightenment.org/pre-releases/${MY_P}.tar.xz"
|
|
|
|
else
|
|
|
|
SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.xz"
|
2018-03-25 20:36:01 +00:00
|
|
|
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
2017-11-04 15:39:46 +00:00
|
|
|
fi
|
|
|
|
|
2018-03-25 20:36:01 +00:00
|
|
|
inherit enlightenment gnome2-utils pax-utils xdg-utils
|
2017-11-04 15:39:46 +00:00
|
|
|
|
|
|
|
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package"
|
|
|
|
|
|
|
|
LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB"
|
2018-03-25 20:36:01 +00:00
|
|
|
IUSE="avahi +bmp dds connman debug drm +eet egl examples fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz hyphen +ico ibus ivi jpeg2k libressl libuv luajit neon opengl ssl pdf physics pixman postscript +ppm +psd pulseaudio raw scim sdl sound svg systemd tga tgv tiff tslib unwind v4l valgrind vlc vnc wayland webp X xcf xim xine xpresent xpm"
|
2017-11-04 15:39:46 +00:00
|
|
|
|
|
|
|
REQUIRED_USE="
|
2018-03-25 20:36:01 +00:00
|
|
|
?? ( opengl gles )
|
|
|
|
fbcon? ( !tslib )
|
|
|
|
gles? (
|
|
|
|
|| ( X wayland )
|
|
|
|
!sdl
|
|
|
|
egl
|
|
|
|
)
|
|
|
|
gnutls? ( ssl )
|
|
|
|
ibus? ( glib )
|
|
|
|
libressl? ( ssl )
|
|
|
|
opengl? ( || ( X sdl wayland ) )
|
|
|
|
pulseaudio? ( sound )
|
|
|
|
sdl? ( opengl )
|
|
|
|
vnc? ( X fbcon )
|
|
|
|
wayland? ( egl !opengl gles )
|
|
|
|
xim? ( X )
|
2017-11-04 15:39:46 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
RDEPEND="
|
2018-03-25 20:36:01 +00:00
|
|
|
avahi? ( net-dns/avahi )
|
|
|
|
connman? ( net-misc/connman )
|
2017-11-04 15:39:46 +00:00
|
|
|
drm? (
|
2018-03-25 20:36:01 +00:00
|
|
|
>=dev-libs/libinput-0.8
|
2017-11-04 15:39:46 +00:00
|
|
|
media-libs/mesa[gbm]
|
|
|
|
>=x11-libs/libdrm-2.4
|
|
|
|
>=x11-libs/libxkbcommon-0.3.0
|
|
|
|
)
|
2018-03-25 20:36:01 +00:00
|
|
|
fontconfig? ( >=media-libs/fontconfig-2.5.0 )
|
|
|
|
fribidi? ( >=dev-libs/fribidi-0.19.2 )
|
|
|
|
gif? ( media-libs/giflib:= )
|
2017-11-04 15:39:46 +00:00
|
|
|
glib? ( dev-libs/glib:2 )
|
2018-03-25 20:36:01 +00:00
|
|
|
ssl? (
|
|
|
|
gnutls? ( >=net-libs/gnutls-3.3.6 )
|
|
|
|
!gnutls? (
|
2017-11-04 15:39:46 +00:00
|
|
|
!libressl? ( dev-libs/openssl:0= )
|
2018-03-25 20:36:01 +00:00
|
|
|
libressl? ( dev-libs/libressl:0= )
|
2017-11-04 15:39:46 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
gstreamer? (
|
|
|
|
media-libs/gstreamer:1.0
|
|
|
|
media-libs/gst-plugins-base:1.0
|
|
|
|
)
|
2018-03-25 20:36:01 +00:00
|
|
|
harfbuzz? ( >=media-libs/harfbuzz-0.9.0 )
|
|
|
|
hyphen? ( dev-libs/hyphen )
|
|
|
|
ibus? ( >=app-i18n/ibus-1.4 )
|
2017-11-04 15:39:46 +00:00
|
|
|
jpeg2k? ( media-libs/openjpeg:0 )
|
2018-03-25 20:36:01 +00:00
|
|
|
libuv? ( dev-libs/libuv )
|
|
|
|
luajit? ( >=dev-lang/luajit-2.0.0 )
|
|
|
|
!luajit? ( dev-lang/lua:* )
|
|
|
|
pdf? ( >=app-text/poppler-0.45.0[cxx] )
|
2017-11-04 15:39:46 +00:00
|
|
|
physics? ( >=sci-physics/bullet-2.80 )
|
|
|
|
pixman? ( x11-libs/pixman )
|
|
|
|
postscript? ( app-text/libspectre )
|
2018-03-25 20:36:01 +00:00
|
|
|
media-libs/libpng:0=
|
2017-11-04 15:39:46 +00:00
|
|
|
pulseaudio? ( media-sound/pulseaudio )
|
|
|
|
raw? ( media-libs/libraw )
|
|
|
|
scim? ( app-i18n/scim )
|
|
|
|
sdl? (
|
2018-03-25 20:36:01 +00:00
|
|
|
>=media-libs/libsdl2-2.0.0
|
2017-11-04 15:39:46 +00:00
|
|
|
virtual/opengl
|
|
|
|
)
|
|
|
|
sound? ( media-libs/libsndfile )
|
2018-03-25 20:36:01 +00:00
|
|
|
svg? (
|
|
|
|
>=gnome-base/librsvg-2.36.0
|
|
|
|
>=x11-libs/cairo-1.0.0
|
|
|
|
)
|
|
|
|
systemd? ( >=sys-apps/systemd-209 )
|
2017-11-04 15:39:46 +00:00
|
|
|
tiff? ( media-libs/tiff:0= )
|
|
|
|
tslib? ( x11-libs/tslib )
|
|
|
|
unwind? ( sys-libs/libunwind )
|
|
|
|
valgrind? ( dev-util/valgrind )
|
2018-03-25 20:36:01 +00:00
|
|
|
vlc? ( media-video/vlc )
|
|
|
|
vnc? ( net-libs/libvncserver )
|
2017-11-04 15:39:46 +00:00
|
|
|
wayland? (
|
2018-03-25 20:36:01 +00:00
|
|
|
>=dev-libs/wayland-1.11.0
|
|
|
|
>=x11-libs/libxkbcommon-0.6.0
|
2017-11-04 15:39:46 +00:00
|
|
|
media-libs/mesa[gles2,wayland]
|
|
|
|
)
|
|
|
|
webp? ( media-libs/libwebp )
|
|
|
|
X? (
|
2018-03-25 20:36:01 +00:00
|
|
|
>=media-libs/freetype-2.5.0.1
|
2017-11-04 15:39:46 +00:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
gles? (
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXrender
|
|
|
|
virtual/opengl
|
2018-03-25 20:36:01 +00:00
|
|
|
xpresent? ( x11-libs/libXpresent )
|
2017-11-04 15:39:46 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
xine? ( >=media-libs/xine-lib-1.1.1 )
|
|
|
|
xpm? ( x11-libs/libXpm )
|
|
|
|
|
|
|
|
sys-apps/dbus
|
|
|
|
>=sys-apps/util-linux-2.20.0
|
|
|
|
sys-libs/zlib
|
|
|
|
virtual/jpeg:0=
|
|
|
|
|
|
|
|
!dev-libs/ecore
|
|
|
|
!dev-libs/edbus
|
|
|
|
!dev-libs/eet
|
|
|
|
!dev-libs/eeze
|
|
|
|
!dev-libs/efreet
|
|
|
|
!dev-libs/eina
|
|
|
|
!dev-libs/eio
|
|
|
|
!dev-libs/embryo
|
|
|
|
!dev-libs/eobj
|
|
|
|
!dev-libs/ephysics
|
|
|
|
!media-libs/edje
|
|
|
|
!media-libs/elementary
|
|
|
|
!media-libs/emotion
|
|
|
|
!media-libs/ethumb
|
|
|
|
!media-libs/evas
|
|
|
|
!media-plugins/emotion_generic_players
|
|
|
|
!media-plugins/evas_generic_loaders
|
|
|
|
"
|
|
|
|
#external lz4 support currently broken because of unstable ABI/API
|
|
|
|
# app-arch/lz4
|
|
|
|
|
|
|
|
#soft blockers added above for binpkg users
|
|
|
|
#hard blocks are needed for building
|
|
|
|
CORE_EFL_CONFLICTS="
|
|
|
|
!!dev-libs/ecore
|
|
|
|
!!dev-libs/edbus
|
|
|
|
!!dev-libs/eet
|
|
|
|
!!dev-libs/eeze
|
|
|
|
!!dev-libs/efreet
|
|
|
|
!!dev-libs/eina
|
|
|
|
!!dev-libs/eio
|
|
|
|
!!dev-libs/embryo
|
|
|
|
!!dev-libs/eobj
|
|
|
|
!!dev-libs/ephysics
|
|
|
|
!!media-libs/edje
|
|
|
|
!!media-libs/emotion
|
|
|
|
!!media-libs/ethumb
|
|
|
|
!!media-libs/evas
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
${CORE_EFL_CONFLICTS}
|
|
|
|
|
|
|
|
${RDEPEND}
|
|
|
|
doc? ( app-doc/doxygen )
|
|
|
|
"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
2018-03-25 20:36:01 +00:00
|
|
|
pkg_setup() {
|
|
|
|
# Get clean environment, see bug 557408
|
|
|
|
xdg_environment_reset
|
|
|
|
chown portage:portage -R "${HOME}"
|
|
|
|
}
|
|
|
|
|
2017-11-04 15:39:46 +00:00
|
|
|
src_prepare() {
|
|
|
|
enlightenment_src_prepare
|
|
|
|
|
|
|
|
# Remove stupid sleep command.
|
|
|
|
# Also 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
|
|
|
|
|
|
|
|
# Upstream doesn't offer a configure flag. #611108
|
|
|
|
if ! use unwind ; then
|
|
|
|
sed -i \
|
|
|
|
-e 's:libunwind libunwind-generic:xxxxxxxxxxxxxxxx:' \
|
|
|
|
configure || die
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
if use ssl && use gnutls ; then
|
|
|
|
einfo "You enabled both USE=ssl and USE=gnutls, but only one can be used;"
|
|
|
|
einfo "gnutls has been selected for you."
|
|
|
|
fi
|
|
|
|
if use opengl && use gles ; then
|
|
|
|
einfo "You enabled both USE=opengl and USE=gles, but only one can be used;"
|
|
|
|
einfo "opengl has been selected for you."
|
|
|
|
fi
|
|
|
|
|
|
|
|
E_ECONF=(
|
|
|
|
--with-profile=$(usex debug debug release)
|
2018-03-25 20:36:01 +00:00
|
|
|
--with-net-control=$(usex connman connman none)
|
2017-11-04 15:39:46 +00:00
|
|
|
--with-crypto=$(usex gnutls gnutls $(usex ssl openssl none))
|
|
|
|
--with-x11=$(usex X xlib none)
|
|
|
|
$(use_with X x)
|
|
|
|
--with-opengl=$(usex opengl full $(usex gles es none))
|
|
|
|
--with-glib=$(usex glib)
|
|
|
|
--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
|
|
|
|
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable avahi)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable bmp image-loader-bmp)
|
|
|
|
$(use_enable bmp image-loader-wbmp)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable dds image-loader-dds)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable drm)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable drm elput)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable doc)
|
|
|
|
$(use_enable eet image-loader-eet)
|
|
|
|
$(use_enable egl)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable examples always-build-examples)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable fbcon fb)
|
|
|
|
$(use_enable fontconfig)
|
|
|
|
$(use_enable fribidi)
|
|
|
|
$(use_enable gif image-loader-gif)
|
|
|
|
$(use_enable gstreamer gstreamer1)
|
|
|
|
$(use_enable harfbuzz)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable hyphen)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable ico image-loader-ico)
|
|
|
|
$(use_enable ibus)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable ivi wayland-ivi-shell)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable jpeg2k image-loader-jp2k)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable libuv)
|
|
|
|
$(use_enable !luajit lua-old)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable neon)
|
|
|
|
$(use_enable nls)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable pdf poppler)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(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)
|
2018-03-25 20:36:01 +00:00
|
|
|
--enable-image-loader-png
|
2017-11-04 15:39:46 +00:00
|
|
|
$(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)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable svg librsvg)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable systemd)
|
|
|
|
$(use_enable tga image-loader-tga)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable tgv image-loader-tgv)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable tiff image-loader-tiff)
|
|
|
|
$(use_enable tslib)
|
|
|
|
$(use_enable v4l v4l2)
|
|
|
|
$(use_enable valgrind)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable vlc libvlc)
|
|
|
|
$(use_with vlc generic_vlc)
|
|
|
|
$(use_enable vnc vnc-server)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable wayland)
|
|
|
|
$(use_enable webp image-loader-webp)
|
2018-03-25 20:36:01 +00:00
|
|
|
$(use_enable xcf)
|
2017-11-04 15:39:46 +00:00
|
|
|
$(use_enable xim)
|
|
|
|
$(use_enable xine)
|
|
|
|
$(use_enable xpm image-loader-xpm)
|
|
|
|
--enable-cserve
|
|
|
|
--enable-image-loader-generic
|
|
|
|
--enable-image-loader-jpeg
|
|
|
|
|
|
|
|
--disable-tizen
|
|
|
|
--disable-gesture
|
|
|
|
--disable-gstreamer
|
|
|
|
--enable-xinput2
|
|
|
|
--disable-xinput22
|
|
|
|
--enable-libmount
|
|
|
|
|
2018-03-25 20:36:01 +00:00
|
|
|
# currently no JavaScript engine builds. Therefore:
|
|
|
|
--with-js=none
|
|
|
|
|
2017-11-04 15:39:46 +00:00
|
|
|
# external lz4 support currently broken because of unstable ABI/API
|
|
|
|
#--enable-liblz4
|
|
|
|
)
|
|
|
|
|
2018-03-25 20:36:01 +00:00
|
|
|
use fbcon && use egl && E_ECONF+=('--enable-eglfs')
|
|
|
|
use X && use xpresent && E_ECONF+=("--enable xpresent")
|
|
|
|
|
2017-11-04 15:39:46 +00:00
|
|
|
enlightenment_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2018-03-25 20:36:01 +00:00
|
|
|
if host-is-pax && use luajit ; then
|
2017-11-04 15:39:46 +00:00
|
|
|
# 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
|
|
|
|
enlightenment_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
MAKEOPTS+=" -j1"
|
|
|
|
|
|
|
|
enlightenment_src_install
|
|
|
|
}
|
2018-03-25 20:36:01 +00:00
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
xdg_mimeinfo_database_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
xdg_mimeinfo_database_update
|
|
|
|
}
|