aboutsummaryrefslogblamecommitdiffstats
path: root/main/sdl_image/APKBUILD
blob: e49faded1ab6af868dfd9599e4be20094ac293a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                              
                                                   
                 
             
        

                                                                            
          

              
                                                                    

                          
                                                                                   
         




                                     




                                                                        












                                         


                                                  

 
                                                                   
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sdl_image
pkgver=1.2.12
pkgrel=1
pkgdesc="A simple library to load images of various formats as SDL surfaces"
url="http://www.libsdl.org/projects/SDL_image/"
arch="all"
license="LGPL"
depends=
makedepends="sdl-dev libpng-dev libjpeg-turbo-dev tiff-dev zlib-dev"
install=
subpackages="$pkgname-dev"
source="http://www.libsdl.org/projects/SDL_image/release/SDL_image-${pkgver}.tar.gz
	"

_builddir="$srcdir"/SDL_image-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la

}

md5sums="a0f9098ebe5400f0bdc9b62e60797ecb  SDL_image-1.2.12.tar.gz"