2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-07-27 09:49:05 +01:00
|
|
|
|
|
|
|
PKG := sdl2_image
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.libsdl.org/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := SDL2_image
|
2013-07-27 09:49:05 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2019-07-03 21:04:06 +01:00
|
|
|
$(PKG)_VERSION := 2.0.5
|
|
|
|
$(PKG)_CHECKSUM := bdd5f6e026682f7d7e1be0b6051b209da2f402a2dd8bd1c4bd9c25ad263108d0
|
2013-07-27 09:49:05 +01:00
|
|
|
$(PKG)_SUBDIR := SDL2_image-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := SDL2_image-$($(PKG)_VERSION).tar.gz
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://www.libsdl.org/projects/SDL_image/release/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc jpeg libpng libwebp sdl2 tiff
|
2013-07-27 09:49:05 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-05 03:41:39 +00:00
|
|
|
$(WGET) -q -O- 'https://hg.libsdl.org/SDL_image/tags' | \
|
2013-07-27 09:49:05 +01:00
|
|
|
$(SED) -n 's,.*release-\([0-9][^<]*\).*,\1,p' | \
|
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2014-09-09 15:23:01 +01:00
|
|
|
$(SED) -i 's,^\(Requires:.*\),\1\nRequires.private: libtiff-4 libpng libwebp,' '$(1)/SDL2_image.pc.in'
|
2013-07-27 09:49:05 +01:00
|
|
|
cd '$(1)' && ./configure \
|
2014-03-30 21:03:16 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2013-07-27 09:49:05 +01:00
|
|
|
--with-sdl-prefix='$(PREFIX)/$(TARGET)' \
|
|
|
|
--disable-sdltest \
|
|
|
|
--disable-jpg-shared \
|
|
|
|
--disable-webp-shared \
|
|
|
|
--disable-png-shared \
|
2014-03-30 21:03:16 +01:00
|
|
|
--disable-tif-shared
|
2013-07-27 09:49:05 +01:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
|
|
|
endef
|