void-packages/srcpkgs/efl/template

114 lines
3.2 KiB
Text
Raw Normal View History

2013-12-02 13:41:04 +00:00
# Template file for 'efl'
pkgname=efl
2014-09-13 04:37:47 +00:00
version=1.11.2
2014-08-27 05:12:22 +00:00
revision=1
2013-12-02 13:41:04 +00:00
build_style=gnu-configure
configure_args="--enable-multisense --enable-image-loader-webp CXX="
2013-12-02 13:41:04 +00:00
hostmakedepends="pkg-config"
2014-07-14 14:48:46 +00:00
makedepends="libressl-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"
2013-12-02 13:41:04 +00:00
homepage="http://enlightenment.org"
short_desc="Enlightenment Foundation Libraries"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
distfiles="http://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.gz"
2014-09-13 04:37:47 +00:00
checksum=f3cc1cd2a77df114a7b76a7e77bc77e88c367ec49462047fca209ee622cb7288
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" automake gettext-devel libtool efl>=${version}"
2014-07-24 16:15:09 +00:00
configure_args+=" --with-eolian-cxx=/usr/bin/eolian_cxx"
configure_args+=" --with-eolian-gen=/usr/bin/eolian_gen"
configure_args+=" --with-bin-edje-cc=/usr/bin/edje_cc"
pre_configure() {
2014-09-04 00:23:27 +00:00
autoreconf -fi
}
fi
# Package build options
build_options="framebuffer gles2 harfbuzz opengl pulseaudio systemd wayland x11"
# Enable harfbuzz, pulseaudio, wayland and x11 by default.
build_options_default="harfbuzz pulseaudio wayland x11"
2014-07-24 16:15:09 +00:00
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
# Enable opengl by default on x86.
build_options_default+=" opengl"
2014-07-24 16:15:09 +00:00
;;
armv6l*)
# Disable neon.
configure_args+=" --disable-neon"
;;
2014-07-24 16:30:53 +00:00
armv7l*)
# Force NEON instructions.
CFLAGS+=" -mfpu=neon"
;;
2014-07-24 16:15:09 +00:00
esac
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
2014-09-03 23:29:50 +00:00
configure_args+=" --with-opengl=full"
makedepends+=" MesaLib-devel"
elif [ "$build_option_gles2" ]; then
configure_args+=" --with-opengl=es"
2013-12-21 16:59:51 +00:00
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"
2014-07-24 16:15:09 +00:00
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 printproto"
else
configure_args+=" --without-x --with-x11=none"
fi
2013-12-02 13:41:04 +00:00
efl-devel_package() {
short_desc+=" - development files"
depends="${makedepends} efl>=${version}_${revision}"
2013-12-02 13:41:04 +00:00
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}