2008-02-11 21:45:43 +11:00
|
|
|
# Description: SDL graphics drawing primitives and other support functions.
|
2020-05-31 22:21:14 +10:00
|
|
|
# URL: https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
|
2023-03-03 11:52:19 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2008-02-11 21:45:43 +11:00
|
|
|
# Depends on: libsdl
|
|
|
|
|
|
|
|
name=sdl_gfx
|
2023-12-30 12:58:37 +00:00
|
|
|
version=2.0.27
|
|
|
|
release=1
|
|
|
|
source=(https://sourceforge.net/projects/sdlgfx/files/SDL_gfx-$version.tar.gz/download)
|
|
|
|
renames=($name-$version.tar.gz)
|
2008-02-11 21:45:43 +11:00
|
|
|
|
|
|
|
build() {
|
2023-12-30 12:58:37 +00:00
|
|
|
cd SDL_gfx-$version
|
2020-05-31 22:21:14 +10:00
|
|
|
|
2023-12-30 12:58:37 +00:00
|
|
|
# shipped configure was not regenerated since 2.0.25, resulting in bad soname
|
|
|
|
sed -e 's/-O //' -e '/^MICRO_VERSION=/s/26/27/' -i configure.in
|
|
|
|
mv configure.in configure.ac
|
|
|
|
autoreconf -fvi
|
2020-05-31 22:21:14 +10:00
|
|
|
|
2023-12-30 12:58:37 +00:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm $PKG/usr/lib/*.la
|
2020-06-03 21:27:07 +10:00
|
|
|
|
2023-12-30 12:58:37 +00:00
|
|
|
# not sure why this path is wrong, it breaks mjpegtools
|
|
|
|
sed -e 's|^#include <SDL.h>|#include <SDL/SDL.h>|' \
|
|
|
|
-i $PKG/usr/include/SDL/SDL_gfxPrimitives.h
|
2008-02-11 21:45:43 +11:00
|
|
|
}
|