kumquat-buildroot/package/sdl_image/sdl_image.mk
Baruch Siach 883f066797 SDL_image: fix runtime libjpeg failure
By default SDL_image loads libjpeg at runtime on-demand. The find_lib
routine in the configure script of SDL_image searches the /usr/lib directory
of the host machine to find the file name of the jpeg library.

When the host on which Buildroot is being built contains newer version of
libjpeg (e.g.  libjpeg7), the configure script incorrectly uses its file
name. The result is a runtime failure to load libjpeg.

Fix this by disabling runtime load of libjpeg.

[Peter: disable for png+tiff as well]

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-11-23 23:05:23 +01:00

39 lines
1.5 KiB
Makefile

#############################################################
#
# SDL_image addon for SDL
#
#############################################################
SDL_IMAGE_VERSION:=1.2.6
SDL_IMAGE_SOURCE:=SDL_image-$(SDL_IMAGE_VERSION).tar.gz
SDL_IMAGE_SITE:=http://www.libsdl.org/projects/SDL_image/release
SDL_IMAGE_LIBTOOL_PATCH:=NO
SDL_IMAGE_INSTALL_STAGING:=YES
SDL_IMAGE_INSTALL_TARGET:=YES
SDL_IMAGE_CONF_OPT:=--with-sdl-prefix=$(STAGING_DIR)/usr \
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
--disable-sdltest \
--disable-static \
--disable-jpg-shared \
--disable-png-shared \
--disable-tif-shared \
--enable-bmp=$(if $(BR2_PACKAGE_SDL_IMAGE_BMP),yes,no) \
--enable-gif=$(if $(BR2_PACKAGE_SDL_IMAGE_GIF),yes,no) \
--enable-jpg=$(if $(BR2_PACKAGE_SDL_IMAGE_JPEG),yes,no) \
--enable-lbm=$(if $(BR2_PACKAGE_SDL_IMAGE_LBM),yes,no) \
--enable-pcx=$(if $(BR2_PACKAGE_SDL_IMAGE_PCX),yes,no) \
--enable-png=$(if $(BR2_PACKAGE_SDL_IMAGE_PNG),yes,no) \
--enable-pnm=$(if $(BR2_PACKAGE_SDL_IMAGE_PNM),yes,no) \
--enable-tga=$(if $(BR2_PACKAGE_SDL_IMAGE_TARGA),yes,no) \
--enable-tif=$(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),yes,no) \
--enable-xcf=$(if $(BR2_PACKAGE_SDL_IMAGE_XCF),yes,no) \
--enable-xpm=$(if $(BR2_PACKAGE_SDL_IMAGE_XPM),yes,no) \
--enable-xv=$(if $(BR2_PACKAGE_SDL_IMAGE_XV),yes,no) \
SDL_IMAGE_DEPENDENCIES:=sdl \
$(if $(BR2_PACKAGE_SDL_IMAGE_JPEG),jpeg) \
$(if $(BR2_PACKAGE_SDL_IMAGE_PNG),libpng) \
$(if $(BR2_PACKAGE_SDL_IMAGE_TIFF),tiff)
$(eval $(call AUTOTARGETS,package,sdl_image))