blob: 16578e03520475eeff2c839156002c14c068f4ec (
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
|
$NetBSD: patch-aa,v 1.3 2001/04/27 10:06:13 abs Exp $
--- Makefile.orig Tue Feb 18 23:02:28 1997
+++ Makefile
@@ -10,18 +10,18 @@
# for changing this is if sh is not in the same place.
SHELL = /bin/sh
CC = gcc
-CFLAGS = -g
+#CFLAGS = -g
# Where the executables should be put
-DESTDIR = /usr/games
+DESTDIR = $(PREFIX)/bin
# Where the man page should be put
-MANDIR = /usr/man/man6
+MANDIR = $(PREFIX)/man/man6
# Where figlet will search first for fonts (the ".flf" files).
-DEFAULTFONTDIR = $(DESTDIR)/lib/figlet.dir
+#DEFAULTFONTDIR = $(DESTDIR)/lib/figlet.dir
# Use this definition if you can't put things in /usr/games
-DEFAULTFONTDIR = fonts
+DEFAULTFONTDIR = $(PREFIX)/share/figlet
# The filename of the font to be used if no other is specified
# (standard.flf is recommended, but any other can be used).
@@ -50,9 +50,12 @@
rm -f *.o figlet chkfont
install: figlet chkfont
- mkdir $(DEFAULTFONTDIR)
+ mkdir -p $(DEFAULTFONTDIR)
+ strip figlet
cp figlet $(DESTDIR)
+ strip chkfont
cp chkfont $(DESTDIR)
+ chmod 555 figlist showfigfonts
cp figlist $(DESTDIR)
cp showfigfonts $(DESTDIR)
cp fonts/*.flf $(DEFAULTFONTDIR)
|