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
|
$NetBSD: patch-ab,v 1.3 2001/05/19 17:31:05 jtb Exp $
--- config/Makefile.SH.orig Wed Apr 18 11:40:57 2001
+++ config/Makefile.SH
@@ -81,7 +81,7 @@
X11)
PLOTFILE=plotX.c
PLOTCFLAGS=-I$Xincroot
- PLOTLIBS="-L$X11 -lX11 $extralib"
+ PLOTLIBS="-Wl,-R$X11 -L$X11 -lX11 $extralib"
if test "$osname" = concentrix; then PLOTLIBS="-lX11"; fi
plotrunpath=$X11
;;
@@ -175,8 +175,10 @@
MISCDIR = \$(ALLDIR)/misc
INSTALL = $cfg/install
-INSTALL_PROGRAM = \$(INSTALL)
-INSTALL_DATA = \$(INSTALL) -m 644
+INSTALL_PROGRAM = \$(BSD_INSTALL_PROGRAM)
+INSTALL_SCRIPT = \$(BSD_INSTALL_SCRIPT)
+INSTALL_DATA = \$(BSD_INSTALL_DATA)
+INSTALL_MAN = \$(BSD_INSTALL_MAN)
# Graphic library.
PLOTFILE = $PLOTFILE
@@ -272,21 +274,17 @@
\$(INSTALL_DATA) \$\$i.h \$(INCLUDEDIR); done
-for i in $hlist; do \\
\$(INSTALL_DATA) $src/headers/\$\$i.h \$(INCLUDEDIR); done
- -\$(RM) \$(INCLUDEDIR)/genpari.h
-\$(LN) pari.h \$(INCLUDEDIR)/genpari.h
install-bin: install-bin-$dft
install-bin-dyn: gp-dyn
-mkdir -p \$(BINDIR)
- -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff
-\$(LD) -o \$(BINDIR)/gp-$version \$(LDFLAGS) \$(OBJSGP) \$(RUNPTH_FINAL) \$(TOPLDDYN) \$(LDDYN) \$(PLOTLIBS) \$(LIBS)
- strip \$(BINDIR)/gp-$version
-\$(LN) gp-$version$exe_suff \$(BINDIR)/gp$exe_suff
install-bin-sta: gp-sta
-mkdir -p \$(BINDIR)
- -\$(RM) \$(BINDIR)/gp-$version \$(BINDIR)/gp$exe_suff
\$(INSTALL_PROGRAM) gp-sta$exe_suff \$(BINDIR)/gp-$version$exe_suff
-\$(LN) gp-$version$exe_suff \$(BINDIR)/gp$exe_suff
# Can't strip it if we want install() to work on Linux or OSF.
@@ -294,15 +292,14 @@
install-man::
-mkdir -p \$(MANDIR)
- \$(INSTALL_DATA) $doc/gphelp.1 \$(MANDIR)
- \$(INSTALL_DATA) $doc/gp.1 \$(MANDIR)
- -\$(RM) \$(MANDIR)/pari.1
+ \$(INSTALL_MAN) $doc/gphelp.1 \$(MANDIR)
+ \$(INSTALL_MAN) $doc/gp.1 \$(MANDIR)
-\$(LN) gp.1 \$(MANDIR)/pari.1
install-misc: $install_emacs_files install-top
-mkdir -p \$(MISCDIR) \$(BINDIR)
- \$(INSTALL_PROGRAM) $misc/tex2mail \$(BINDIR)
- \$(INSTALL_DATA) $doc/tex2mail.1 \$(MANDIR)
+ \$(INSTALL_SCRIPT) $misc/tex2mail \$(BINDIR)
+ \$(INSTALL_MAN) $doc/tex2mail.1 \$(MANDIR)
\$(INSTALL_DATA) $misc/README \$(MISCDIR)
\$(INSTALL_DATA) $misc/color.dft \$(MISCDIR)
\$(INSTALL_DATA) $misc/gpalias \$(MISCDIR)
@@ -328,7 +325,7 @@
install-doc::
-mkdir -p \$(ALLDIR) \$(BINDIR) \$(DOCDIR)
-cd $doc; \$(MAKE) all
- -\$(INSTALL_PROGRAM) $doc/gphelp \$(BINDIR)
+ -\$(INSTALL_SCRIPT) $doc/gphelp \$(BINDIR)
-\$(INSTALL_DATA) $doc/Makefile \$(DOCDIR)
-\$(INSTALL_DATA) $doc/translations \$(DOCDIR)
-\$(INSTALL_DATA) $doc/appa.tex \$(DOCDIR)
@@ -372,8 +369,7 @@
install-lib-sta: \$(LIBPARI_STA)
-mkdir -p \$(LIBDIR)
-\$(RM) \$(LIBDIR)/\$(LIBPARI_STA)
- \$(INSTALL_DATA) \$(LIBPARI_STA) \$(LIBDIR)/\$(LIBPARI_STA).$version
- -\$(LN) \$(LIBPARI_STA).$version \$(LIBDIR)/\$(LIBPARI_STA)
+ \$(INSTALL_DATA) \$(LIBPARI_STA) \$(LIBDIR)
install-lib-dyn: \$(LIBPARI_DYN)
-mkdir -p \$(LIBDIR)
|