void-packages/srcpkgs/SDL_image/template
2014-05-13 11:08:03 +02:00

30 lines
922 B
Bash

# Template file for 'SDL_image'
pkgname=SDL_image
version=1.2.12
revision=11
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
makedepends="libpng-devel>=1.6 tiff-devel SDL-devel libwebp-devel>=0.4.0"
# The following are dlopen(3)ed at runtime.
depends="libpng>=1.6 tiff libjpeg-turbo libwebp>=0.4.0"
short_desc="Load images as SDL surfaces"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://www.libsdl.org/projects/SDL_image/"
distfiles="http://www.libsdl.org/projects/$pkgname/release/$pkgname-$version.tar.gz"
checksum=0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699
post_install() {
vinstall COPYING 644 usr/share/licenses/${pkgname}
}
SDL_image-devel_package() {
depends="SDL-devel ${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}