tstellar / rpms / aspell

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