# Template file for 'efl' pkgname=efl version=1.23.1 revision=1 build_style=meson configure_args=" -Dsystemd=false -Dopengl=$(vopt_if opengl full $(vopt_if gles2 es-egl none)) -Dembedded-lz4=false -Dcrypto=openssl -Dnetwork-backend=none -Devas-loaders-disabler=[] -Decore-imf-loaders-disabler=scim -Demotion-loaders-disabler=$(vopt_if gstreamer '' gstreamer1,)$(vopt_if vlc '' libvlc,)gstreamer,xine -Demotion-generic-loaders-disabler=vlc $(vopt_bool elogind elogind) $(vopt_bool x11 x11) $(vopt_bool x11 xpresent) $(vopt_bool x11 xinput2) $(vopt_bool x11 xinput22) $(vopt_bool framebuffer fb) $(vopt_bool wayland wl) $(vopt_bool drm drm) $(vopt_bool gstreamer gstreamer) $(vopt_bool pulseaudio pulseaudio) $(vopt_bool harfbuzz harfbuzz) $(vopt_bool simd native-arch-optimization)" hostmakedepends="pkg-config" makedepends=" gettext-devel libressl-devel liblz4-devel glib-devel ibus-devel fontconfig-devel fribidi-devel $(vopt_if harfbuzz harfbuzz-devel) libjpeg-turbo-devel libpng-devel giflib-devel tiff-devel libwebp-devel rlottie-devel avahi-libs-devel eudev-libudev-devel bullet-devel libsndfile-devel libmount-devel LuaJIT-devel poppler-cpp-devel librsvg-devel libspectre-devel libraw-devel $(vopt_if drm 'libdrm-devel libinput-devel libxkbcommon-devel') $(vopt_if elogind elogind-devel) $(vopt_if gstreamer gst-plugins-base1-devel) $(vopt_if opengl MesaLib-devel) $(vopt_if gles2 MesaLib-devel) $(vopt_if vlc vlc-devel) $(vopt_if wayland 'wayland-protocols wayland-devel') $(vopt_if x11 'libXcomposite-devel libXcursor-devel libXp-devel libXrandr-devel libXScrnSaver-devel libXdamage-devel libXrender-devel libXi-devel libXinerama-devel libXpresent-devel xcb-util-devel xcb-util-keysyms-devel xcb-util-image-devel xcb-util-renderutil-devel xcb-util-wm-devel xorgproto') $(vopt_if pulseaudio pulseaudio-devel)" short_desc="Enlightenment Foundation Libraries" maintainer="q66 " license="LGPL-2.1-only" homepage="https://enlightenment.org" changelog="https://git.enlightenment.org/core/efl.git/plain/NEWS" distfiles="https://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.xz" checksum=d62220cca16d434c18b36fe3acffa0f5c0e669da4931b133524183308f242f61 if [ "$XBPS_CHECK_PKGS" ]; then configure_args+=" -Dbuild-tests=true" hostmakedepends+=" check-devel" else configure_args+=" -Dbuild-tests=false" fi if [ "$CROSS_BUILD" ]; then hostmakedepends+=" gettext-devel efl-devel" fi # sanitize options if [ -n "$build_option_wayland" -a -z "$build_option_drm" ]; then broken="wayland requires drm" fi build_options="elogind harfbuzz pulseaudio gstreamer vlc x11 wayland opengl gles2 drm framebuffer simd" build_options_default="elogind harfbuzz pulseaudio gstreamer x11 wayland drm" desc_option_simd="Enable support for SSE3/NEON/AltiVec" desc_option_vlc="Enable support for VLC multimedia backend" # OpenGL acceleration support case "$XBPS_TARGET_MACHINE" in i686*|x86_64*|ppc*) # Enable desktop OpenGL on x86/ppc systems build_options_default+=" opengl" ;; aarch64*|armv7l*) # Enable OpenGL ES on modern ARM systems build_options_default+=" gles2" ;; esac # Architecture optimizations case "$XBPS_TARGET_MACHINE" in aarch64*|ppc64*) # Enable NEON (ARM) or AltiVec (PowerPC) build_options_default+=" simd" ;; *) # Do not enable on x86 because it requires SSE3 # Do not enable on 32-bit ARM by default either ;; esac efl-devel_package() { short_desc+=" - development files" depends="${makedepends} efl>=${version}_${revision}" pkg_install() { vmove usr/include vmove "usr/lib/*.so" vmove usr/lib/cmake vmove usr/lib/pkgconfig } }