[Pkg-privacy-commits] [irssi-plugin-otr] 208/267: patch: fix build toolchain to respect DESTDIR
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:26:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository irssi-plugin-otr.
commit c7e5d70418033fcaa942a8d9ee5d6f6eb1d7b3d8
Author: Antoine Beaupré <anarcat at koumbit.org>
Date: Wed May 8 23:07:04 2013 -0400
patch: fix build toolchain to respect DESTDIR
---
debian/patches/destdir_support.patch | 38 ++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/debian/patches/destdir_support.patch b/debian/patches/destdir_support.patch
new file mode 100644
index 0000000..c2965b7
--- /dev/null
+++ b/debian/patches/destdir_support.patch
@@ -0,0 +1,38 @@
+commit 3c296cbd52108a0da335b83524ecd2a6452ff02d
+Author: Antoine Beaupré <anarcat at koumbit.org>
+Date: Wed May 8 22:54:08 2013 -0400
+
+ cleanup automake voodoo
+
+ we directly build the library with the right name instead of renaming
+ it
+
+ we also remove it by respecting the $DESTDIR prefix to make this
+ makefile compatible with Debian build scripts
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 4f931be..a9e47fd 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -14,16 +14,14 @@ IRSSI_INCLUDE = -I$(IRSSI_DIST) \
+ INCLUDES = -I$(top_srcdir)/src $(IRSSI_INCLUDE)
+
+ plugindir = $(IRSSI_MODULE_DIR)
+-plugin_LTLIBRARIES = otr.la
++plugin_LTLIBRARIES = libotr.la
+
+-otr_la_SOURCES = otr-formats.c otr-formats.h \
++libotr_la_SOURCES = otr-formats.c otr-formats.h \
+ key.c key.h cmd.c cmd.h otr.c otr-ops.c \
+ utils.h utils.c otr.h module.c module.h irssi-otr.h
+
+-otr_la_LDFLAGS = -avoid-version -module
+-otr_la_LDFLAGS += $(LIBOTR_LIBS) $(LIBGCRYPT_LIBS) -lpthread
++libotr_la_LDFLAGS = -avoid-version -module
++libotr_la_LDFLAGS += $(LIBOTR_LIBS) $(LIBGCRYPT_LIBS) -lpthread
+
+ install-data-hook:
+- rm $(plugindir)/otr.la
+- mv $(plugindir)/otr.so $(plugindir)/libotr.so
+- chmod 644 $(plugindir)/libotr.so
++ rm $(DESTDIR)/$(plugindir)/libotr.la
--
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