board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / sdl2_image / sdl2_image.mk
blobcf3b738edc5ced97a77bd14d73038d4366183ca7
1 ################################################################################
3 # sdl2_image
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
15 # any dependency.
16 SDL2_IMAGE_CONF_OPTS = \
17 --disable-sdltest \
18 --enable-bmp \
19 --enable-gif \
20 --enable-lbm \
21 --enable-pcx \
22 --enable-pnm \
23 --enable-tga \
24 --enable-xcf \
25 --enable-xpm \
26 --enable-xv
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
33 else
34 SDL2_IMAGE_CONF_OPTS += --disable-jpg
35 endif
37 ifeq ($(BR2_PACKAGE_LIBPNG),y)
38 SDL2_IMAGE_CONF_OPTS += --enable-png
39 SDL2_IMAGE_DEPENDENCIES += libpng
40 else
41 SDL2_IMAGE_CONF_OPTS += --disable-png
42 endif
44 ifeq ($(BR2_PACKAGE_TIFF),y)
45 SDL2_IMAGE_CONF_OPTS += --enable-tif
46 SDL2_IMAGE_DEPENDENCIES += tiff
47 else
48 SDL2_IMAGE_CONF_OPTS += --disable-tif
49 endif
51 ifeq ($(BR2_PACKAGE_WEBP),y)
52 SDL2_IMAGE_CONF_OPTS += --enable-webp
53 SDL2_IMAGE_DEPENDENCIES += webp
54 else
55 SDL2_IMAGE_CONF_OPTS += --disable-webp
56 endif
58 $(eval $(autotools-package))