2017-03-31 00:02:05 +00:00
|
|
|
# $Id$
|
2012-09-02 22:41:07 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
2017-03-31 00:02:05 +00:00
|
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
2011-12-05 18:34:37 +00:00
|
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - need --disable-mmx for ARM as well
|
|
|
|
|
|
|
|
pkgname=sdl_gfx
|
2017-03-31 00:02:05 +00:00
|
|
|
pkgver=2.0.26
|
2013-11-13 14:35:13 +00:00
|
|
|
pkgrel=1
|
2017-03-31 00:02:05 +00:00
|
|
|
pkgdesc="SDL graphics drawing primitives and other support functions"
|
|
|
|
url="http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
license=(LGPL)
|
|
|
|
depends=(sdl)
|
2011-12-05 18:34:37 +00:00
|
|
|
source=(http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${pkgver}.tar.gz)
|
2017-03-31 00:02:05 +00:00
|
|
|
sha256sums=('7ceb4ffb6fc63ffba5f1290572db43d74386cd0781c123bc912da50d34945446')
|
2011-12-05 18:34:37 +00:00
|
|
|
|
|
|
|
build() {
|
2017-03-31 00:02:05 +00:00
|
|
|
cd SDL_gfx-$pkgver
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
$([[ $CARCH == x86_64 || ${CARCH} == arm || ${CARCH} == armv6h || ${CARCH} == armv7h || ${CARCH} == aarch64 ]] && echo --disable-mmx)
|
2011-12-05 18:34:37 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-03-31 00:02:05 +00:00
|
|
|
cd SDL_gfx-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
2011-12-05 18:34:37 +00:00
|
|
|
}
|