summaryrefslogtreecommitdiff
path: root/chat/weechat/patches/patch-ac
blob: c63ba9215479cbcdb6c7ea1cb500f5e73822eaf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ac,v 1.5 2011/03/05 22:48:07 tonio Exp $

Make sure to honor destdir

--- src/plugins/Makefile.in.orig	2011-01-16 08:17:23.000000000 +0000
+++ src/plugins/Makefile.in
@@ -759,8 +759,8 @@ uninstall-am:
 # install plugin header
 
 install-data-hook:
-	$(INSTALL) -d $(includedir)/$(PACKAGE)
-	$(INSTALL_DATA) weechat-plugin.h $(includedir)/$(PACKAGE)
+	$(INSTALL_DATA_DIR) -d ${DESTDIR}$(includedir)/$(PACKAGE)
+	$(INSTALL_DATA) weechat-plugin.h ${DESTDIR}$(includedir)/$(PACKAGE)
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.