Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 1004 (pkg-config file for SDL_net)
  • Loading branch information
slouken committed Feb 17, 2011
1 parent 6afadec commit 1c19b7a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
@@ -1,4 +1,6 @@
1.2.8:
Evan Nemerson - Thu Feb 17 12:47:13 PST 2011
* Added pkg-config support
esigra - Mon Feb 16 20:59:55 PST 2009
* Fixed C++ compilation with -Wold-style-cast

Expand Down
2 changes: 2 additions & 0 deletions Makefile.am
Expand Up @@ -65,3 +65,5 @@ $(PACKAGE)-$(VERSION).tar.gz: distcheck
rpm: $(PACKAGE)-$(VERSION).tar.gz
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = SDL_net.pc
11 changes: 11 additions & 0 deletions SDL_net.pc.in
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: SDL_net
Description: net library for Simple DirectMedia Layer
Version: @VERSION@
Requires: sdl >= @SDL_VERSION@
Libs: -L${libdir} -lSDL_net
Cflags: -I${includedir}/SDL
3 changes: 2 additions & 1 deletion configure.in
Expand Up @@ -109,6 +109,7 @@ AC_SUBST(INETLIB)

dnl Check for SDL
SDL_VERSION=1.2.14
AC_SUBST(SDL_VERSION)
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
Expand Down Expand Up @@ -141,5 +142,5 @@ AC_SUBST([WINDRES])

# Finally create all the generated files
AC_OUTPUT([
Makefile SDL_net.spec SDL_net.qpg
Makefile SDL_net.spec SDL_net.qpg SDL_net.pc
])

0 comments on commit 1c19b7a

Please sign in to comment.