From 47db7165a6e51eddf2fc4b8ed1a697c2c4fecfe7 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sat, 30 Nov 2013 11:56:46 +0100 Subject: [PATCH] Add patch for enabling pkg-config support in SDL_sound --- patches/SDL_sound/pkgconfig.patch | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 patches/SDL_sound/pkgconfig.patch diff --git a/patches/SDL_sound/pkgconfig.patch b/patches/SDL_sound/pkgconfig.patch new file mode 100644 index 0000000..d338329 --- /dev/null +++ b/patches/SDL_sound/pkgconfig.patch @@ -0,0 +1,54 @@ +diff -r 719dade41745 Makefile.am +--- a/Makefile.am Wed Aug 15 23:52:18 2012 -0400 ++++ b/Makefile.am Thu Nov 28 18:42:40 2013 +0100 +@@ -1,8 +1,8 @@ + lib_LTLIBRARIES = libSDL_sound.la + +-SUBDIRS = decoders . playsound ++SUBDIRS = decoders . + +-libSDL_soundincludedir = $(includedir)/SDL ++libSDL_soundincludedir = $(includedir)/SDL2 + libSDL_soundinclude_HEADERS = \ + SDL_sound.h + +@@ -49,3 +49,5 @@ + echo >> $(distdir)/docs/README + rm -rf `find $(distdir) -type d -name ".svn"` + ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = SDL_sound.pc +diff -r 719dade41745 SDL_sound.pc.in +--- /dev/null Thu Jan 01 00:00:00 1970 +0000 ++++ b/SDL_sound.pc.in Thu Nov 28 18:42:40 2013 +0100 +@@ -0,0 +1,11 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: SDL_sound ++Description: audio decoding library for Simple DirectMedia Layer ++Version: @VERSION@ ++Requires: sdl2 >= @SDL_VERSION@ ++Libs: -L${libdir} -lSDL_sound ++Cflags: -I${includedir}/SDL2 +diff -r 719dade41745 configure.in +--- a/configure.in Wed Aug 15 23:52:18 2012 -0400 ++++ b/configure.in Thu Nov 28 18:42:40 2013 +0100 +@@ -107,7 +107,8 @@ + dnl --------------------------------------------------------------------- + + dnl Check for SDL +-SDL_VERSION=1.2.0 ++SDL_VERSION=2.0.0 ++AC_SUBST(SDL_VERSION) + AM_PATH_SDL($SDL_VERSION, + :, + AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) +@@ -339,4 +340,5 @@ + decoders/timidity/Makefile + decoders/libmpg123/Makefile + playsound/Makefile ++SDL_sound.pc + ])