# Depends on:  sdl2 libpng libtiff libjpeg-turbo libwebp cmake

description="A simple library to load images of various formats as SDL surfaces (Version 2)"
url="http://crawl.develz.org/"
packager="remy <remy@nutyx.org>"
contributors=""
name=sdl2-image
version=2.0.4
release=1
source=(https://www.libsdl.org/projects/SDL_image/release/SDL2_image-$version.tar.gz)

build() {

cd SDL2_image-$version

./configure --disable-static --prefix=/usr

make 
}

package() {

cd SDL2_image-$version
make DESTDIR=$PKG install

# Obsolet lib
rm $PKG/usr/lib/libSDL2_image.la
}
