updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mingw32-sdl_gfx / PKGBUILD
blob7f737ac8066374c72caf0567773b0644b5b22ce8
1 # Contributor: Rich Lane <rlane@club.cc.cmu.edu>
3 pkgname=mingw32-sdl_gfx
4 pkgver=2.0.22
5 pkgrel=1
6 arch=(i686 x86_64)
7 pkgdesc="sdl_gfx (mingw32)"
8 depends=()
9 makedepends=(mingw32-gcc mingw32-sdl)
10 options=(!strip)
11 license=(GPL LGPL)
12 url="http://www.gnu.org/software/gettext/"
13 source=(http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-$pkgver.tar.gz)
14 md5sums=('330f291f1f09a1bdf397c9b40d92ca41')
16 build()
18         dst=$startdir/pkg/usr/i486-mingw32/
20         cd $startdir
21         mkdir -p $dst/lib $dst/bin $dst/include/SDL
23   cd $startdir/src/SDL_gfx-$pkgver
25   unset LDFLAGS
27         sed -i 's/gcc/$(CC)/'   Makefile.mingw
29   make -f Makefile.mingw CC=i486-mingw32-gcc prefix=/usr/i486-mingw32 || exit 1
30   #make -f Makefile.mingw install prefix=$dst || exit 1
32         cp SDL_framerate.h SDL_gfxPrimitives.h SDL_gfxPrimitives_font.h SDL_imageFilter.h SDL_rotozoom.h $dst/include/SDL
33         cp SDL_gfx.dll $dst/bin
34         cp libSDL_gfx.a libSDL_gfx.dll.a $dst/lib
36   cd $startdir/pkg
37   find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
38     | xargs -rtl1 i486-mingw32-strip -g