blob: 8d1442608bb7ad3a38634a5cc760b36afd9cf444 (
plain)
1 # Description: SDL graphics drawing primitives and other support functions.
2 # URL: https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libsdl
5
6 name=sdl_gfx
7 version=2.0.26
8 release=2
9 source=(https://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-$version.tar.gz)
10
11 build() {
12 cd SDL_gfx-$version
13
14 # shipped configure was not regenerated since 2.0.25, resulting in bad soname
15 sed -i -e 's/-O //' configure.in
16 mv configure.in configure.ac
17 autoreconf -fvi
18
19 ./configure --prefix=/usr
20 make
21 make DESTDIR=$PKG install
22
23 # not sure why this path is wrong, it breaks mjpegtools
24 sed \
25 -e 's|^#include <SDL.h>|#include <SDL/SDL.h>|' \
26 -i $PKG/usr/include/SDL/SDL_gfxPrimitives.h
27 }
|