1 # Contributor: Rich Lane <rlane@club.cc.cmu.edu>
3 pkgname=mingw32-sdl_gfx
7 pkgdesc="sdl_gfx (mingw32)"
9 makedepends=(mingw32-gcc mingw32-sdl)
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')
18 dst=$startdir/pkg/usr/i486-mingw32/
21 mkdir -p $dst/lib $dst/bin $dst/include/SDL
23 cd $startdir/src/SDL_gfx-$pkgver
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
37 find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
38 | xargs -rtl1 i486-mingw32-strip -g