Hi Andreas,

Here's a patch to add pkg-config support in SDL2_gfx, that is add a
SDL2_gfx.pc on install.  It's mostly a merge being the old one in
SDL_gfx and the new ones in SDL_Mixer & cie.

It is useful for people who use PKG_CHECK_MODULES in their autoconf.
Would you consider including it in SDL2_gfx?

I'm submitting it to Debian too.

Cheers!
Sylvain
Description: Add pkg-config support to SDL2_gfx
Forwarded: 2014-06-01 to <aschiff...@ferzkopp.net>
Author: Sylvain Beucler <b...@debian.org>
Last-Update: 2014-06-01

--- svn/configure.in	(révision 14)
+++ svn/configure.in	(copie de travail)
@@ -140,6 +140,7 @@
 # Finally create all the generated files
 AC_OUTPUT([
 Makefile
+SDL2_gfx.pc
 ])
 
 echo
--- svn/Makefile.am	(révision 14)
+++ svn/Makefile.am	(copie de travail)
@@ -30,6 +30,9 @@
 # Rule to build tar-gzipped distribution package
 $(PACKAGE)-$(VERSION).tar.gz: distcheck
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = SDL2_gfx.pc
+
 # Additional cleanup rules
 DISTCLEANFILES =		\
 	SDL2_gfx.sdf		\
@@ -38,4 +41,3 @@
 	autom4te.cache/*	\
 	Win32/Debug/*		\
 	Win32/Release/*
-		
\ No newline at end of file
--- svn/SDL2_gfx.pc.in	(révision 0)
+++ svn/SDL2_gfx.pc.in	(copie de travail)
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: SDL2_gfx
+Description: drawing and graphical effects extension for SDL
+Version: @VERSION@
+Requires: sdl2 >= @SDL_VERSION@
+Libs: -L${libdir} -lSDL2_gfx
+Cflags: -I${includedir}/SDL2

Reply via email to