File add-pkgconfig-files.patch of Package firebird

From: Michal Kubecek <mkubecek@suse.cz>
Date: Sun, 3 Jun 2012 15:29:08 +0200
Subject: add pkgconfig files

---
 builds/install/arch-specific/linux/classic/fbembed.pc.in | 10 ++++++++++
 builds/install/arch-specific/linux/super/fbclient.pc.in  | 10 ++++++++++
 configure.in                                             |  6 ++++++
 3 files changed, 26 insertions(+)
 create mode 100644 builds/install/arch-specific/linux/classic/fbembed.pc.in
 create mode 100644 builds/install/arch-specific/linux/super/fbclient.pc.in

diff --git a/builds/install/arch-specific/linux/classic/fbembed.pc.in b/builds/install/arch-specific/linux/classic/fbembed.pc.in
new file mode 100644
index 0000000..1a7ee2c
--- /dev/null
+++ b/builds/install/arch-specific/linux/classic/fbembed.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@FB_LIBDIR@
+includedir=@FB_INCDIR@
+
+Name: fbembed
+Description: Firebird embedded client library
+Version: @FIREBIRD_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lfbembed
diff --git a/builds/install/arch-specific/linux/super/fbclient.pc.in b/builds/install/arch-specific/linux/super/fbclient.pc.in
new file mode 100644
index 0000000..e1a1de5
--- /dev/null
+++ b/builds/install/arch-specific/linux/super/fbclient.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@FB_LIBDIR@
+includedir=@FB_INCDIR@
+
+Name: fbclient
+Description: Firebird client library
+Version: @FIREBIRD_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lfbclient
diff --git a/configure.in b/configure.in
index 729f98d..fd91863 100644
--- a/configure.in
+++ b/configure.in
@@ -1360,6 +1360,12 @@ case "$PLATFORM" in
                      gen/install/misc/rc.config.firebird:builds/install/arch-specific/linux/misc/rc.config.firebird.in
                      gen/firebird/bin/linuxLibrary.sh:builds/install/arch-specific/linux/misc/linuxLibrary.sh.in]
       ,[chmod a+x gen/install/scripts/*.sh gen/install/*sh 2>/dev/null])
+    if test $FIREBIRD_ARCH_TYPE = super; then
+      AC_CONFIG_FILES([gen/install/misc/fbclient.pc:${INSTALL_SRC_DIR}/fbclient.pc.in])
+    fi
+    if test $FIREBIRD_ARCH_TYPE = classic; then
+      AC_CONFIG_FILES([gen/install/misc/fbembed.pc:${INSTALL_SRC_DIR}/fbembed.pc.in])
+    fi
     ;;
 
   HPUX)
-- 
1.8.4.5