[virt-tools-list] [PATCH 43/47] Add a pkg-config data file for building apps
Daniel P. Berrange
berrange at redhat.com
Wed Aug 25 19:37:38 UTC 2010
* configure.ac: Generate libosinfo.pc
* osinfo/Makefile.am: Install pkg-config file
* osinfo/libosinfo-1.0.pc.in: Master pkg-config template
---
.gitignore | 1 +
configure.ac | 1 +
osinfo/Makefile.am | 5 ++++-
osinfo/libosinfo-1.0.pc.in | 11 +++++++++++
4 files changed, 17 insertions(+), 1 deletions(-)
create mode 100644 osinfo/libosinfo-1.0.pc.in
diff --git a/.gitignore b/.gitignore
index 811eeef..08c97a8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@ m4
stamp-h1
test/test-skeleton
test/test-skeleton.sh
+osinfo/libosinfo.pc
diff --git a/configure.ac b/configure.ac
index e6969c6..a7508a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,6 +60,7 @@ AM_CONDITIONAL([USE_VERSION_DEFS], [test "$USE_VERSION_DEFS" = "1"])
AC_CONFIG_FILES([
Makefile
osinfo/Makefile
+ osinfo/libosinfo-1.0.pc
test/Makefile
])
AC_OUTPUT
diff --git a/osinfo/Makefile.am b/osinfo/Makefile.am
index 89ee4f9..09f47fa 100644
--- a/osinfo/Makefile.am
+++ b/osinfo/Makefile.am
@@ -16,6 +16,9 @@ else
LIBOSINFO_VERSION_FILE = libosinfo.syms
endif
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libosinfo-1.0.pc
+
lib_LTLIBRARIES = libosinfo-1.0.la
libosinfo_1_0_la_CFLAGS = \
@@ -31,7 +34,7 @@ libosinfo_1_0_la_LDFLAGS = \
-version-info $(LIBOSINFO_VERSION_INFO) \
$(NO_UNDEFINED_FLAGS)
-libosinfo_1_0_includedir = $(includedir)/osinfo-1.0/osinfo
+libosinfo_1_0_includedir = $(includedir)/libosinfo-1.0/osinfo
libosinfo_1_0_include_HEADERS = \
osinfo_db.h \
diff --git a/osinfo/libosinfo-1.0.pc.in b/osinfo/libosinfo-1.0.pc.in
new file mode 100644
index 0000000..4903c8a
--- /dev/null
+++ b/osinfo/libosinfo-1.0.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libosinfo
+Version: @VERSION@
+Description: libosinfo library
+Requires: gobject-2.0
+Libs: -L${libdir} -losinfo
+Cflags: -I${includedir}
--
1.7.2.1
More information about the virt-tools-list
mailing list