aboutsummaryrefslogtreecommitdiffstats
path: root/editors/2bsd-vi/files/patch-Makefile
blob: cbf2c5337856132878d9a3005714ec0605c5844d (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
--- Makefile.orig   2005-03-24 23:50:09 UTC
+++ Makefile
@@ -79,10 +79,9 @@
 # Destinations for installation. $(PRESERVEDIR) is used for recovery files.
 # It will get mode 1777.
 #
-PREFIX     = /usr/local
 BINDIR     = $(PREFIX)/bin
 LIBEXECDIR = $(PREFIX)/libexec
-MANDIR     = $(PREFIX)/share/man
+MANDIR     = $(PREFIX)/man
 PRESERVEDIR    = /var/preserve
 
 #
@@ -94,7 +93,7 @@
 #
 # A BSD-like install program. GNU install will fit well here, too.
 #
-INSTALL        = /usr/ucb/install
+INSTALL        = /usr/bin/install
 
 #
 # Compiler and linker flags.
@@ -161,9 +160,7 @@
 # (wchar.h, wctype.h, btowc() etc.) which is not provided by older
 # compilation environments.
 #
-REINC  = -I./libuxre -DUXRE
-RELIB  = -L./libuxre -luxre
-RETGT  = uxre
+REINC  = -DUXRE -DREG_ANGLES=0 -DNO_BE_BACKSLASH
 
 #
 # VMUNIX should be correct for any modern Unix.
@@ -205,13 +202,13 @@
 #
 # You may also get terminfo access by using the ncurses library.
 #
-#TERMLIB   = ncurses
+TERMLIB    = ncurses
 #
 # The preferred choice for ex on Linux distributions, other systems that
 # provide a good termcap file, or when setting the TERMCAP environment
 # variable is deemed sufficient, is the included 2.11BSD termcap library.
 #
-TERMLIB    = termlib
+#TERMLIB   = termlib
 
 #
 # Since ex uses sbrk() internally, a conflict with the libc's version of
@@ -240,7 +237,6 @@
            -DEXPRESERVE=\"$(LIBEXECDIR)/expreserve\"
 CCFLAGS    = $(CFLAGS) $(WARN) $(CPPFLAGS) $(FEATURES) $(CHARSET) $(OSTYPE) \
        $(LARGEF) $(RECOVER) $(LANGMSG) $(REINC) $(RPMCFLAGS)
-TLIB   = libterm/libtermlib.a
 INCLUDE    = /usr/include
 OBJS   = ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o \
        ex_data.o ex_extern.o ex_get.o ex_io.o ex_put.o ex_re.o \
@@ -296,13 +292,6 @@
 # install in standard place
 
 install-man:
-   test -d $(DESTDIR)$(PREFIX) || mkdir -p $(DESTDIR)$(PREFIX)
-   test -d $(DESTDIR)$(MANDIR) || mkdir -p $(DESTDIR)$(MANDIR)
-   test -d $(DESTDIR)$(MANDIR)/man1 || mkdir -p $(DESTDIR)$(MANDIR)/man1
-   rm -f $(DESTDIR)$(MANDIR)/man1/ex.1 $(DESTDIR)$(MANDIR)/man1/edit.1 \
-       $(DESTDIR)$(MANDIR)/man1/vedit.1 \
-       $(DESTDIR)$(MANDIR)/man1/vi.1 \
-       $(DESTDIR)$(MANDIR)/man1/view.1
    $(INSTALL) -c -m 644 ex.1 $(DESTDIR)$(MANDIR)/man1/ex.1
    $(INSTALL) -c -m 644 vi.1 $(DESTDIR)$(MANDIR)/man1/vi.1
    ln -s ex.1 $(DESTDIR)$(MANDIR)/man1/edit.1
@@ -310,10 +299,6 @@
    ln -s vi.1 $(DESTDIR)$(MANDIR)/man1/view.1
 
 install: all install-man
-   rm -f $(DESTDIR)$(BINDIR)/ex $(DESTDIR)$(BINDIR)/edit \
-       $(DESTDIR)$(BINDIR)/vedit $(DESTDIR)$(BINDIR)/vi \
-       $(DESTDIR)$(BINDIR)/view
-   test -d $(DESTDIR)$(BINDIR) || mkdir -p $(DESTDIR)$(BINDIR)
 # special provisions for sticky install
    if test -f $(DESTDIR)$(BINDIR)/ex; \
    then    test -f $(DESTDIR)$(BINDIR)/ex.old.$$$$ && exit 1; \
@@ -322,8 +307,7 @@
        mv $(DESTDIR)$(BINDIR)/ex $(DESTDIR)$(BINDIR)/ex.old.$$$$; \
        rm -f $(DESTDIR)$(BINDIR)/ex.old.$$$$; \
    fi
-   $(INSTALL) -c $(STRIP) -m 1755 ex $(DESTDIR)$(BINDIR)/ex
-   test -d $(DESTDIR)$(LIBEXECDIR) || mkdir -p $(DESTDIR)$(LIBEXECDIR)
+   $(INSTALL) -c $(STRIP) -m 755 ex $(DESTDIR)$(BINDIR)/ex
    $(INSTALL) -c $(STRIP) exrecover $(DESTDIR)$(LIBEXECDIR)/exrecover
    $(INSTALL) -c $(STRIP) expreserve $(DESTDIR)$(LIBEXECDIR)/expreserve
    ln -s ex $(DESTDIR)$(BINDIR)/edit