Use pkg-config
authorTodor Tomov <ttomov@mm-sol.com>
Thu, 3 Feb 2011 08:50:51 +0000 (10:50 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 7 Feb 2011 15:32:53 +0000 (16:32 +0100)
Install libmedia.pc and libsubdev.pc files for use from pkg-config.

Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
Makefile.am
configure.in
debian/control
debian/libmedia-dev.install
debian/libsubdev-dev.install
libmedia.pc.in [new file with mode: 0644]
libsubdev.pc.in [new file with mode: 0644]

index 149e070..3081461 100644 (file)
@@ -1,3 +1,5 @@
 SUBDIRS = src
 ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = src
 ACLOCAL_AMFLAGS = -I m4
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libmedia.pc libsubdev.pc
 
 
index 16260dd..81b53bb 100644 (file)
@@ -57,6 +57,8 @@ AC_CHECK_FUNCS([memset strerror strrchr strtoul])
 AC_CONFIG_FILES([
  Makefile
  src/Makefile
 AC_CONFIG_FILES([
  Makefile
  src/Makefile
+ libmedia.pc
+ libsubdev.pc
 ])
 
 AC_OUTPUT
 ])
 
 AC_OUTPUT
index 6b2cfec..80d83c6 100644 (file)
@@ -5,7 +5,8 @@ Build-Depends: debhelper (>= 7.0.50~),
                kernel-headers (>= 2.6.32-20105003),
                libtool,
                autoconf,
                kernel-headers (>= 2.6.32-20105003),
                libtool,
                autoconf,
-               automake
+               automake,
+               pkg-config
 Standards-Version: 3.8.4
 Section: utils
 
 Standards-Version: 3.8.4
 Section: utils
 
index 76a818a..1a1225a 100644 (file)
@@ -2,3 +2,4 @@ usr/include/media.h
 usr/lib/libmedia.a
 usr/lib/libmedia.so
 usr/lib/libmedia.la
 usr/lib/libmedia.a
 usr/lib/libmedia.so
 usr/lib/libmedia.la
+usr/lib/pkgconfig/libmedia.pc
index ed4cd13..3cf4396 100644 (file)
@@ -2,3 +2,4 @@ usr/include/subdev.h
 usr/lib/libsubdev.a
 usr/lib/libsubdev.so
 usr/lib/libsubdev.la
 usr/lib/libsubdev.a
 usr/lib/libsubdev.so
 usr/lib/libsubdev.la
+usr/lib/pkgconfig/libsubdev.pc
diff --git a/libmedia.pc.in b/libmedia.pc.in
new file mode 100644 (file)
index 0000000..171550a
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libmedia
+Description: Media controller library.
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lmedia
diff --git a/libsubdev.pc.in b/libsubdev.pc.in
new file mode 100644 (file)
index 0000000..666cefd
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libsubdev
+Description: V4L2 subdevice library.
+Requires: libmedia
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lsubdev