# HG changeset patch # User Sam Lantinga # Date 1150782612 0 # Node ID 75f2ace8511a4f68a09865fe54e437fe6e8256b6 # Parent c901fd2a42da521a3e2b04fc964c26b05c9c86e5 Bug #250, pkg-config support contributed by Mikael Eriksson diff -r c901fd2a42da -r 75f2ace8511a Makefile.in --- a/Makefile.in Tue Jun 20 05:40:57 2006 +0000 +++ b/Makefile.in Tue Jun 20 05:50:12 2006 +0000 @@ -38,7 +38,7 @@ SDLMAIN_SOURCES = @SDLMAIN_SOURCES@ SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@ -DIST = acinclude.m4 autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html EpocBuildFiles.zip include INSTALL Makefile.dc Makefile.minimal Makefile.in MPWmake.sea.bin README* sdl-config.in sdl.m4 SDL.qpg.in SDL.spec SDL.spec.in src test TODO VisualCE.zip VisualC.html VisualC.zip Watcom-OS2.zip Watcom-Win32.zip WhatsNew Xcode.tar.gz +DIST = acinclude.m4 autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html EpocBuildFiles.zip include INSTALL Makefile.dc Makefile.minimal Makefile.in MPWmake.sea.bin README* sdl-config.in sdl.m4 sdl.pc.in SDL.qpg.in SDL.spec SDL.spec.in src test TODO VisualCE.zip VisualC.html VisualC.zip Watcom-OS2.zip Watcom-Win32.zip WhatsNew Xcode.tar.gz LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ @@ -97,6 +97,8 @@ install-data: $(SHELL) $(auxdir)/mkinstalldirs $(datadir)/aclocal $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4 + $(SHELL) $(auxdir)/mkinstalldirs $(libdir)/pkgconfig + $(INSTALL) -m 644 $(srcdir)/sdl.pc $(libdir)/pkgconfig install-man: $(SHELL) $(auxdir)/mkinstalldirs $(mandir)/man3 for src in $(srcdir)/docs/man3/*.3; do \ diff -r c901fd2a42da -r 75f2ace8511a configure.in --- a/configure.in Tue Jun 20 05:40:57 2006 +0000 +++ b/configure.in Tue Jun 20 05:50:12 2006 +0000 @@ -2661,7 +2661,7 @@ AC_SUBST(EXTRA_LDFLAGS) AC_OUTPUT([ - Makefile sdl-config SDL.spec SDL.qpg + Makefile sdl-config SDL.spec SDL.qpg sdl.pc ], [ : >build-deps if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend diff -r c901fd2a42da -r 75f2ace8511a sdl.pc.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sdl.pc.in Tue Jun 20 05:50:12 2006 +0000 @@ -0,0 +1,14 @@ +# sdl pkg-config source file + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: sdl +Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. +Version: @SDL_VERSION@ +Requires: +Conflicts: +Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@ +Cflags: -I${includedir}/SDL @SDL_CFLAGS@