100 lines
3.5 KiB
Bash
100 lines
3.5 KiB
Bash
# Template file for 'efl'
|
|
pkgname=efl
|
|
version=1.22.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="CXX= --enable-multisense --enable-image-loader-webp --enable-liblz4
|
|
--disable-systemd $(vopt_enable framebuffer fb) $(vopt_enable pulseaudio)
|
|
$(vopt_enable harfbuzz)"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="liblz4-devel libressl-devel glib-devel libjpeg-turbo-devel fontconfig-devel
|
|
fribidi-devel giflib-devel libpng-devel tiff-devel libwebp-devel
|
|
gst-plugins-base1-devel avahi-libs-devel eudev-libudev-devel bullet-devel
|
|
alsa-lib-devel libsndfile-devel libmount-devel LuaJIT-devel poppler-cpp-devel
|
|
librsvg-devel vlc-devel libspectre-devel libraw-devel
|
|
$(vopt_if harfbuzz harfbuzz-devel) $(vopt_if pulseaudio pulseaudio-devel)"
|
|
short_desc="Enlightenment Foundation Libraries"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="http://enlightenment.org"
|
|
changelog="https://raw.githubusercontent.com/Enlightenment/efl/master/NEWS"
|
|
distfiles="http://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.xz"
|
|
checksum=6ac87450cb55a5948c550dbeb05464f5fc1b0616c52dcb1cb2efbda73999c8ef
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" automake gettext-devel libtool efl-devel"
|
|
configure_args+=" --with-eolian-cxx=/usr/bin/eolian_cxx"
|
|
configure_args+=" --with-eolian-gen=/usr/bin/eolian_gen"
|
|
configure_args+=" --with-edje-cc=/usr/bin/edje_cc"
|
|
configure_args+=" --with-elua=/usr/bin/elua"
|
|
configure_args+=" --with-eet-eet=/usr/bin/eet"
|
|
configure_args+=" --with-eldbus_codegen=/usr/bin/eldbus_codegen"
|
|
configure_args+=" --with-elementary-codegen=/usr/bin/elementary_codegen"
|
|
configure_args+=" --with-elm-prefs-cc=/usr/bin/elm_prefs_cc"
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
fi
|
|
|
|
# Package build options
|
|
build_options="framebuffer gles2 harfbuzz opengl pulseaudio wayland x11"
|
|
# Enable harfbuzz, pulseaudio and x11 by default.
|
|
build_options_default="harfbuzz pulseaudio x11"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*|ppc64*)
|
|
# Enable gles2 by default on x86.
|
|
build_options_default+=" opengl"
|
|
;;
|
|
armv6l*)
|
|
# Disable neon.
|
|
configure_args+=" --disable-neon"
|
|
;;
|
|
armv7l*)
|
|
# XXX disable neon... the code is utterly broken.
|
|
configure_args+=" --disable-neon"
|
|
;;
|
|
aarch64*)
|
|
broken="lt-edje_cc: Critical. Compiling script code not clean."
|
|
;;
|
|
esac
|
|
|
|
if [ "$build_option_opengl" ]; then
|
|
configure_args+=" --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_wayland" ]; then
|
|
configure_args+=" --enable-egl --enable-wayland --enable-wayland-ivi-shell"
|
|
makedepends+=" libxkbcommon-devel wayland-devel libinput-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"
|
|
makedepends+=" 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 xorgproto"
|
|
else
|
|
configure_args+=" --without-x --with-x11=none"
|
|
fi
|
|
|
|
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
|
|
}
|
|
}
|