contrib/sdl_gfx/Pkgfile

29 lines
887 B
Plaintext
Raw Permalink Normal View History

2008-02-11 11:45:43 +01:00
# Description: SDL graphics drawing primitives and other support functions.
2020-05-31 14:21:14 +02:00
# URL: https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
2023-03-03 17:52:19 +01:00
# Maintainer: John McQuah, jmcquah at disroot dot org
2008-02-11 11:45:43 +01:00
# Depends on: libsdl
name=sdl_gfx
2023-12-30 13:58:37 +01: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 11:45:43 +01:00
build() {
2023-12-30 13:58:37 +01:00
cd SDL_gfx-$version
2020-05-31 14:21:14 +02:00
2023-12-30 13:58:37 +01: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 14:21:14 +02:00
2023-12-30 13:58:37 +01:00
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm $PKG/usr/lib/*.la
2023-12-30 13:58:37 +01: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 11:45:43 +01:00
}