void-packages/srcpkgs/SDL2_image/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

25 lines
850 B
Bash

# Template file for 'SDL2_image'
pkgname=SDL2_image
version=2.0.0
revision=2
build_style=gnu-configure
configure_args="--disable-static --disable-jpg-shared
--disable-png-shared --disable-webp-shared --disable-tif-shared"
hostmakedepends="pkg-config"
makedepends="libpng-devel tiff-devel SDL2-devel libwebp-devel"
short_desc="Load images as SDL surfaces (SDL 2.x)"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://www.libsdl.org/projects/SDL_image/"
distfiles="http://www.libsdl.org/projects/SDL_image/release/$pkgname-$version.tar.gz"
checksum=b29815c73b17633baca9f07113e8ac476ae66412dec0d29a5045825c27a47234
SDL2_image-devel_package() {
depends="SDL2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}