# Template file for 'efl' pkgname=efl version=1.9.5 revision=1 build_style=gnu-configure configure_args="--enable-multisense --enable-image-loader-webp CXX=" hostmakedepends="pkg-config" makedepends="openssl-devel glib-devel libjpeg-turbo-devel fontconfig-devel fribidi-devel giflib-devel libpng-devel tiff-devel libwebp-devel>=0.4.0 gst-plugins-base1-devel avahi-libs-devel libudev-devel bullet-devel alsa-lib-devel libsndfile-devel libmount-devel LuaJIT-devel" replaces=" ecore>=0 evas>=0 edje>=0 eio>=0 eina>=0 emotion>=0 eeze>=0 e_dbus>=0 eet>=0 embryo>=0 efreet>=0 ethumb>=0" homepage="http://enlightenment.org" short_desc="Enlightenment Foundation Libraries" maintainer="Juan RP " license="BSD" distfiles="http://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.gz" checksum=a2d79a3638acb04d539cd554452e59f472bdbb2c79670a996c7aff50e9c7c7f2 if [ "$CROSS_BUILD" ]; then # XXX needs host edje_cc hostmakedepends+=" automake gettext-devel libtool efl>=1.8" configure_args+=" --with-bin-edje-cc=/usr/bin/edje_cc" pre_configure() { autoreconf -fi } fi # Package build options build_options="framebuffer gles2 harfbuzz opengl pulseaudio systemd wayland x11" # Enable harfbuzz, pulseaudio, systemd and wayland by default. build_options_default="harfbuzz pulseaudio systemd wayland x11" if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then # Enable opengl by default on x86. build_options_default+=" opengl" fi if [ "$build_option_fb" ]; then configure_args+=" --enable-fb" else configure_args+=" --disable-fb" fi if [ "$build_option_harfbuzz" ]; then configure_args+=" --enable-harfbuzz" makedepends+=" harfbuzz-devel" else configure_args+=" --disable-harfbuzz" fi if [ "$build_option_opengl" ]; then configure_args+=" --enable-drm --with-opengl=full" makedepends+=" MesaLib-devel" elif [ "$build_option_gles2" ]; then configure_args+=" --with-opengl=es" makedepends+=" MesaLib-devel" else configure_args+=" --with-opengl=none" fi if [ "$build_option_pulseaudio" ]; then configure_args+=" --enable-pulseaudio" makedepends+=" pulseaudio-devel" else configure_args+=" --disable-pulseaudio" fi if [ "$build_option_systemd" ]; then configure_args+=" --enable-systemd" makedepends+=" systemd-devel" else configure_args+=" --disable-systemd" fi if [ "$build_option_wayland" ]; then configure_args+=" --enable-egl --enable-wayland" makedepends+=" libxkbcommon-devel wayland-devel" else configure_args+=" --disable-egl --disable-wayland" fi if [ "$build_option_x11" ]; then configure_args+=" --with-x --enable-xinput22 --with-x11=xlib" makedepends+=" libXcomposite-devel libXcursor-devel libXp-devel libXrandr-devel libXScrnSaver-devel" makedepends+=" libXdamage-devel libXrender-devel libXi-devel libXinerama-devel" makedepends+=" xcb-util-devel xcb-util-keysyms-devel xcb-util-image-devel" makedepends+=" xcb-util-renderutil-devel xcb-util-wm-devel printproto" else configure_args+=" --without-x --with-x11=none" fi efl-devel_package() { short_desc+=" - development files" depends="${makedepends} efl>=${version}_${revision}" replaces=" ecore-devel>=0 evas-devel>=0 edje-devel>=0 eio-devel>=0 emotion-devel>=0 e_dbus-devel>=0 eet-devel>=0 eina-devel>=0 efreet-devel>=0 embryo-devel>=0 ethumb-devel>=0 eeze-devel>=0" pkg_install() { vmove usr/include vmove "usr/lib/*.so" vmove usr/lib/cmake vmove usr/lib/pkgconfig } }