summaryrefslogtreecommitdiff
path: root/mail/pine-pgp-filters/patches/patch-ad
blob: cf968a207edbba46569c83df0be3d4d660915f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ad,v 1.3 2020/09/07 06:38:27 wiz Exp $

--- Makefile.in.orig	2010-04-12 00:37:45.000000000 +0000
+++ Makefile.in
@@ -10,17 +10,17 @@ all:
 
 install: all
 	@if [ ! -d @@PREFIX@@/libexec ]; then \
-		install -d -m 755 @@PREFIX@@/libexec; \
+		install -d -m 755 ${DESTDIR}/@@PREFIX@@/libexec; \
 	fi
 
-	install -m 555 $$PWD/out/ppf_* @@PREFIX@@/libexec
+	install -m 555 $$PWD/out/ppf_* ${DESTDIR}/@@PREFIX@@/libexec
 
 	@if [ ! -d @@PREFIX@@/bin ]; then \
-		install -d -m 755 @@PREFIX@@/bin; \
+		install -d -m 755 ${DESTDIR}/@@PREFIX@@/bin; \
 	fi
 
-	ln -sf @@PREFIX@@/libexec/ppf_mime @@PREFIX@@/bin/ppf_mime
-	ln -sf @@PREFIX@@/libexec/ppf_mime_decrypt @@PREFIX@@/bin/ppf_mime_decrypt
+	ln -sf @@PREFIX@@/libexec/ppf_mime ${DESTDIR}/@@PREFIX@@/bin/ppf_mime
+	ln -sf @@PREFIX@@/libexec/ppf_mime_decrypt ${DESTDIR}/@@PREFIX@@/bin/ppf_mime_decrypt
 
 clean:
 	@if [ -d "$$PWD/out" ]; then \