83bc7c
--- libwmf-0.2.8.4.orig/configure.in	2006-05-02 09:08:35.000000000 +0100
83bc7c
+++ libwmf-0.2.8.4/configure.in	2006-05-02 09:21:10.000000000 +0100
83bc7c
@@ -884,7 +884,7 @@
83bc7c
 src/extra/gd/Makefile
83bc7c
 src/ipa/Makefile
83bc7c
 src/convert/Makefile
83bc7c
-libwmf-config
83bc7c
+libwmf.pc
83bc7c
 libwmf.spec
83bc7c
 ])
83bc7c
 
83bc7c
--- /dev/null	2006-04-29 13:38:37.035974750 +0100
83bc7c
+++ libwmf-0.2.8.4/libwmf-config	2006-05-02 09:20:49.000000000 +0100
83bc7c
@@ -0,0 +1,91 @@
83bc7c
+#!/bin/sh
83bc7c
+
83bc7c
+exec_prefix_set=no
83bc7c
+
83bc7c
+prefix=`pkg-config --variable=prefix libwmf`
83bc7c
+exec_prefix=`pkg-config --variable=exec_prefix libwmf`
83bc7c
+
83bc7c
+usage()
83bc7c
+{
83bc7c
+	cat <
83bc7c
+Usage: libwmf-config [OPTIONS] [LIBRARIES]
83bc7c
+Options:
83bc7c
+	[--prefix[=DIR]]
83bc7c
+	[--exec-prefix[=DIR]]
83bc7c
+	[--version]
83bc7c
+	[--libs]
83bc7c
+	[--cflags]
83bc7c
+Libraries/Headers:
83bc7c
+	gd
83bc7c
+	wmf
83bc7c
+EOF
83bc7c
+	exit $1
83bc7c
+}
83bc7c
+
83bc7c
+if test $# -eq 0; then
83bc7c
+	usage 1 1>&2
83bc7c
+fi
83bc7c
+
83bc7c
+lib_gd=no
83bc7c
+lib_wmf=yes
83bc7c
+
83bc7c
+while test $# -gt 0; do
83bc7c
+  case "$1" in
83bc7c
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83bc7c
+  *) optarg= ;;
83bc7c
+  esac
83bc7c
+
83bc7c
+  case $1 in
83bc7c
+    --prefix=*)
83bc7c
+      prefix=$optarg
83bc7c
+      if test $exec_prefix_set = no ; then
83bc7c
+        exec_prefix=$optarg
83bc7c
+      fi
83bc7c
+      ;;
83bc7c
+    --prefix)
83bc7c
+      echo_prefix=yes
83bc7c
+      ;;
83bc7c
+    --exec-prefix=*)
83bc7c
+      exec_prefix=$optarg
83bc7c
+      exec_prefix_set=yes
83bc7c
+      ;;
83bc7c
+    --exec-prefix)
83bc7c
+      echo_exec_prefix=yes
83bc7c
+      ;;
83bc7c
+    --version)
83bc7c
+      pkg-config --modversion libwmf
83bc7c
+      ;;
83bc7c
+    --cflags)
83bc7c
+      echo_cflags=yes
83bc7c
+      ;;
83bc7c
+    --libs)
83bc7c
+      echo_libs=yes
83bc7c
+      ;;
83bc7c
+    gd)
83bc7c
+      lib_gd=yes
83bc7c
+      ;;
83bc7c
+    wmf)
83bc7c
+      lib_wmf=yes
83bc7c
+      ;;
83bc7c
+    *)
83bc7c
+      usage 1 1>&2
83bc7c
+      ;;
83bc7c
+  esac
83bc7c
+  shift
83bc7c
+done
83bc7c
+
83bc7c
+if test "$echo_prefix" = "yes"; then
83bc7c
+	echo $prefix
83bc7c
+fi
83bc7c
+
83bc7c
+if test "$echo_exec_prefix" = "yes"; then
83bc7c
+	echo $exec_prefix
83bc7c
+fi
83bc7c
+
83bc7c
+if test "$echo_cflags" = "yes"; then
83bc7c
+    pkg-config --cflags libwmf
83bc7c
+fi
83bc7c
+
83bc7c
+if test "$echo_libs" = "yes"; then
83bc7c
+    pkg-config --libs libwmf
83bc7c
+fi      
83bc7c
--- /dev/null	2006-04-29 13:38:37.035974750 +0100
83bc7c
+++ libwmf-0.2.8.4/libwmf.pc.in	2006-05-02 09:21:24.000000000 +0100
83bc7c
@@ -0,0 +1,10 @@
83bc7c
+prefix=@prefix@
83bc7c
+exec_prefix=@exec_prefix@
83bc7c
+libdir=@libdir@
83bc7c
+includedir=@includedir@
83bc7c
+
83bc7c
+Name: libwmf
83bc7c
+Description: A library for reading and converting Windows MetaFile vector graphics (WMF)
83bc7c
+Version: @LIBWMF_VERSION@
83bc7c
+Libs: -lwmf -lwmflite @WMF_LIBFLAGS@
83bc7c
+Cflags: @WMF_CONFIG_CFLAGS@
83bc7c
--- libwmf-0.2.8.4.orig/Makefile.am	2006-05-02 09:08:35.000000000 +0100
83bc7c
+++ libwmf-0.2.8.4/Makefile.am	2006-05-02 09:28:34.000000000 +0100
83bc7c
@@ -10,6 +10,9 @@
83bc7c
 
83bc7c
 bin_SCRIPTS = libwmf-config
83bc7c
 
83bc7c
+pkgconfigdir = $(libdir)/pkgconfig
83bc7c
+pkgconfig_DATA = libwmf.pc
83bc7c
+
83bc7c
 WMFEXAMPLES = \
83bc7c
 	examples/2doorvan.wmf \
83bc7c
 	examples/Eg.wmf \