build: add uterm pkg-config file
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 11 Sep 2012 16:01:32 +0000 (18:01 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 11 Sep 2012 16:08:00 +0000 (18:08 +0200)
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>
.gitignore
Makefile.am
configure.ac
libuterm.pc.in [new file with mode: 0644]

index 48f7169..3537057 100644 (file)
@@ -20,6 +20,7 @@ configure
 *.tar.bz2
 libtool
 libeloop.pc
+libuterm.pc
 m4/
 stamp-*
 .deps
index 09adcbd..f2eabf4 100644 (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
index 1e99a0c..0e64d26 100644 (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])
 
 #
diff --git a/libuterm.pc.in b/libuterm.pc.in
new file mode 100644 (file)
index 0000000..cc2c5c8
--- /dev/null
@@ -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}