gegl: Use pkg-config for SDL

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2014-07-18 08:26:17 +00:00 committed by Martin Jansa
parent 8dc1763bac
commit d7363984b8
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,21 @@
Index: gegl-0.2.0/configure.ac
===================================================================
--- gegl-0.2.0.orig/configure.ac 2012-04-02 21:56:49.000000000 +0000
+++ gegl-0.2.0/configure.ac 2014-07-17 21:34:15.312546602 +0000
@@ -765,15 +765,7 @@
have_sdl="no"
if test "x$with_sdl" != "xno"; then
- AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
- if test "$SDL_CONFIG" = "no"; then
- have_sdl="no (SDL library not found)"
- AC_MSG_RESULT([*** Check for SDL library failed.])
- else
- have_sdl="yes"
- SDL_CFLAGS=`$SDL_CONFIG --cflags`
- SDL_LIBS=`$SDL_CONFIG --libs`
- fi
+ PKG_CHECK_MODULES([SDL], [sdl], [have_sdl="yes"], [have_sdl="no (SDL library not found)"])
fi
AM_CONDITIONAL(HAVE_SDL, test "$have_sdl" = "yes")

View File

@ -11,7 +11,8 @@ PACKAGECONFIG ??= ""
PACKAGECONFIG[jasper] = "--with-jasper,--without-jasper,jasper"
PACKAGECONFIG[avformat] = "--with-libavformat,--without-libavformat,libav"
SRC_URI = "http://ftp.gimp.org/pub/${BPN}/0.2/${BP}.tar.bz2"
SRC_URI = "http://ftp.gimp.org/pub/${BPN}/0.2/${BP}.tar.bz2 \
file://pkgconfig.patch "
SRC_URI[md5sum] = "32b00002f1f1e316115c4ed922e1dec8"
SRC_URI[sha256sum] = "df2e6a0d9499afcbc4f9029c18d9d1e0dd5e8710a75e17c9b1d9a6480dd8d426"