void-packages/srcpkgs/SDL2_gfx/template

39 lines
937 B
Bash

# Template file for 'SDL2_gfx'
pkgname=SDL2_gfx
version=1.0.4
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://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"
distfiles="http://www.ferzkopp.net/Software/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262
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
}
}