Blame SOURCES/aspell-0.60.7-pspell_conf.patch

d4e30d
diff --git a/Makefile.in b/Makefile.in
d4e30d
index e5d2b1a..bc53e34 100644
d4e30d
--- a/Makefile.in
d4e30d
+++ b/Makefile.in
d4e30d
@@ -1019,6 +1019,8 @@ clean-filterLTLIBRARIES:
d4e30d
 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
d4e30d
 	@$(NORMAL_INSTALL)
d4e30d
 	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
d4e30d
+	mkdir -p $(DESTDIR)$(libdir)/pkgconfig; \
d4e30d
+	cp aspell.pc $(DESTDIR)$(libdir)/pkgconfig/aspell.pc; \
d4e30d
 	list2=; for p in $$list; do \
d4e30d
 	  if test -f $$p; then \
d4e30d
 	    list2="$$list2 $$p"; \
d4e30d
diff --git a/aspell.pc.in b/aspell.pc.in
d4e30d
new file mode 100644
d4e30d
index 0000000..13da044
d4e30d
--- /dev/null
d4e30d
+++ b/aspell.pc.in
d4e30d
@@ -0,0 +1,12 @@
d4e30d
+prefix=@prefix@
d4e30d
+exec_prefix=@exec_prefix@
d4e30d
+libdir=@libdir@
d4e30d
+includedir=@includedir@
d4e30d
+pkgdatadir=@pkgdatadir@
d4e30d
+
d4e30d
+Name: Aspell
d4e30d
+Description: A spelling checker.
d4e30d
+Version: @VERSION@
d4e30d
+Requires: 
d4e30d
+Libs: -L${libdir} -laspell
d4e30d
+Cflags: -I${includedir}
d4e30d
diff --git a/configure b/configure
d4e30d
index 8a6e697..995a3df 100755
d4e30d
--- a/configure
d4e30d
+++ b/configure
d4e30d
@@ -18732,7 +18732,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4e30d
 #                                                                 #
d4e30d
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
d4e30d
 
d4e30d
-ac_config_files="$ac_config_files Makefile gen/Makefile common/Makefile lib/Makefile data/Makefile auto/Makefile modules/Makefile modules/tokenizer/Makefile modules/speller/Makefile modules/speller/default/Makefile interfaces/Makefile interfaces/cc/Makefile scripts/Makefile examples/Makefile prog/Makefile manual/Makefile po/Makefile.in m4/Makefile modules/filter/Makefile myspell/Makefile lib5/Makefile"
d4e30d
+ac_config_files="$ac_config_files Makefile gen/Makefile common/Makefile lib/Makefile data/Makefile auto/Makefile modules/Makefile modules/tokenizer/Makefile modules/speller/Makefile modules/speller/default/Makefile interfaces/Makefile interfaces/cc/Makefile aspell.pc scripts/Makefile examples/Makefile prog/Makefile manual/Makefile po/Makefile.in m4/Makefile modules/filter/Makefile myspell/Makefile lib5/Makefile"
d4e30d
 
d4e30d
 cat >confcache <<\_ACEOF
d4e30d
 # This file is a shell script that caches the results of configure
d4e30d
@@ -19887,6 +19887,7 @@ do
d4e30d
     "modules/filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/filter/Makefile" ;;
d4e30d
     "myspell/Makefile") CONFIG_FILES="$CONFIG_FILES myspell/Makefile" ;;
d4e30d
     "lib5/Makefile") CONFIG_FILES="$CONFIG_FILES lib5/Makefile" ;;
d4e30d
+    "aspell.pc") CONFIG_FILES="$CONFIG_FILES aspell.pc" ;;
d4e30d
 
d4e30d
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d4e30d
   esac
d4e30d
diff --git a/scripts/mkconfig b/scripts/mkconfig
d4e30d
index 608e3f7..f15f31c 100755
d4e30d
--- a/scripts/mkconfig
d4e30d
+++ b/scripts/mkconfig
d4e30d
@@ -15,7 +15,7 @@ case \$1 in
d4e30d
   echo "$2"
d4e30d
   ;;
d4e30d
 --pkgdatadir | pkgdatadir)
d4e30d
-  echo "$3"
d4e30d
+  pkg-config aspell --variable=pkgdatadir
d4e30d
   ;;
d4e30d
 *)
d4e30d
   echo "usage: pspell-config version|datadir|pkgdatadir"