Added libzypp.pc so that libzypp can be found even if
authorMartin Vidner <mvidner@suse.cz>
Wed, 22 Mar 2006 17:05:11 +0000 (17:05 +0000)
committerMartin Vidner <mvidner@suse.cz>
Wed, 22 Mar 2006 17:05:11 +0000 (17:05 +0000)
installed to a different prefix.

This needs to be added to "%files devel" in libzypp.spec:
%{_libdir}/pkgconfig/libzypp.pc

Makefile.am
configure.ac
libzypp.pc.in [new file with mode: 0644]

index 2092024..772566f 100644 (file)
@@ -16,5 +16,8 @@ package: dist
 #ACLOCAL_AMFLAGS = -I m4
 ACLOCAL_AMFLAGS =
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libzypp.pc
+
 EXTRA_DIST = mkinstalldirs
 #config.rpath
index 2106037..53ee277 100644 (file)
@@ -183,6 +183,7 @@ dnl ==================================================
 dnl AC_CONFIG_FILES([FILE...])
 AC_OUTPUT(      po/Makefile.in\
        Makefile                        \
+       libzypp.pc                      \
        devel/Makefile                  \
        devel/genclass                  \
        devel/devel.jsrain/Makefile     \
diff --git a/libzypp.pc.in b/libzypp.pc.in
new file mode 100644 (file)
index 0000000..a75ba6c
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Version: @PACKAGE_VERSION@
+Description: Package, Patch, Pattern, and Product Management
+
+Libs: -L${libdir} -lzypp
+Cflags: -I${includedir}