38 lines
937 B
Bash
38 lines
937 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://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_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
|
|
}
|
|
}
|
|
|