source: general/prog/lazarus.xml@ d2fb261

lazarus
Last change on this file since d2fb261 was d2fb261, checked in by Thomas Trepl (Moody) <thomas@…>, 8 months ago

comments

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY lazarus-download-http "https://downloads.sourceforge.net/project/lazarus/Lazarus Zip _ GZip/Lazarus &lazarus-version;/lazarus-&lazarus-version;.tar.gz">
8 <!ENTITY lazarus-md5sum "208dfeb20c528649d2598cc0eb341309">
9 <!ENTITY lazarus-size "66.3 MB">
10 <!ENTITY lazarus-buildsize "x.x MB">
11 <!ENTITY lazarus-time "x SBU">
12]>
13
14<sect1 id="lazarus" xreflabel="lazarus-&lazarus-version;">
15 <?dbhtml filename="lazarus.html"?>
16
17 <sect1info>
18 <date>$Date$</date>
19 </sect1info>
20
21 <title>Lazarus-&lazarus-version;</title>
22
23 <indexterm zone="lazarus">
24 <primary sortas="a-lazarus">lazarus</primary>
25 </indexterm>
26
27 <sect2 role="package">
28 <title>Introduction to lazarus</title>
29
30 <para><!-- copied from https://www.lazarus-ide.org/ -->
31 Lazarus is a Delphi compatible cross-platform IDE for Rapid
32 Application Development. It has variety of components ready
33 for use and a graphical form designer to easily create complex
34 graphical user interfaces.
35 </para>
36
37 &lfs110a_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&lazarus-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &lazarus-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &lazarus-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &lazarus-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &lazarus-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Lazarus Dependencies</bridgehead>
69 <para role="required">
70 <xref linkend="rsync"/>,
71 <xref linkend="fpc"/>, and one of
72 <xref linkend="qt5"/> and <xref linkend="qt5pas"/>, or
73 <xref linkend="gtk2"/>
74 </para>
75
76 <para condition="html" role="usernotes">User Notes:
77 <ulink url="&blfs-wiki;/lazarus"/></para>
78
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of Lazarus</title>
83
84 <para>
85 Ensure that the source tree is in proper state:
86 </para>
87
88<screen><userinput>make -j1 FPC=/usr/bin/fpc clean</userinput></screen>
89
90<!--
91 Looks like that even both versions (gtk2, qt5) can be on one machine
92 when the binaries 'lazarus' and 'startlazarus' are moved to
93 lazarus -> lazarus-gtk2
94 startlazarus -> startlazarus-gtk2
95 and after building the QT5 variant
96 lazarus -> lazarus-qt5
97 startlazarus -> startlazarus-qt5
98 and than symlink lazarus/startlazarus to the desired ones.
99 (it needs to be analyzed more deeply)
100
101 Instructions are taken from ArchLinux and adopted to LFS
102-->
103 <para>
104 If you want to build <application>Lazarus</application> with
105 the gtk2 toolkit, build the package by running the following
106 commands, otherwise proceed to build the QT5 based variant below.
107 </para>
108
109<screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=gtk2 bigide</userinput></screen>
110
111 <para>
112 If you have built the gtk2 variant, skip the QT5 section and
113 proceed to the installation. Otherwise
114 <application>Lazarus</application> is built using the
115 QT5 library by running the following commands:
116 </para>
117
118<screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide</userinput></screen>
119
120 <para>
121 This package does not come with a test suite.
122 </para>
123
124 <para>
125 Now, install <application>lazarus</application> as the
126 <systemitem class="username">root</systemitem> user:
127 </para>
128
129<!-- some of the dirs already exists -+
130 V -->
131<screen role="root"><userinput>mkdir -pv /usr/{lib/lazarus,bin,share{/man/man1,/doc}}
132rsync -a \
133 --exclude="CVS" --exclude=".cvsignore" \
134 --exclude="*.ppw" --exclude="*.ppl" \
135 --exclude="*.ow" --exclude="*.a"\
136 --exclude="*.rst" --exclude=".#*" \
137 --exclude="*.~*" --exclude="*.bak" \
138 --exclude="*.orig" --exclude="*.rej" \
139 --exclude=".xvpics" \
140 --exclude="killme*" --exclude=".gdb_hist*" \
141 --exclude="debian" --exclude="COPYING*" \
142 --exclude="*.app" --exclude="tools/install" \
143 . /usr/lib/lazarus
144ln -s /usr/lib/lazarus/lazbuild /usr/bin/lazbuild
145cp -R install/man/man1/* /usr/share/man/man1/
146mv /usr/lib/lazarus/docs /usr/share/doc/lazarus
147
148mkdir -p /usr/lib/lazarus/docs
149ln -s /usr/share/doc/lazarus/chm /usr/lib/lazarus/docs/html
150ln -s /usr/share/doc/lazarus/lazdoc.css /usr/lib/lazarus/docs/lazdoc.css
151
152install -D -m644 COPYING.modifiedLGPL.txt /usr/share/licenses/lazarus/COPYING.modifiedLGPL
153
154sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
155 -e 's|\.png|\.xpm|' -i install/lazarus.desktop
156install -Dm644 install/lazarus.desktop /usr/share/applications/lazarus.desktop
157install -Dm644 images/ide_icon48x48.png /usr/share/pixmaps/lazarus.png</userinput></screen>
158
159 </sect2>
160
161 <sect2 role="content">
162 <title>Contents</title>
163
164 <segmentedlist>
165 <segtitle>Installed Program</segtitle>
166 <segtitle>Installed Libraries</segtitle>
167 <segtitle>Installed Directories</segtitle>
168
169 <seglistitem>
170 <seg>lazarus, ...</seg>
171 <seg>None</seg>
172 <seg>None</seg>
173 </seglistitem>
174 </segmentedlist>
175
176 <variablelist>
177 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
178 <?dbfo list-presentation="list"?>
179 <?dbhtml list-presentation="table"?>
180
181 <varlistentry id="lazarus-pgm">
182 <term><filename class="libraryfile">lazarus</filename></term>
183 <listitem>
184 <para>
185 the Delphi-like IDE
186 </para>
187 <indexterm zone="lazarus lazarus-pgm">
188 <primary sortas="b-lazarus">lazarus</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 </variablelist>
194
195 </sect2>
196
197</sect1>
Note: See TracBrowser for help on using the repository browser.