Debian Codegraph @

upstream/debian-unstable/man1/perlriscos.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (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 .\"
57 .IX Title "PERLRISCOS 1"
58 .TH PERLRISCOS 1 2025-11-16 "perl v5.40.1" "Perl Programmers Reference Guide"
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 perlriscos \- Perl version 5 for RISC OS
65 .SH DESCRIPTION
66 .IX Header "DESCRIPTION"
67 This document gives instructions for building Perl for RISC OS. It is
68 complicated by the need to cross-compile. There is a binary version of
69 perl available from <https://www.cp15.org/perl/> which you may wish to
70 use instead of trying to compile it yourself.
71 .SH BUILD
72 .IX Header "BUILD"
73 You need an installed and working
74 GCCSDK <https://www.riscos.info/downloads/gccsdk/latest/> cross-compiler
75 and REXEN <https://www.cp15.org/programming/>.
76 .PP
77 First, copy the source and build a native copy of perl for your host system.
78 Then, in the source to be cross-compiled:
79 .IP 1. 4
80 .Vb 1
81 \& $ ./Configure
82 .Ve
83 .IP 2. 4
84 Select the RISC OS hint file (\fIhints/riscos.sh\fR).
85 The default answers for the rest of the questions are usually sufficient.
86 .Sp
87 Note that, if you wish to run \f(CW\*(C`Configure\*(C'\fR non-interactively
88 (see the \fIINSTALL\fR document for details), to have it select the correct hint
89 file, you'll need to provide the argument \f(CW\*(C`\-Dhintfile=riscos\*(C'\fR on the
90 \&\f(CW\*(C`Configure\*(C'\fR command-line.
91 .IP 3. 4
92 .Vb 1
93 \& $ make miniperl
94 .Ve
95 .IP 4. 4
96 This should build \f(CW\*(C`miniperl\*(C'\fR and then fail when it tries to run it.
97 .IP 5. 4
98 Copy the \fIminiperl\fR executable from the native build done earlier to
99 replace the cross-compiled \fIminiperl\fR.
100 .IP 6. 4
101 .Vb 1
102 \& $ make
103 .Ve
104 .IP 7. 4
105 This will use \f(CW\*(C`miniperl\*(C'\fR to complete the rest of the build.
106 .SH AUTHOR
107 .IX Header "AUTHOR"
108 Alex Waugh <[email protected]>