source: trunk/dports/comms/kermit/files/patch-makefile @ 43428

Last change on this file since 43428 was 43428, checked in by jmr@…, 11 years ago

kermit: update to 8.0.211, fix livecheck

File size: 3.9 KB
Line 
1--- makefile.orig       2004-04-18 04:52:00.000000000 +1000
2+++ makefile    2008-12-11 09:04:33.000000000 +1100
3@@ -734,10 +734,10 @@
4 # . defining the values on the command line
5 # . defining the values in the environment and use the -e option
6 #
7-prefix  = /usr/local
8+prefix  = @@prefix@@
9 srproot = $(prefix)
10 sslroot = $(prefix)
11-manroot = $(prefix)
12+manroot = $(prefix)/share
13 
14 K4LIB=-L/usr/kerberos/lib
15 K4INC=-I/usr/kerberos/include
16@@ -905,7 +905,7 @@
17 MANDIR = $(manroot)/man/man1
18 MANEXT = 1
19 SRCDIR =
20-INFODIR =
21+INFODIR = $(prefix)/share/doc/kermit
22 CERTDIR =
23 
24 TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
25@@ -991,48 +991,27 @@
26        rm -f $(DESTDIR)$(BINDIR)/kermit;\
27        cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
28        chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1;\
29-       rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\
30-       ln -s        $(DESTDIR)$(BINDIR)/kermit\
31-                    $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
32-       echo 'set flag=f\nPrC Removing binaries' >&3;\
33-       echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
34-       echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
35-       if test -f ckermit.ini; then\
36-               echo "#!$(DESTDIR)$(BINDIR)/kermit" >\
37-                       $(DESTDIR)$(BINDIR)/_tmp.ini;\
38-               cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
39-               mv $(DESTDIR)$(BINDIR)/_tmp.ini\
40-                  $(DESTDIR)$(BINDIR)/ckermit.ini;\
41-               chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
42-               echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
43-       fi;\
44-       echo;\
45-       echo 'EfM' >&3;\
46-       echo "Kermit binary installed:";\
47-       ls -l $(DESTDIR)$(BINDIR)/kermit\
48-             $(DESTDIR)$(BINDIR)/kermit-sshsub\
49-             $(DESTDIR)$(BINDIR)/ckermit.ini;\
50        echo;\
51        echo " WARNING: If C-Kermit is to be used for dialing out,";\
52        echo " you must change its owner and group and permissions";\
53        echo " to match the 'cu' program.  See the ckuins.txt file";\
54        echo " for details.";\
55        echo;\
56-       echo MANDIR=$(MANDIR);\
57-       if test -n "$(MANDIR)"; then\
58-               if test -d $(MANDIR); then\
59-                       echo  "$(MANDIR) exists...";\
60+       echo MANDIR=$(DESTDIR)$(MANDIR);\
61+       if test -n "$(DESTDIR)$(MANDIR)"; then\
62+               if test -d $(DESTDIR)$(MANDIR); then\
63+                       echo  "$(DESTDIR)$(MANDIR) exists...";\
64                else\
65-                       echo "Creating $(MANDIR)...";\
66-                       mkdir $(MANDIR) || exit 1;\
67-                       chmod 755 $(MANDIR) || exit 1;\
68+                       echo "Creating $(DESTDIR)$(MANDIR)...";\
69+                       mkdir $(DESTDIR)$(MANDIR) || exit 1;\
70+                       chmod 755 $(DESTDIR)$(MANDIR) || exit 1;\
71                fi;\
72                echo "Installing man page...";\
73-               rm -f $(MANDIR)/kermit.$(MANEXT);\
74-               cp    ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1;\
75-               chmod 644       $(MANDIR)/kermit.$(MANEXT) || exit 1;\
76+               rm -f $(DESTDIR)$(MANDIR)/kermit.$(MANEXT);\
77+               cp    ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
78+               chmod 644       $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
79                echo 'set flag=f\nPrC Removing man pages' >&3;\
80-               echo "RmF $(MANDIR)/kermit.$(MANEXT)" >&3;\
81+               echo "RmF $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)" >&3;\
82                echo 'EfM' >&3;\
83                echo;\
84        else\
85@@ -1930,8 +1909,8 @@
86 macosx102nc:
87        @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
88        $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
89-       "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
90-       $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
91+       "CFLAGS+= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
92+       -DLOCK_DIR=\\\"/tmp\\\" $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
93 
94 #The problem here is that if curses.h also exists, it conflicts with
95 #ncurses.h and and we have fatal errors.  If this happens to you, then
96@@ -1949,9 +1928,9 @@
97 macosx103:
98        @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
99        $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
100-       "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
101+       "CFLAGS+= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
102        -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O \
103-       $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
104+       -DLOCK_DIR=\\\"/tmp\\\" $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
105 
106 macosx103nc:
107        $(MAKE) MAKE=$(MAKE) CC=$(CC) CC2=$(CC2) macosx103
Note: See TracBrowser for help on using the repository browser.