]> git.pld-linux.org Git - packages/pl.git/blob - pl-DESTDIR.patch
- xpce is 6.2.13
[packages/pl.git] / pl-DESTDIR.patch
1 --- pl-3.4.0/src/Makefile.in~   Wed Jul 26 23:14:39 2000
2 +++ pl-3.4.0/src/Makefile.in    Fri Oct 20 17:16:09 2000
3 @@ -48,7 +48,7 @@
4  lmansec=3
5  mandir=$(man_prefix)/man$(mansec)
6  lmandir=$(man_prefix)/man$(lmansec)
7 -plmandir=$(PLBASE)/man
8 +plmandir=$(man_prefix)/man1
9  
10  CC=@CC@
11  LIBS=@LIBS@
12 @@ -238,34 +238,34 @@
13  dv-install:    install-arch install-libs install-bins
14  
15  install-mt:    
16 -               $(INSTALL_PROGRAM) $(PL) $(PLBASE)/bin/$(ARCH)/pl-mt
17 -               $(REL_LN) $(PLBASE)/bin/$(ARCH)/pl-mt $(bindir)
18 +               $(INSTALL_PROGRAM) $(PL) $(DESTDIR)$(PLBASE)/bin/$(ARCH)/pl-mt
19 +               $(REL_LN) $(PLBASE)/bin/$(ARCH)/pl-mt $(DESTDIR)$(bindir)
20  
21  install-bins:  install-arch
22 -               -if [ ! -d $(bindir)  ]; then $(MKDIR) $(bindir); fi
23 +               -if [ ! -d $(DESTDIR)$(bindir)  ]; then $(MKDIR) $(DESTDIR)$(bindir); fi
24                 for f in $(PL) plld plrc; do \
25 -                   $(REL_LN) $(PLBASE)/bin/$(ARCH)/$$f $(bindir); \
26 +                   $(REL_LN) $(PLBASE)/bin/$(ARCH)/$$f $(DESTDIR)$(bindir); \
27                 done
28  
29  install-vbins: install-arch
30 -               -if [ ! -d $(bindir)  ]; then $(MKDIR) $(bindir); fi
31 -               $(REL_LN) $(PLBASE)/bin/$(ARCH)/$(PL) $(bindir)/$(PLV)
32 +               -if [ ! -d $(DESTDIR)$(bindir)  ]; then $(MKDIR) $(DESTDIR)$(bindir); fi
33 +               $(REL_LN) $(PLBASE)/bin/$(ARCH)/$(PL) $(DESTDIR)$(bindir)/$(PLV)
34                 for f in plld plrc; do \
35 -                   $(REL_LN) $(PLBASE)/bin/$(ARCH)/$$f $(bindir); \
36 +                   $(REL_LN) $(PLBASE)/bin/$(ARCH)/$$f $(DESTDIR)$(bindir); \
37                 done
38  
39  install-arch:  idirs iruntime
40                 for f in $(PL) plld rc/plrc; do \
41 -                   $(INSTALL_PROGRAM) $$f $(PLBASE)/bin/$(ARCH); \
42 +                   $(INSTALL_PROGRAM) $$f $(DESTDIR)$(PLBASE)/bin/$(ARCH); \
43                 done
44  
45  install-libs:  idirs iboot ilib iruntime iinclude iman
46 -               $(INSTALL_DATA) $(STARTUPPATH) $(PLBASE)/$(BOOTFILE)
47 -               $(INSTALL_DATA) swipl $(PLBASE)
48 -               $(INSTALL_DATA) swiplbin $(PLBASE)/bin/swipl
49 +               $(INSTALL_DATA) $(STARTUPPATH) $(DESTDIR)$(PLBASE)/$(BOOTFILE)
50 +               $(INSTALL_DATA) swipl $(DESTDIR)$(PLBASE)
51 +               $(INSTALL_DATA) swiplbin $(DESTDIR)$(PLBASE)/bin/swipl
52                 # $(INSTALL_DATA) README.bin $(PLBASE)
53                 # $(INSTALL_DATA) ../COPYING $(PLBASE)
54 -               cd $(PLBASE)/library; \
55 +               cd $(DESTDIR)$(PLBASE)/library; \
56                    ../bin/$(ARCH)/$(PL) \
57                         -f none \
58                         -g make_library_index\('.'\) \
59 @@ -275,58 +275,58 @@
60                 include runtime runtime/$(ARCH)
61  
62  iruntime:
63 -               if [ ! -d $(PLBASE)/runtime/$(ARCH) ]; then \
64 -                       $(MKDIR) $(PLBASE)/runtime/$(ARCH); \
65 +               if [ ! -d $(DESTDIR)$(PLBASE)/runtime/$(ARCH) ]; then \
66 +                       $(MKDIR) $(DESTDIR)$(PLBASE)/runtime/$(ARCH); \
67                 fi
68 -               if [ -f $(RUNTIME) ]; then \
69 -                       $(INSTALL_DATA) $(RUNTIME) $(PLBASE)/runtime/$(ARCH); \
70 +               if [ -f $(DESTDIR)$(RUNTIME) ]; then \
71 +                       $(INSTALL_DATA) $(RUNTIME) $(DESTDIR)$(PLBASE)/runtime/$(ARCH); \
72                 fi
73  
74  idirs:
75 -               -if [ ! -d $(prefix)/lib  ];    then $(MKDIR) $(prefix)/lib;     fi
76 -               -if [ ! -d $(PLBASE)  ];    then $(MKDIR) $(PLBASE);    fi
77 +               -if [ ! -d $(DESTDIR)$(prefix)/lib  ];    then $(MKDIR) $(DESTDIR)$(prefix)/lib;     fi
78 +               -if [ ! -d $(DESTDIR)$(PLBASE)  ];    then $(MKDIR) $(DESTDIR)$(PLBASE);        fi
79                 for d in $(installdirs); do \
80 -                       if [ ! -d $(PLBASE)/$$d ]; then \
81 -                               $(MKDIR) $(PLBASE)/$$d; \
82 +                       if [ ! -d $(DESTDIR)$(PLBASE)/$$d ]; then \
83 +                               $(MKDIR) $(DESTDIR)$(PLBASE)/$$d; \
84                         fi; \
85                 done
86  
87  
88  iboot:         
89                 cd ../boot; \
90 -               for f in *.pl; do $(INSTALL_DATA) $$f $(PLBASE)/boot; done
91 +               for f in *.pl; do $(INSTALL_DATA) $$f $(DESTDIR)$(PLBASE)/boot; done
92  ilib:          
93                 cd ../library; \
94                 for f in $(PLLIBS); do \
95 -                       $(INSTALL_DATA) $$f $(PLBASE)/library; \
96 +                       $(INSTALL_DATA) $$f $(DESTDIR)$(PLBASE)/library; \
97                 done
98  
99  iinclude:       
100                 cd ../include; \
101                 for f in SWI-Prolog.h SWI-Exports SWI-Stream.h stub.c; do \
102                     if [ -f $$f ]; then \
103 -                       $(INSTALL_DATA) $$f $(PLBASE)/include; \
104 +                       $(INSTALL_DATA) $$f $(DESTDIR)$(PLBASE)/include; \
105                     fi; \
106                 done
107 -               if [ -d $(prefix)/include -a -w $(prefix)/include ]; then \
108 -                   $(INSTALL_DATA) ../include/SWI-Prolog.h $(prefix)/include; \
109 +               if [ -d $(DESTDIR)$(prefix)/include -a -w $(DESTDIR)$(prefix)/include ]; then \
110 +                   $(INSTALL_DATA) ../include/SWI-Prolog.h $(DESTDIR)$(prefix)/include; \
111                 fi
112  
113  iman:          @INSTALLRLMAN@
114 -               $(INSTALL_DATA) pl.1 $(plmandir)/$(PL).$(mansec)
115 -               $(INSTALL_DATA) $(srcdir)/plrc.1 $(plmandir)/plrc.$(mansec)
116 -               $(INSTALL_DATA) $(srcdir)/plld.1 $(plmandir)/plld.$(mansec)
117 -               $(INSTALL_DATA) $(srcdir)/readline.3 $(plmandir)/readline.$(lmansec)
118 -               -if [ ! -d $(man_prefix) ]; then $(MKDIR) $(man_prefix); fi
119 -               -if [ ! -d $(mandir)  ];    then $(MKDIR) $(mandir);     fi
120 -               -$(INSTALL_DATA) $(plmandir)/$(PL).$(mansec) $(mandir)
121 -               -$(INSTALL_DATA) $(plmandir)/plrc.$(mansec) $(mandir)
122 -               -$(INSTALL_DATA) $(plmandir)/plld.$(mansec) $(mandir)
123 +               $(INSTALL_DATA) pl.1 $(DESTDIR)$(plmandir)/$(PL).$(mansec)
124 +               $(INSTALL_DATA) $(srcdir)/plrc.1 $(DESTDIR)$(plmandir)/plrc.$(mansec)
125 +               $(INSTALL_DATA) $(srcdir)/plld.1 $(DESTDIR)$(plmandir)/plld.$(mansec)
126 +               $(INSTALL_DATA) $(srcdir)/readline.3 $(DESTDIR)$(plmandir)/readline.$(lmansec)
127 +               -if [ ! -d $(man_prefix) ]; then $(MKDIR) $(DESTDIR)$(man_prefix); fi
128 +               -if [ ! -d $(mandir)  ];    then $(MKDIR) $(DESTDIR)$(mandir);     fi
129 +               -$(INSTALL_DATA) $(plmandir)/$(PL).$(mansec) $(DESTDIR)$(mandir)
130 +               -$(INSTALL_DATA) $(plmandir)/plrc.$(mansec) $(DESTDIR)$(mandir)
131 +               -$(INSTALL_DATA) $(plmandir)/plld.$(mansec) $(DESTDIR)$(mandir)
132  
133  install_rlman:
134 -               -if [ ! -d $(lmandir) ]; then $(MKDIR) $(lmandir); fi
135 -               -if [ ! -r $(lmandir)/readline.$(lmansec) ]; then \
136 -                 $(INSTALL_DATA) $(srcdir)/readline.3 $(lmandir)/readline.$(lmansec); \
137 +               -if [ ! -d $(DESTDIR)$(lmandir) ]; then $(MKDIR) $(DESTDIR)$(lmandir); fi
138 +               -if [ ! -r $(DESTDIR)$(lmandir)/readline.$(lmansec) ]; then \
139 +                 $(INSTALL_DATA) $(srcdir)/readline.3 $(DESTDIR)$(lmandir)/readline.$(lmansec); \
140                 fi
141  
142  #
143 @@ -342,17 +342,17 @@
144                 @echo "Creating runtime environment in $(RTHOME)"
145                 @echo "****************"
146                 @for d in $(RTDIRS); do \
147 -                   if [ ! -d $$d ]; then \
148 -                       echo $(MKDIR) $$d; \
149 -                       $(MKDIR) $$d; \
150 +                   if [ ! -d $(DESTDIR)$$d ]; then \
151 +                       echo $(MKDIR) $(DESTDIR)$$d; \
152 +                       $(MKDIR) $(DESTDIR)$$d; \
153                     fi; \
154                 done
155 -               $(INSTALL_PROGRAM) $(PL) $(RTHOME)/bin/$(ARCH)/pl
156 -               $(INSTALL_DATA) $(srcdir)/pl.1 $(RTHOME)/man/pl.1
157 -               $(INSTALL_DATA) swipl $(RTHOME)/swipl
158 -               $(INSTALL_DATA) swiplbin $(RTHOME)/bin/swipl
159 -               $(INSTALL_DATA) $(srcdir)/README.RT $(RTHOME)
160 -#              -cd $(bindir); rm -f plrt; ln -s $(RTHOME)/bin/$(ARCH)/pl plrt
161 +               $(INSTALL_PROGRAM) $(PL) $(DESTDIR)$(RTHOME)/bin/$(ARCH)/pl
162 +               $(INSTALL_DATA) $(srcdir)/pl.1 $(DESTDIR)$(RTHOME)/man/pl.1
163 +               $(INSTALL_DATA) swipl $(DESTDIR)$(RTHOME)/swipl
164 +               $(INSTALL_DATA) swiplbin $(DESTDIR)$(RTHOME)/bin/swipl
165 +               $(INSTALL_DATA) $(srcdir)/README.RT $(DESTDIR)$(RTHOME)
166 +#              -cd $(DESTDIR)$(bindir); rm -f plrt; ln -s $(RTHOME)/bin/$(ARCH)/pl plrt
167  
168  #
169  # Cleanup
This page took 0.10141 seconds and 3 git commands to generate.