1 ################################################################################
5 ################################################################################
7 SDL2_IMAGE_VERSION
= 2.0.1
8 SDL2_IMAGE_SOURCE
= SDL2_image-
$(SDL2_IMAGE_VERSION
).
tar.gz
9 SDL2_IMAGE_SITE
= http
://www.libsdl.org
/projects
/SDL_image
/release
10 SDL2_IMAGE_INSTALL_STAGING
= YES
11 SDL2_IMAGE_LICENSE
= zlib
12 SDL2_IMAGE_LICENSE_FILES
= COPYING.txt
14 # Unconditionally enable support for image formats that don't require
16 SDL2_IMAGE_CONF_OPTS
= \
28 SDL2_IMAGE_DEPENDENCIES
= sdl2 host-pkgconf
30 ifeq ($(BR2_PACKAGE_JPEG
),y
)
31 SDL2_IMAGE_CONF_OPTS
+= --enable-jpg
32 SDL2_IMAGE_DEPENDENCIES
+= jpeg
34 SDL2_IMAGE_CONF_OPTS
+= --disable-jpg
37 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
38 SDL2_IMAGE_CONF_OPTS
+= --enable-png
39 SDL2_IMAGE_DEPENDENCIES
+= libpng
41 SDL2_IMAGE_CONF_OPTS
+= --disable-png
44 ifeq ($(BR2_PACKAGE_TIFF
),y
)
45 SDL2_IMAGE_CONF_OPTS
+= --enable-tif
46 SDL2_IMAGE_DEPENDENCIES
+= tiff
48 SDL2_IMAGE_CONF_OPTS
+= --disable-tif
51 ifeq ($(BR2_PACKAGE_WEBP
),y
)
52 SDL2_IMAGE_CONF_OPTS
+= --enable-webp
53 SDL2_IMAGE_DEPENDENCIES
+= webp
55 SDL2_IMAGE_CONF_OPTS
+= --disable-webp
58 $(eval
$(autotools-package
))