summaryrefslogtreecommitdiff
path: root/security/pcsc-tools/patches/patch-Makefile
blob: 75acf529256aebd5bbc5b15a2b9f49d0c808b9b4 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-Makefile,v 1.1 2017/02/16 14:47:57 gdt Exp $

Honor PKGMANDIR.
Avoid gzipping man pages.

--- Makefile.orig	2015-11-08 17:18:51.000000000 +0000
+++ Makefile
@@ -16,7 +16,7 @@ LDLIBS := $(PCSC_LDLIBS)
 
 BIN = pcsc_scan
 BIN_SCRIPT = ATR_analysis gscriptor scriptor
-MAN = pcsc_scan.1.gz gscriptor.1p.gz scriptor.1p.gz ATR_analysis.1p.gz
+MAN = pcsc_scan.1 gscriptor.1p scriptor.1p ATR_analysis.1p
 
 all: $(BIN) $(MAN)
 
@@ -31,17 +31,18 @@ install: all
 	install -d $(DESTDIR)/share/pcsc
 	install -m 644 smartcard_list.txt $(DESTDIR)/share/pcsc
 
-	install -d $(DESTDIR)/share/man/man1/
-	install -m 644 $(MAN) $(DESTDIR)/share/man/man1/
+	install -d $(DESTDIR)/${PKGMANDIR}/man1/
+	install -m 644 $(MAN) $(DESTDIR)/${PKGMANDIR}/man1/
 
 clean:
 	rm -f pcsc_scan.o $(BIN) $(MAN)
 
-%.1.gz: %.1
-	gzip --best $^ --to-stdout > $@
+# Avoid gzip man files.
+$%.1.gz: %.1
+#	gzip --best $^ --to-stdout > $@
 
-%.1p.gz: %.1p
-	gzip --best $^ --to-stdout > $@
+#%.1p.gz: %.1p
+#	gzip --best $^ --to-stdout > $@
 
 .PHONY: clean all install Changelog