Skip to content

Commit

Permalink
Implemented bug #768
Browse files Browse the repository at this point in the history
   Description From  Luca Bigliardi   2009-07-07 03:35:39   (-) [reply]

patch to add pkg-config for SDL_image

Hi,
I'm attaching two patches to add pkg-config support to SDL_image.

pkg-config is used to retrieve information about installed libraries and
it's well integrated with build configurators (for instance
PKG_CHECK_MODULES autoconf macro).

Thank you,

Luca
  • Loading branch information
slouken committed Aug 7, 2009
1 parent 7830a48 commit c877cd2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Expand Up @@ -49,6 +49,9 @@ libSDL_image_la_LDFLAGS = \
libSDL_image_la_LIBADD = $(IMG_LIBS)
endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = SDL_image.pc

%.o : %.rc
$(WINDRES) $< $@

Expand Down
12 changes: 12 additions & 0 deletions SDL_image.pc.in
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: SDL_image
Description: image loading library for Simple DirectMedia Layer
Version: @VERSION@
Requires: sdl >= @SDL_VERSION@
Libs: -L${libdir} -lSDL_image
Cflags: -I${includedir}/SDL

1 change: 1 addition & 0 deletions configure.in
Expand Up @@ -80,6 +80,7 @@ AM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)

dnl Check for SDL
SDL_VERSION=1.2.10
AC_SUBST(SDL_VERSION)
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
Expand Down

0 comments on commit c877cd2

Please sign in to comment.