blob: 3aa7dbdd71962a2138b2254f5afcb0e5a1e03de1 (
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.7 2005/09/13 19:25:57 christos Exp $
--- Makefile.orig 1993-06-09 22:51:22.000000000 -0400
+++ Makefile 2004-02-20 09:37:24.000000000 -0500
@@ -15,17 +15,24 @@
DISTRIBUTION\
= Makefile fep.1 $(HEADER) $(SRC) feprc.sample README
-INSTDIR = /usr/local/bin
+INSTDIR = ${PREFIX}/bin
#STAT = -DSTAT# Delete # for statistic info
#KANJI = -DKANJI# Delete # for KANJI handling
-CONFIG = $(STAT) $(KANJI)
+CONFIG = $(STAT) $(KANJI) -DTERMIOS
#DEBUG = -g
-DEBUG = -O
+#DEBUG = -O
-CFLAGS = $(DEBUG) $(CONFIG)
+CFLAGS += $(DEBUG) $(CONFIG)
+.if exists(/dev/ptmx)
+CFLAGS += -DHAVE_PTMX
+.endif
+.if exists(/usr/lib/libcompat.a)
+LDFLAGS = -ltermcap -lcompat
+.else
LDFLAGS = -ltermcap
+.endif
all: $(TARGET)
@@ -37,7 +44,7 @@
install: $(TARGET)
install -s $(TARGET) $(INSTDIR)
- install -c fep.1 /usr/man/manl/fep.l
+ gzip -9n -c fep.1 > ${PREFIX}/man/man1/fep.1.gz
fep.1: fep.jman
sed -e '/^\.EG/d' -e '/^\.JP/,/^\.EJ/d' -e '/^\.\\"KS/,/^\.\\"KE/d' \
|