[Pkg-privacy-commits] [irssi-plugin-otr] 09/18: respect $PREFIX on install
Antoine Beaupré
anarcat at moszumanska.debian.org
Tue Mar 29 14:20:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
anarcat pushed a commit to branch debian
in repository irssi-plugin-otr.
commit 6f6f8f4b389facd5fc89df1330679d41a73cc828
Author: Antoine Beaupré <anarcat at debian.org>
Date: Tue Mar 22 16:35:47 2016 -0400
respect $PREFIX on install
$PREFIX is a very common convention when installing software,
especially with autoconf, which the OTR plugin uses.
This makes sure that the `--prefix` flag in configure affects all
relevant portions of the install code.
Closes #53.
---
configure.ac | 2 +-
help/Makefile.am | 2 +-
src/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 83532e6..a38af58 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,7 +77,7 @@ AC_SUBST(DEFAULT_INCLUDES)
AC_ARG_WITH([irssi-module-dir],
AS_HELP_STRING([--with-irssi-module-dir=DIR], [Irssi module directory]),
[IRSSI_MODULE_DIR="$withval"],
- [IRSSI_MODULE_DIR="/usr/lib/irssi/modules"])
+ [IRSSI_MODULE_DIR='${libdir}/irssi/modules'])
AC_SUBST(IRSSI_MODULE_DIR)
diff --git a/help/Makefile.am b/help/Makefile.am
index 9bc4cba..28d8202 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -1,6 +1,6 @@
# The day Irssi will be able to check in $(prefix), this will change. Until
# then, it's hardcoded.
-helpdir = /usr/share/irssi/help
+helpdir = $(datarootdir)/irssi/help
help_DATA = otr
EXTRA_DIST = otr
diff --git a/src/Makefile.am b/src/Makefile.am
index 86dd43e..ca3bb3c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
AM_CFLAGS = $(LIBOTR_CFLAGS) $(LIBGCRYPT_CFLAGS) $(PACKAGE_FLAGS)
-IRSSI_DIST=/usr/include/irssi
+IRSSI_DIST=$(includedir)/irssi
IRSSI_INCLUDE = -I$(IRSSI_DIST) \
-I$(IRSSI_DIST)/src \
-I$(IRSSI_DIST)/src/fe-common/core \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git
More information about the Pkg-privacy-commits
mailing list