2013-12-02 13:41:04 +00:00
|
|
|
# Template file for 'efl'
|
|
|
|
pkgname=efl
|
2014-05-18 14:47:39 +00:00
|
|
|
version=1.9.4
|
2014-03-31 14:15:45 +00:00
|
|
|
revision=1
|
2013-12-02 13:41:04 +00:00
|
|
|
build_style=gnu-configure
|
2014-05-18 14:54:47 +00:00
|
|
|
configure_args="--enable-xinput22 --enable-multisense
|
2014-05-18 14:47:39 +00:00
|
|
|
--enable-image-loader-webp --enable-drm CXX="
|
2013-12-02 13:41:04 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2014-05-18 14:54:47 +00:00
|
|
|
makedepends="openssl-devel glib-devel libXdamage-devel
|
2013-12-02 13:41:04 +00:00
|
|
|
libjpeg-turbo-devel fontconfig-devel fribidi-devel libXrender-devel libXi-devel
|
2014-05-18 15:29:09 +00:00
|
|
|
giflib-devel libpng-devel tiff-devel libwebp-devel>=0.4.0 gst-plugins-base1-devel
|
2013-12-18 09:46:07 +00:00
|
|
|
alsa-lib-devel alsa-lib-devel libsndfile-devel libXcursor-devel libXcomposite-devel
|
2013-12-02 13:41:04 +00:00
|
|
|
libXinerama-devel xcb-util-devel xcb-util-keysyms-devel xcb-util-image-devel
|
|
|
|
xcb-util-renderutil-devel xcb-util-wm-devel pixman-devel libxkbcommon-devel
|
2014-05-18 14:47:39 +00:00
|
|
|
printproto libXp-devel libXrandr-devel libXScrnSaver-devel libmount-devel
|
2014-05-18 15:29:09 +00:00
|
|
|
LuaJIT-devel bullet-devel avahi-libs-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
replaces="
|
|
|
|
ecore>=0 evas>=0 edje>=0 eio>=0 eina>=0 emotion>=0 eeze>=0 e_dbus>=0 eet>=0
|
|
|
|
embryo>=0 efreet>=0 ethumb>=0"
|
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-05-18 14:47:39 +00:00
|
|
|
checksum=b19d17e115063820a14cc05e74f1fb32c75392032e395aa86f2dcc78e8efbca3
|
2013-12-18 09:46:07 +00:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX needs host edje_cc
|
|
|
|
hostmakedepends+=" automake gettext-devel libtool efl>=1.8"
|
|
|
|
configure_args+=" --with-bin-edje-cc=/usr/bin/edje_cc"
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Package build options
|
2014-05-18 14:54:47 +00:00
|
|
|
build_options="framebuffer gles2 harfbuzz opengl pulseaudio systemd wayland"
|
2013-12-18 09:46:07 +00:00
|
|
|
desc_option_framebuffer="Enable support for the Framebuffer"
|
|
|
|
desc_option_gles2="Enable support for GLESv2"
|
|
|
|
desc_option_harfbuzz="enable support for Harfbuzz"
|
|
|
|
desc_option_opengl="Enable support for OpenGL"
|
|
|
|
desc_option_pulseaudio="Enable support for Pulseaudio"
|
2014-05-18 14:54:47 +00:00
|
|
|
desc_option_systemd="Enable support for systemd"
|
2013-12-18 09:46:07 +00:00
|
|
|
desc_option_wayland="Enable support for Wayland"
|
|
|
|
|
2014-05-18 14:54:47 +00:00
|
|
|
# Enable harfbuzz, pulseaudio, systemd and wayland by default.
|
|
|
|
build_options_default="harfbuzz pulseaudio systemd wayland"
|
2013-12-18 09:46:07 +00:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
# Enable opengl by default on x86.
|
|
|
|
build_options_default+=" opengl"
|
|
|
|
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
|
|
|
|
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"
|
2013-12-18 09:46:07 +00: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 14:54:47 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
configure_args+=" --enable-systemd"
|
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-systemd"
|
|
|
|
fi
|
|
|
|
|
2013-12-18 09:46:07 +00:00
|
|
|
if [ "$build_option_wayland" ]; then
|
2014-05-18 14:54:47 +00:00
|
|
|
configure_args+=" --enable-egl --enable-wayland"
|
2013-12-18 09:46:07 +00:00
|
|
|
makedepends+=" wayland-devel"
|
|
|
|
else
|
2014-05-18 14:54:47 +00:00
|
|
|
configure_args+=" --disable-egl --disable-wayland"
|
2013-12-18 09:46:07 +00:00
|
|
|
fi
|
|
|
|
|
2013-12-02 13:41:04 +00:00
|
|
|
efl-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2013-12-02 15:22:35 +00:00
|
|
|
depends="${makedepends} efl>=${version}_${revision}"
|
2013-12-18 09:46:07 +00:00
|
|
|
replaces="
|
|
|
|
ecore-devel>=0
|
|
|
|
evas-devel>=0
|
|
|
|
edje-devel>=0
|
|
|
|
eio-devel>=0
|
|
|
|
emotion-devel>=0
|
|
|
|
e_dbus-devel>=0
|
|
|
|
eet-devel>=0
|
|
|
|
eina-devel>=0
|
|
|
|
efreet-devel>=0
|
|
|
|
embryo-devel>=0
|
|
|
|
ethumb-devel>=0
|
|
|
|
eeze-devel>=0"
|
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
|
|
|
|
}
|
|
|
|
}
|