2013-12-02 14:41:04 +01:00
|
|
|
# Template file for 'efl'
|
|
|
|
pkgname=efl
|
2015-06-05 09:45:10 +02:00
|
|
|
version=1.14.1
|
2015-04-03 08:46:42 +02:00
|
|
|
revision=1
|
2013-12-02 14:41:04 +01:00
|
|
|
build_style=gnu-configure
|
2014-11-27 09:02:53 +01:00
|
|
|
configure_args="CXX= --enable-multisense --enable-image-loader-webp
|
|
|
|
$(vopt_enable fb) $(vopt_enable harfbuzz) $(vopt_enable pulseaudio)
|
|
|
|
$(vopt_enable systemd)"
|
2013-12-02 14:41:04 +01:00
|
|
|
hostmakedepends="pkg-config"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="libressl-devel glib-devel libjpeg-turbo-devel fontconfig-devel
|
|
|
|
fribidi-devel giflib-devel libpng-devel tiff-devel libwebp-devel
|
2014-05-23 19:19:22 +02:00
|
|
|
gst-plugins-base1-devel avahi-libs-devel libudev-devel bullet-devel
|
2014-11-27 09:02:53 +01:00
|
|
|
alsa-lib-devel libsndfile-devel libmount-devel LuaJIT-devel
|
|
|
|
$(vopt_if harfbuzz harfbuzz-devel) $(vopt_if pulseaudio pulseaudio-devel)
|
|
|
|
$(vopt_if systemd systemd-devel)"
|
2013-12-02 14:41:04 +01:00
|
|
|
homepage="http://enlightenment.org"
|
|
|
|
short_desc="Enlightenment Foundation Libraries"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-12-02 14:41:04 +01:00
|
|
|
license="BSD"
|
|
|
|
distfiles="http://download.enlightenment.org/rel/libs/efl/efl-${version}.tar.gz"
|
2015-06-05 09:45:10 +02:00
|
|
|
checksum=4e7e69c52c4fa6801e271f30bb4fb41fd62abfe1c9a874f502ca077e2d26329b
|
2013-12-18 10:46:07 +01:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-03-27 10:50:40 +01:00
|
|
|
hostmakedepends+=" automake gettext-devel libtool efl-devel"
|
2014-07-24 18:15:09 +02:00
|
|
|
configure_args+=" --with-eolian-cxx=/usr/bin/eolian_cxx"
|
|
|
|
configure_args+=" --with-eolian-gen=/usr/bin/eolian_gen"
|
2013-12-18 10:46:07 +01:00
|
|
|
configure_args+=" --with-bin-edje-cc=/usr/bin/edje_cc"
|
2014-11-11 12:14:29 +01:00
|
|
|
configure_args+=" --with-bin-elua=/usr/bin/elua"
|
2013-12-18 10:46:07 +01:00
|
|
|
pre_configure() {
|
2014-09-04 02:23:27 +02:00
|
|
|
autoreconf -fi
|
2013-12-18 10:46:07 +01:00
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Package build options
|
2014-05-23 19:19:22 +02:00
|
|
|
build_options="framebuffer gles2 harfbuzz opengl pulseaudio systemd wayland x11"
|
2014-07-24 17:21:05 +02:00
|
|
|
# Enable harfbuzz, pulseaudio, wayland and x11 by default.
|
2015-02-09 18:43:59 +01:00
|
|
|
build_options_default="harfbuzz pulseaudio x11 wayland"
|
2013-12-18 10:46:07 +01:00
|
|
|
|
2014-07-24 18:15:09 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*|x86_64*)
|
2014-10-22 16:44:17 +02:00
|
|
|
# Enable gles2 by default on x86.
|
2014-11-11 11:34:00 +01:00
|
|
|
build_options_default+=" opengl"
|
2014-07-24 18:15:09 +02:00
|
|
|
;;
|
|
|
|
armv6l*)
|
|
|
|
# Disable neon.
|
|
|
|
configure_args+=" --disable-neon"
|
|
|
|
;;
|
2014-07-24 18:30:53 +02:00
|
|
|
armv7l*)
|
|
|
|
# Force NEON instructions.
|
|
|
|
CFLAGS+=" -mfpu=neon"
|
|
|
|
;;
|
2014-07-24 18:15:09 +02:00
|
|
|
esac
|
2013-12-18 10:46:07 +01:00
|
|
|
|
|
|
|
if [ "$build_option_opengl" ]; then
|
2015-02-09 19:08:52 +01:00
|
|
|
configure_args+=" --with-opengl=full"
|
2013-12-18 10:46:07 +01:00
|
|
|
makedepends+=" MesaLib-devel"
|
|
|
|
elif [ "$build_option_gles2" ]; then
|
|
|
|
configure_args+=" --with-opengl=es"
|
2013-12-21 17:59:51 +01:00
|
|
|
makedepends+=" MesaLib-devel"
|
2013-12-18 10:46:07 +01:00
|
|
|
else
|
|
|
|
configure_args+=" --with-opengl=none"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_wayland" ]; then
|
2015-02-09 18:43:59 +01:00
|
|
|
configure_args+=" --enable-egl --enable-wayland --enable-wayland-ivi-shell"
|
|
|
|
makedepends+=" libxkbcommon-devel wayland-devel libinput-devel"
|
2013-12-18 10:46:07 +01:00
|
|
|
else
|
2014-05-18 16:54:47 +02:00
|
|
|
configure_args+=" --disable-egl --disable-wayland"
|
2013-12-18 10:46:07 +01:00
|
|
|
fi
|
|
|
|
|
2014-05-23 19:19:22 +02:00
|
|
|
if [ "$build_option_x11" ]; then
|
2014-05-23 19:29:00 +02:00
|
|
|
configure_args+=" --with-x --enable-xinput22 --with-x11=xlib"
|
2014-07-24 18:15:09 +02:00
|
|
|
makedepends+=" libXcomposite-devel libXcursor-devel libXp-devel"
|
|
|
|
makedepends+=" libXrandr-devel libXScrnSaver-devel"
|
2014-05-23 19:19:22 +02:00
|
|
|
makedepends+=" libXdamage-devel libXrender-devel libXi-devel libXinerama-devel"
|
|
|
|
makedepends+=" xcb-util-devel xcb-util-keysyms-devel xcb-util-image-devel"
|
2014-05-23 19:29:00 +02:00
|
|
|
makedepends+=" xcb-util-renderutil-devel xcb-util-wm-devel printproto"
|
2014-05-23 19:19:22 +02:00
|
|
|
else
|
|
|
|
configure_args+=" --without-x --with-x11=none"
|
|
|
|
fi
|
|
|
|
|
2013-12-02 14:41:04 +01:00
|
|
|
efl-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2013-12-02 16:22:35 +01:00
|
|
|
depends="${makedepends} efl>=${version}_${revision}"
|
2013-12-02 14:41:04 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/lib/cmake
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|