build: add uterm pkg-config file

We intend to make libuterm independent of kmscon so it can be used by
other projects. Therefore, add a pkg-config file for easier integration
into other build systems.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-09-11 18:01:32 +02:00
parent 12db259e6f
commit a5b4f7df9b
4 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View File

@ -20,6 +20,7 @@ configure
*.tar.bz2
libtool
libeloop.pc
libuterm.pc
m4/
stamp-*
.deps

View File

@ -177,6 +177,8 @@ endif
include_HEADERS += \
src/uterm.h
pkgconfig_DATA += libuterm.pc
#
# Shaders
# As there is no need to modify shaders at run-time, we statically compile them

View File

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

11
libuterm.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: uterm
Description: User-space Terminal Video/Input/Hotplug/etc Helper Library
URL: @PACKAGE_URL@
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -luterm
Cflags: -I${includedir}