Debian Codegraph @

upstream/mageia-cauldron/man1/perlriscos.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "PERLRISCOS 1"
61 .TH PERLRISCOS 1 2024-05-07 "perl v5.42.0" "Perl Programmers Reference Guide"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 perlriscos \- Perl version 5 for RISC OS
68 .SH DESCRIPTION
69 .IX Header "DESCRIPTION"
70 This document gives instructions for building Perl for RISC OS. It is
71 complicated by the need to cross\-compile. There is a binary version of
72 perl available from <https://www.cp15.org/perl/> which you may wish to
73 use instead of trying to compile it yourself.
74 .SH BUILD
75 .IX Header "BUILD"
76 You need an installed and working
77 GCCSDK <https://www.riscos.info/downloads/gccsdk/latest/> cross\-compiler
78 and REXEN <https://www.cp15.org/programming/>.
79 .PP
80 First, copy the source and build a native copy of perl for your host system.
81 Then, in the source to be cross\-compiled:
82 .IP 1. 4
83 .Vb 1
84 \& $ ./Configure
85 .Ve
86 .IP 2. 4
87 Select the RISC OS hint file (\fIhints/riscos.sh\fR).
88 The default answers for the rest of the questions are usually sufficient.
89 .Sp
90 Note that, if you wish to run \f(CW\*(C`Configure\*(C'\fR non\-interactively
91 (see the \fIINSTALL\fR document for details), to have it select the correct hint
92 file, you\*(Aqll need to provide the argument \f(CW\*(C`\-Dhintfile=riscos\*(C'\fR on the
93 \&\f(CW\*(C`Configure\*(C'\fR command\-line.
94 .IP 3. 4
95 .Vb 1
96 \& $ make miniperl
97 .Ve
98 .IP 4. 4
99 This should build \f(CW\*(C`miniperl\*(C'\fR and then fail when it tries to run it.
100 .IP 5. 4
101 Copy the \fIminiperl\fR executable from the native build done earlier to
102 replace the cross\-compiled \fIminiperl\fR.
103 .IP 6. 4
104 .Vb 1
105 \& $ make
106 .Ve
107 .IP 7. 4
108 This will use \f(CW\*(C`miniperl\*(C'\fR to complete the rest of the build.
109 .SH AUTHOR
110 .IX Header "AUTHOR"
111 Alex Waugh <[email protected]>