### this file is sourced not run
PKGVER=2.0.5
PKGBUILD=1
PKGARCH=i686

# source: james
TARBALL=SDL2_image-$PKGVER.tar.gz
MD5SUM=f26f3a153360a8f09ed5220ef7b07aea
SRC_URL=https://www.libsdl.org/projects/SDL_image/release/$TARBALL
BUNDLE=

SLACKREQ='libSDL2_32 libwebp32'
SLACKDESC="libSDL2-image32: libSDL2-image32 $PKGVER (SDL2 image loader library)  
libSDL2-image32:  
libSDL2-image32: This is a simple library to load images of various formats as 
libSDL2-image32: SDL2 surfaces. This library supports BMP, PNM (PPM/PGM/PBM), 
libSDL2-image32: XPM, LBM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats.  
libSDL2-image32: 
libSDL2-image32: https://www.libsdl.org/projects/SDL_image/
libSDL2-image32: 
libSDL2-image32: This contains 32-bit version of the library.
libSDL2-image32: 
libSDL2-image32: 
"
SLACKSUG='libpng libtiff libjpeg-turbo'

### default pkg_download
### default pkg_prepare

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/SDL*
	CONFFLAGS="$CONFFLAGS --disable-static" &&
	pkg_build_autoconf && pkg_build_slackdesc
}


