From 9aca46f3dc20cc820863204b15010214816ffe5b Mon Sep 17 00:00:00 2001 From: Kevin Brubeck Unhammer Date: Mon, 9 Jun 2014 18:37:10 +0000 Subject: [PATCH] Put .pc and compiled data in /share/, not /lib/ (following Debian/autotools standards) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pkgconfigdir=$(libdir)/pkgconfig → pkgconfigdir=$(prefix)/share/pkgconfig AP_LIB → AP_SRC apertium_XXXdir=$(prefix)/lib/apertium/$(BASENAME)/ → apertium_XXXdir=$(prefix)/share/apertium/$(BASENAME)/ put share/pkgconfig in PKG_CONFIG_PATH in autogen.sh --- Makefile.am | 6 +++--- autogen.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index c2b3a0e5..71d082ec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,15 +54,15 @@ EXTRA_DIST=$(BASENAME).$(LANG1).dix \ ## Installation stuff ############################################################################### # -# apertium_nob_libdir: This is where the compiled binaries go +# apertium_nob_dir: This is where the compiled binaries go # apertium_nob_srcdir: This is where the source files go -apertium_nobdir=$(prefix)/lib/apertium/$(BASENAME)/ +apertium_nobdir=$(prefix)/share/apertium/$(BASENAME)/ apertium_nob_srcdir=$(prefix)/share/apertium/$(BASENAME)/ apertium_nob_DATA=$(TARGETS_COMMON) $(LANG1).prob -pkgconfigdir = $(libdir)/pkgconfig +pkgconfigdir = $(prefix)/share/pkgconfig pkgconfig_DATA = $(BASENAME).pc # Modes are not installed since they're all just "debug modes". All diff --git a/autogen.sh b/autogen.sh index ff15207a..f9f430ae 100755 --- a/autogen.sh +++ b/autogen.sh @@ -25,7 +25,7 @@ PATH="${PATH}:/usr/local/bin" export PATH LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PREFIX}/lib" export LD_LIBRARY_PATH -PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${PREFIX}/lib/pkgconfig" +PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${PREFIX}/share/pkgconfig:${PREFIX}/lib/pkgconfig" export PKG_CONFIG_PATH ACLOCAL_PATH="${ACLOCAL_PATH}:${PREFIX}/share/aclocal" export ACLOCAL_PATH