summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.in2
-rw-r--r--debian/control3
-rw-r--r--debian/libmedia-dev.install1
-rw-r--r--debian/libsubdev-dev.install1
-rw-r--r--libmedia.pc.in10
-rw-r--r--libsubdev.pc.in11
7 files changed, 29 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 149e070..3081461 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
SUBDIRS = src
ACLOCAL_AMFLAGS = -I m4
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libmedia.pc libsubdev.pc
diff --git a/configure.in b/configure.in
index 16260dd..81b53bb 100644
--- a/configure.in
+++ b/configure.in
@@ -57,6 +57,8 @@ AC_CHECK_FUNCS([memset strerror strrchr strtoul])
AC_CONFIG_FILES([
Makefile
src/Makefile
+ libmedia.pc
+ libsubdev.pc
])
AC_OUTPUT
diff --git a/debian/control b/debian/control
index 6b2cfec..80d83c6 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Build-Depends: debhelper (>= 7.0.50~),
kernel-headers (>= 2.6.32-20105003),
libtool,
autoconf,
- automake
+ automake,
+ pkg-config
Standards-Version: 3.8.4
Section: utils
diff --git a/debian/libmedia-dev.install b/debian/libmedia-dev.install
index 76a818a..1a1225a 100644
--- a/debian/libmedia-dev.install
+++ b/debian/libmedia-dev.install
@@ -2,3 +2,4 @@ usr/include/media.h
usr/lib/libmedia.a
usr/lib/libmedia.so
usr/lib/libmedia.la
+usr/lib/pkgconfig/libmedia.pc
diff --git a/debian/libsubdev-dev.install b/debian/libsubdev-dev.install
index ed4cd13..3cf4396 100644
--- a/debian/libsubdev-dev.install
+++ b/debian/libsubdev-dev.install
@@ -2,3 +2,4 @@ usr/include/subdev.h
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
index 0000000..171550a
--- /dev/null
+++ b/libmedia.pc.in
@@ -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
index 0000000..666cefd
--- /dev/null
+++ b/libsubdev.pc.in
@@ -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