2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-26 18:42:33 +01:00
|
|
|
#
|
|
|
|
# libevas
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-01-26 18:42:33 +01:00
|
|
|
|
2013-07-07 17:07:22 +02:00
|
|
|
LIBEVAS_VERSION = $(EFL_VERSION)
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_SOURCE = evas-$(LIBEVAS_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBEVAS_SITE = http://download.enlightenment.org/releases
|
2012-11-30 12:46:28 +01:00
|
|
|
LIBEVAS_LICENSE = BSD-2c
|
|
|
|
LIBEVAS_LICENSE_FILES = COPYING
|
|
|
|
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_INSTALL_STAGING = YES
|
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBEVAS_DEPENDENCIES = host-pkgconf zlib libeina freetype
|
2012-01-26 18:42:33 +01:00
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
HOST_LIBEVAS_DEPENDENCIES = host-pkgconf host-zlib host-libeina \
|
2013-03-07 11:18:34 +01:00
|
|
|
host-freetype host-libpng host-libjpeg
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_LIBEVAS_CONF_OPTS += \
|
2012-02-01 17:34:18 +01:00
|
|
|
--enable-image-loader-png \
|
|
|
|
--enable-image-loader-jpeg \
|
|
|
|
--disable-image-loader-gif \
|
|
|
|
--disable-image-loader-tiff \
|
|
|
|
--disable-image-loader-eet \
|
|
|
|
--disable-font-loader-eet \
|
|
|
|
--disable-cpu-sse3 \
|
|
|
|
--disable-software-sdl \
|
|
|
|
--disable-gl-sdl \
|
|
|
|
--disable-software-xlib \
|
|
|
|
--disable-gl-xlib \
|
|
|
|
--enable-software-xcb \
|
|
|
|
--disable-gl-xcb
|
2012-01-26 18:42:33 +01:00
|
|
|
|
|
|
|
# rendering options
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SCALE_SAMPLE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-scale-sample
|
2012-01-26 18:42:33 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-scale-sample
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SCALE_SMOOTH),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-scale-smooth
|
2012-01-26 18:42:33 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-scale-smooth
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SMALL_DITHERING),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-small-dither-mask
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_LINE_DITHERING),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-line-dither-mask
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_NO_DITHERING),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-no-dither-mask
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# backends
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_BUFFER),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-buffer
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_X11),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-software-xlib
|
2012-12-28 16:35:44 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += xlib_libX11 xlib_libXext
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_X11_GLX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-gl-xlib
|
2012-02-07 23:13:25 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += xproto_glproto xlib_libX11 xlib_libXrender \
|
|
|
|
xlib_libXext libeet
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_XCB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-software-xcb
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += libxcb xcb-proto xcb-util pixman
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_XCB_GLX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-gl-xcb
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += libxcb xcb-proto xcb-util xproto_glproto
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_FB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-fb
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_DIRECTFB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-directfb
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += directfb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SDL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-software-sdl
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += sdl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SDL_GL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-gl-sdl
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += sdl
|
2012-02-08 14:30:06 +01:00
|
|
|
# configure script forgets to check for eet / fill this out
|
|
|
|
LIBEVAS_CONF_ENV += \
|
|
|
|
GL_EET_CFLAGS='-I$(STAGING_DIR)/usr/include/eet-1' \
|
|
|
|
GL_EET_LIBS='-leet'
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
2012-02-07 23:19:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_GL),y)
|
2012-02-08 14:30:06 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += mesa3d libeet
|
2012-02-07 23:19:21 +01:00
|
|
|
endif
|
|
|
|
|
2012-01-26 18:42:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_GLES_SGX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-gl-flavor-gles --enable-gles-variety-sgx
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_GLES_S3C6410),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-gl-flavor-gles --enable-gles-variety-s3c6410
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# code options
|
2012-07-16 23:37:27 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-cpu-mmx
|
2012-07-16 23:37:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-cpu-mmx
|
2012-07-16 23:37:27 +02:00
|
|
|
endif
|
2012-01-26 18:42:33 +01:00
|
|
|
|
2012-07-16 23:37:27 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-cpu-sse
|
2012-07-16 23:37:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-cpu-sse
|
2012-07-16 23:37:27 +02:00
|
|
|
endif
|
2012-01-26 18:42:33 +01:00
|
|
|
|
2012-07-16 23:37:27 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE3),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-cpu-sse3
|
2012-07-16 23:37:27 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-cpu-sse3
|
2012-07-16 23:37:27 +02:00
|
|
|
endif
|
2012-01-29 00:21:11 +01:00
|
|
|
|
2014-05-13 07:28:17 +02:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-cpu-altivec
|
2012-01-30 08:52:52 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-cpu-altivec
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-13 23:25:30 +01:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-cpu-neon
|
2012-01-30 08:52:52 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-cpu-neon
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# loaders
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_PNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-png
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-png
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_JPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-jpeg
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += jpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-jpeg
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_GIF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-gif
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += libungif
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-gif
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_PMAPS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-pmaps
|
2012-01-26 18:42:33 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-pmaps
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_TIFF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-tiff
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += tiff
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-tiff
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_XPM),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-xpm
|
2012-01-26 18:42:33 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-xpm
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_EET),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-image-loader-eet
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += libeet
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-image-loader-eet
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_EET_FONT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --enable-font-loader-eet
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_DEPENDENCIES += libeet
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBEVAS_CONF_OPTS += --disable-font-loader-eet
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-28 18:02:58 +01:00
|
|
|
# libevas installs the source code of examples on the target, which
|
|
|
|
# are generally not useful.
|
|
|
|
define LIBEVAS_REMOVE_EXAMPLES
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/evas/examples/
|
|
|
|
endef
|
|
|
|
|
|
|
|
LIBEVAS_POST_INSTALL_TARGET_HOOKS += LIBEVAS_REMOVE_EXAMPLES
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|