contrib/sdl_gfx/Pkgfile

28 lines
756 B
Plaintext
Raw 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/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2008-02-11 11:45:43 +01:00
# Depends on: libsdl
name=sdl_gfx
2020-05-31 14:21:14 +02:00
version=2.0.26
release=2
2020-05-31 14:21:14 +02:00
source=(https://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-$version.tar.gz)
2008-02-11 11:45:43 +01:00
build() {
cd SDL_gfx-$version
2020-05-31 14:21:14 +02:00
# shipped configure was not regenerated since 2.0.25, resulting in bad soname
sed -i -e 's/-O //' configure.in
mv configure.in configure.ac
2020-05-31 14:21:14 +02:00
autoreconf -fvi
./configure --prefix=/usr
2008-02-11 11:45:43 +01:00
make
make DESTDIR=$PKG install
# 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
}