### this file is sourced not run
PKGVER=2.0.4
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=SDL2_mixer-$PKGVER.tar.gz
MD5SUM=a36e8410cac46b00a4d01752b32c3eb1
SRC_URL=https://www.libsdl.org/projects/SDL_mixer/release/$TARBALL
BUNDLE=

SLACKREQ='libSDL2 mpg123 libopusfile'
SLACKDESC="libSDL2-mixer: libSDL2-mixer $PKGVER (SDL2 sound mixing library)
libSDL2-mixer: 
libSDL2-mixer: SDL_mixer is a sound mixing library that is used with the SDL 
libSDL2-mixer: library, and almost as portable. It allows a programmer to use 
libSDL2-mixer: multiple samples along with music without having to code a mixing 
libSDL2-mixer: algorithm themselves. It also simplyfies the handling of loading and 
libSDL2-mixer: playing samples and music from all sorts of file formats.
libSDL2-mixer: 
libSDL2-mixer: https://www.libsdl.org/projects/SDL_mixer/
libSDL2-mixer: 
libSDL2-mixer: 
"
SLACKSUG='libpng libtiff libjpeg-turbo'

### default pkg_download

### prepare
pkg_prepare() {
	pkg_prepare_default &&

	# upstream patch
	cd tmp/SDL* &&
	patch -Np3 -i ../pkg/6160668079f91d57a5d7bf0b40ffdd843be70daf.patch && 
	true
}

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


