eloop: add pkg-config file

The pkg-config file allows other users of libeloop to more easily
configure build-time options for eloop.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-09-11 16:54:49 +02:00
parent 246595ab5a
commit cea022d36e
4 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ config.status
configure configure
*.tar.bz2 *.tar.bz2
libtool libtool
libeloop.pc
m4/ m4/
stamp-* stamp-*
.deps .deps

View File

@ -12,6 +12,8 @@ EXTRA_DIST = \
COPYING \ COPYING \
NEWS NEWS
CLEANFILES = CLEANFILES =
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =
# #
# Build targets # Build targets
@ -290,6 +292,8 @@ libeloop_la_LDFLAGS = \
include_HEADERS += \ include_HEADERS += \
src/eloop.h src/eloop.h
pkgconfig_DATA += libeloop.pc
# #
# libkmscon-static # libkmscon-static
# This static library contains all small helpers that are used in several other # This static library contains all small helpers that are used in several other

View File

@ -547,7 +547,7 @@ AC_SUBST(FREETYPE2_LIBS)
AC_SUBST(PANGO_CFLAGS) AC_SUBST(PANGO_CFLAGS)
AC_SUBST(PANGO_LIBS) AC_SUBST(PANGO_LIBS)
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile libeloop.pc])
AC_OUTPUT([src/genshader.c]) AC_OUTPUT([src/genshader.c])
# #

11
libeloop.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: eloop
Description: Epoll-based Event-Loop Library
URL: @PACKAGE_URL@
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -leloop
Cflags: -I${includedir}