978a2f
diff -Naur jasper-1.900.1/configure.ac jasper-1.900.1.new/configure.ac
978a2f
--- jasper-1.900.1/configure.ac	2007-01-19 21:47:11.000000000 +0000
978a2f
+++ jasper-1.900.1.new/configure.ac	2009-10-29 13:37:02.000000000 +0000
978a2f
@@ -399,6 +399,8 @@
978a2f
 src/libjasper/pnm/Makefile
978a2f
 src/libjasper/ras/Makefile
978a2f
 src/msvc/Makefile
978a2f
+pkgconfig/Makefile
978a2f
+pkgconfig/jasper.pc
978a2f
 jasper.spec
978a2f
 ])
978a2f
 AC_OUTPUT
978a2f
diff -Naur jasper-1.900.1/Makefile.am jasper-1.900.1.new/Makefile.am
978a2f
--- jasper-1.900.1/Makefile.am	2007-01-19 21:43:14.000000000 +0000
978a2f
+++ jasper-1.900.1.new/Makefile.am	2009-10-29 13:36:28.000000000 +0000
978a2f
@@ -64,7 +64,7 @@
978a2f
 # Note: We need to put the derived file "jasper.spec" in the distribution
978a2f
 # in order to facilitate RPM building.
978a2f
 
978a2f
-SUBDIRS = src
978a2f
+SUBDIRS = src pkgconfig
978a2f
 
978a2f
 rpm: dist
978a2f
 	for i in BUILD RPMS SRPMS SOURCES SPECS; do \
978a2f
diff -Naur jasper-1.900.1/pkgconfig/jasper.pc.in jasper-1.900.1.new/pkgconfig/jasper.pc.in
978a2f
--- jasper-1.900.1/pkgconfig/jasper.pc.in	1970-01-01 01:00:00.000000000 +0100
978a2f
+++ jasper-1.900.1.new/pkgconfig/jasper.pc.in	2009-10-29 16:30:43.000000000 +0000
978a2f
@@ -0,0 +1,11 @@
978a2f
+prefix=@prefix@
978a2f
+exec_prefix=@exec_prefix@
978a2f
+libdir=@libdir@
978a2f
+includedir=@includedir@
978a2f
+
978a2f
+Name: Jasper
978a2f
+Description: JPEG 2000 encoding and decoding library
978a2f
+Version: @VERSION@
978a2f
+
978a2f
+Libs: -L${libdir} -ljasper
978a2f
+Cflags: -I${includedir}/jasper
978a2f
diff -Naur jasper-1.900.1/pkgconfig/Makefile.am jasper-1.900.1.new/pkgconfig/Makefile.am
978a2f
--- jasper-1.900.1/pkgconfig/Makefile.am	1970-01-01 01:00:00.000000000 +0100
978a2f
+++ jasper-1.900.1.new/pkgconfig/Makefile.am	2009-10-29 13:38:59.000000000 +0000
978a2f
@@ -0,0 +1,5 @@
978a2f
+pkgconfigdir = $(libdir)/pkgconfig
978a2f
+pkgconfig_DATA = jasper.pc
978a2f
+
978a2f
+EXTRA_DIST = \
978a2f
+        jasper.pc.in