void-packages/srcpkgs/SDL2_gfx/template
2021-04-04 20:07:59 -03:00

37 lines
925 B
Bash

# Template file for 'SDL2_gfx'
pkgname=SDL2_gfx
version=1.0.4
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="SDL2-devel"
short_desc="SDL graphics drawing primitives"
maintainer="Orphaned <orphan@voidlinux.org>"
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
}
}