void-packages/srcpkgs/SDL2_gfx/template
2017-02-22 14:19:36 +01:00

38 lines
937 B
Bash

# Template file for 'SDL2_gfx'
pkgname=SDL2_gfx
version=1.0.3
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=a4066bd467c96469935a4b1fe472893393e7d74e45f95d59f69726784befd8f8
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
}
}