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