void-packages/srcpkgs/efl/template

90 lines
3.6 KiB
Bash

# Template file for 'efl'
pkgname=efl
version=1.22.2
revision=2
build_style=gnu-configure
configure_args="CXX= --disable-systemd --enable-liblz4
--enable-multisense --enable-image-loader-webp
$(vopt_enable gstreamer gstreamer1) $(vopt_enable vlc libvlc)
$(vopt_enable framebuffer fb) $(vopt_enable pulseaudio)
$(vopt_enable harfbuzz) $(vopt_if opengl '--with-opengl=full')
$(vopt_if gles2 '--enable-egl --with-opengl=es')
$(vopt_if drm '--enable-drm --enable-elput')
$(vopt_if wayland '--enable-wayland --enable-wayland-ivi-shell')
$(vopt_if x11 '--enable-xinput22 --with-x11=xlib --enable-xpresent')
$(vopt_if elogind '--enable-elput --enable-elogind')"
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
avahi-libs-devel eudev-libudev-devel bullet-devel
alsa-lib-devel libsndfile-devel libmount-devel LuaJIT-devel poppler-cpp-devel
librsvg-devel libspectre-devel libraw-devel
$(vopt_if gstreamer gst-plugins-base1-devel) $(vopt_if opengl MesaLib-devel)
$(vopt_if vlc vlc-devel) $(vopt_if elogind 'elogind-devel libinput-devel libxkbcommon-devel')
$(vopt_if gles2 'libinput-devel libxkbcommon-devel MesaLib-devel')
$(vopt_if wayland 'libxkbcommon-devel wayland-protocols wayland-devel libinput-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 harfbuzz harfbuzz-devel) $(vopt_if pulseaudio pulseaudio-devel)"
short_desc="Enlightenment Foundation Libraries"
maintainer="Orphaned <orphan@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=1699891f825911622de0aa77fe1140eff7335aba619d2352485e54dcff6b1cd0
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="elogind drm framebuffer gles2 gstreamer harfbuzz opengl pulseaudio vlc wayland x11"
desc_option_gst="Enable support for video previews via gstreamer"
desc_option_vlc="Enable support for video previews via VLC"
# Enable gstreamer, harfbuzz, pulseaudio and x11 by default.
build_options_default="gstreamer harfbuzz pulseaudio x11"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*|ppc64*)
# Enable opengl by default on x86/ppc64.
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
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
}
}