sdl_gfx:L fix include path so mjpegtools and possibly other tools compile

This commit is contained in:
Danny Rawlins 2020-06-03 21:27:07 +10:00
parent 7eee56e956
commit 8fc2645e90
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3zBfgYIqAuYyd9PMnmD4IUKzsL64GyszCXZ/Tr58/e5gbIWz0jWJP91acHYs4bSmqCd70AzJQlKi0DhZQ/GVUAE=
SHA256 (Pkgfile) = 64e7d7fa1808559fd7520aa0defe2eddc0081e6e1d5dd8717aa6f07fd89c2e3b
RWSagIOpLGJF30B7Tnw0NrgzUvZlx88vgDjsXOOfJkM0JHVYgIYJMzIzgUdb+ZCQC1BzOc3L6zeUxV+8re57Pp/T5SQWLkh91AU=
SHA256 (Pkgfile) = 32402f254e726a3772bc1be76bff52d81d5bfcb6384267664c0296e87d075e73
SHA256 (.footprint) = 9b824efd118028aa2aa56b8a21fac690f567de47add470153e2884c01b28b592
SHA256 (SDL_gfx-2.0.26.tar.gz) = 7ceb4ffb6fc63ffba5f1290572db43d74386cd0781c123bc912da50d34945446

View File

@ -5,16 +5,23 @@
name=sdl_gfx
version=2.0.26
release=1
release=2
source=(https://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-$version.tar.gz)
build() {
cd SDL_gfx-$version
# 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
autoreconf -fvi
./configure --prefix=/usr
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
}