void-packages/srcpkgs/SDL2_image/template
2017-10-24 06:39:08 +02:00

50 lines
1.3 KiB
Bash

# Template file for 'SDL2_image'
pkgname=SDL2_image
version=2.0.2
revision=1
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@voidlinux.eu>"
license="BSD"
homepage="http://www.libsdl.org/projects/SDL_image/"
distfiles="http://www.libsdl.org/projects/SDL_image/release/$pkgname-$version.tar.gz"
checksum=72df075aef91fc4585098ea7e0b072d416ec7599aa10473719fbe51e9b8f6ce8
# Package build options
build_options="gles"
case "$XBPS_TARGET_MACHINE" in
arm*)
# Enable OpenGL/ES on rpi platforms
build_options_default="gles"
;;
esac
if [ "$build_option_gles" ]; then
case "$XBPS_TARGET_MACHINE" in
armv[67]*)
# RaspberryPi, use Videocore IV
makedepends+=" rpi-userland-devel"
LDFLAGS="-L${XBPS_CROSS_BASE}/opt/vc/lib -lbcm_host"
;;
esac
fi
post_install() {
vlicense COPYING.txt COPYING
}
SDL2_image-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}