summaryrefslogtreecommitdiff
path: root/misc/figlet/patches/patch-aa
blob: a334fef1bfaefcd1ad62c42fdf95a665f78dd16c (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
42
43
44
45
46
47
48
49
50
$NetBSD: patch-aa,v 1.6 2005/10/15 22:16:05 tonio Exp $

--- Makefile.orig	2005-07-05 11:57:46.000000000 +0200
+++ Makefile
@@ -11,19 +11,19 @@
 # Don't change this even if your shell is different. The only reason
 # for changing this is if sh is not in the same place.
 SHELL = /bin/sh
-CC = gcc
-CFLAGS = -g
+CC ?= gcc
+CFLAGS ?= -g
 
 # Where the executables should be put
-DESTDIR = /usr/local/bin
+DESTDIR = ${PREFIX}/bin
 
 # Where the man page should be put
-MANDIR = /usr/local/man/man6
+MANDIR = ${PREFIX}/man/man6
 
 # Where figlet will search first for fonts (the ".flf" files).
-DEFAULTFONTDIR = /usr/local/share/figlet
+DEFAULTFONTDIR = ${PREFIX}/share/figlet
 # Use this definition if you can't put things in /usr/local/share/figlet
-DEFAULTFONTDIR = fonts
+#DEFAULTFONTDIR = fonts
 
 # The filename of the font to be used if no other is specified
 #   (standard.flf is recommended, but any other can be used).
@@ -52,11 +52,11 @@ clean:
 	rm -f *.o figlet chkfont
 
 install: figlet chkfont
-	mkdir -p $(DEFAULTFONTDIR)
-	cp figlet $(DESTDIR)
-	cp figlet.6 $(MANDIR)
-	cp chkfont $(DESTDIR)
-	cp figlist $(DESTDIR)
-	cp showfigfonts $(DESTDIR)
-	cp fonts/*.flf $(DEFAULTFONTDIR)
-	cp fonts/*.flc $(DEFAULTFONTDIR)
+	${BSD_INSTALL_DATA_DIR} $(DEFAULTFONTDIR)
+	${BSD_INSTALL_PROGRAM} figlet $(DESTDIR)
+	${BSD_INSTALL_DATA} figlet.6 $(MANDIR)
+	${BSD_INSTALL_PROGRAM} chkfont $(DESTDIR)
+	${BSD_INSTALL_SCRIPT} figlist $(DESTDIR)
+	${BSD_INSTALL_SCRIPT} showfigfonts $(DESTDIR)
+	${BSD_INSTALL_DATA} fonts/*.flf $(DEFAULTFONTDIR)
+	${BSD_INSTALL_DATA} fonts/*.flc $(DEFAULTFONTDIR)