2013-12-02 14:41:04 +01:00
|
|
|
# Template file for 'efl'
|
|
|
|
pkgname=efl
|
2014-07-24 17:21:05 +02:00
|
|
|
version=1.10.2
|
|
|
|
revision=1
|
2013-12-02 14:41:04 +01:00
|
|
|
build_style=gnu-configure
|
2014-05-23 19:29:00 +02:00
|
|
|
configure_args="--enable-multisense --enable-image-loader-webp CXX="
|
2013-12-02 14:41:04 +01:00
|
|
|
hostmakedepends="pkg-config"
|
2014-07-14 16:48:46 +02:00
|
|
|
makedepends="libressl-devel glib-devel libjpeg-turbo-devel fontconfig-devel
|
2014-05-23 19:19:22 +02:00
|
|
|
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 14:41:04 +01: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-07-24 17:21:05 +02:00
|
|
|
checksum=44acf012f0dd3b0c01bb2c5e53231076d7ed463166f581d22ef441b127e8c85f
|
2013-12-18 10:46:07 +01:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX needs host edje_cc
|
2014-07-24 17:21:05 +02:00
|
|
|
hostmakedepends+=" automake gettext-devel libtool efl>=1.10"
|
2013-12-18 10:46:07 +01:00
|
|
|
configure_args+=" --with-bin-edje-cc=/usr/bin/edje_cc"
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
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.
|
|
|
|
build_options_default="harfbuzz pulseaudio wayland x11"
|
2013-12-18 10:46:07 +01:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2014-07-24 17:21:05 +02:00
|
|
|
# Enable gles2 by default on x86.
|
|
|
|
build_options_default+=" gles2"
|
2013-12-18 10:46:07 +01:00
|
|
|
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
|
2014-05-18 17:33:10 +02:00
|
|
|
configure_args+=" --enable-drm --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_pulseaudio" ]; then
|
|
|
|
configure_args+=" --enable-pulseaudio"
|
|
|
|
makedepends+=" pulseaudio-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-pulseaudio"
|
|
|
|
fi
|
|
|
|
|
2014-05-18 16:54:47 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
configure_args+=" --enable-systemd"
|
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-systemd"
|
|
|
|
fi
|
|
|
|
|
2013-12-18 10:46:07 +01:00
|
|
|
if [ "$build_option_wayland" ]; then
|
2014-05-18 16:54:47 +02:00
|
|
|
configure_args+=" --enable-egl --enable-wayland"
|
2014-05-23 19:19:22 +02:00
|
|
|
makedepends+=" libxkbcommon-devel wayland-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"
|
|
|
|
makedepends+=" libXcomposite-devel libXcursor-devel libXp-devel 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
|
|
|
|
}
|
|
|
|
}
|