void-packages/srcpkgs/SDL2_gfx/template
2015-07-02 21:40:19 +02:00

38 lines
928 B
Bash

# Template file for 'SDL2_gfx'
pkgname=SDL2_gfx
version=1.0.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="SDL2-devel"
short_desc="SDL graphics drawing primitives"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="zlib"
homepage="http://cms.ferzkopp.net/index.php/software/13-sdl-gfx"
distfiles="http://www.ferzkopp.net/Software/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d69bcbceb811b4e5712fbad3ede737166327f44b727f1388c32581dbbe8c599a
pre_configure() {
case "${XBPS_TARGET_MACHINE}" in
x86_64*|i686*)
configure_args+=" --enable-mmx"
;;
*)
configure_args+=" --disable-mmx"
;;
esac
}
post_install() {
vlicense COPYING
}
SDL2_gfx-devel_package() {
depends="SDL2-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}