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
|
|
|
|
2012-12-24 12:21:51 +01:00
|
|
|
LIBEVAS_VERSION = 1.7.4
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_SOURCE = evas-$(LIBEVAS_VERSION).tar.bz2
|
|
|
|
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
|
2012-02-01 17:34:18 +01:00
|
|
|
HOST_LIBEVAS_CONF_OPT += \
|
|
|
|
--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)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-scale-sample
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-scale-sample
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SCALE_SMOOTH),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-scale-smooth
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-scale-smooth
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SMALL_DITHERING),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-small-dither-mask
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_LINE_DITHERING),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-line-dither-mask
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_NO_DITHERING),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-no-dither-mask
|
|
|
|
endif
|
|
|
|
|
|
|
|
# backends
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_BUFFER),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-buffer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_X11),y)
|
|
|
|
LIBEVAS_CONF_OPT += --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)
|
|
|
|
LIBEVAS_CONF_OPT += --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)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-software-xcb
|
|
|
|
LIBEVAS_DEPENDENCIES += libxcb xcb-proto xcb-util pixman
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_XCB_GLX),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-gl-xcb
|
|
|
|
LIBEVAS_DEPENDENCIES += libxcb xcb-proto xcb-util xproto_glproto
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_FB),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-fb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_DIRECTFB),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-directfb
|
|
|
|
LIBEVAS_DEPENDENCIES += directfb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SDL),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-software-sdl
|
|
|
|
LIBEVAS_DEPENDENCIES += sdl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_SDL_GL),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-gl-sdl
|
|
|
|
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)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-gl-flavor-gles --enable-gles-variety-sgx
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_GLES_S3C6410),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-gl-flavor-gles --enable-gles-variety-s3c6410
|
|
|
|
endif
|
|
|
|
|
|
|
|
# code options
|
2012-07-16 23:37:27 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_MMX),y)
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_CONF_OPT += --enable-cpu-mmx
|
2012-07-16 23:37:27 +02:00
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-cpu-mmx
|
|
|
|
endif
|
2012-01-26 18:42:33 +01:00
|
|
|
|
2012-07-16 23:37:27 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_CONF_OPT += --enable-cpu-sse
|
2012-07-16 23:37:27 +02:00
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-cpu-sse
|
|
|
|
endif
|
2012-01-26 18:42:33 +01:00
|
|
|
|
2012-07-16 23:37:27 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE3),y)
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_CONF_OPT += --enable-cpu-sse3
|
2012-07-16 23:37:27 +02:00
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-cpu-sse3
|
|
|
|
endif
|
2012-01-29 00:21:11 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_CONF_OPT += --enable-cpu-altivec
|
2012-01-30 08:52:52 +01:00
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --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)
|
2012-01-26 18:42:33 +01:00
|
|
|
LIBEVAS_CONF_OPT += --enable-cpu-neon
|
2012-01-30 08:52:52 +01:00
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-cpu-neon
|
2012-01-26 18:42:33 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# loaders
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_PNG),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-png
|
|
|
|
LIBEVAS_DEPENDENCIES += libpng
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-png
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_JPEG),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-jpeg
|
|
|
|
LIBEVAS_DEPENDENCIES += jpeg
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-jpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_GIF),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-gif
|
|
|
|
LIBEVAS_DEPENDENCIES += libungif
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-gif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_PMAPS),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-pmaps
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-pmaps
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_TIFF),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-tiff
|
|
|
|
LIBEVAS_DEPENDENCIES += tiff
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-tiff
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_XPM),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-xpm
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-xpm
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_EET),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-image-loader-eet
|
|
|
|
LIBEVAS_DEPENDENCIES += libeet
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-image-loader-eet
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVAS_EET_FONT),y)
|
|
|
|
LIBEVAS_CONF_OPT += --enable-font-loader-eet
|
|
|
|
LIBEVAS_DEPENDENCIES += libeet
|
|
|
|
else
|
|
|
|
LIBEVAS_CONF_OPT += --disable-font-loader-eet
|
|
|
|
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))
|