source: general/prog/lazarus.xml@ 8163ea8f

lazarus
Last change on this file since 8163ea8f was 8163ea8f, checked in by Thomas Trepl (Moody) <thomas@…>, 2 years ago

Upgrade to Lazarus-2.2.0 and simplify instructions

  • Property mode set to 100644
File size: 5.5 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 <!--
8 NOTE:
9 Whenever upgrading to another version of Lazarus,
10 update qt5pas.xml, too!
11 -->
12 <!ENTITY lazarus-download-http "https://downloads.sourceforge.net/project/lazarus/Lazarus Zip _ GZip/Lazarus &lazarus-version;/lazarus-&lazarus-version;-0.tar.gz">
13 <!ENTITY lazarus-md5sum "c47680c84192008af1d05aa42b58c1da">
14 <!ENTITY lazarus-size "73.2 MB">
15 <!ENTITY lazarus-buildsize "817.2 MB">
16 <!ENTITY lazarus-time "1.5 SBU">
17]>
18
19<sect1 id="lazarus" xreflabel="lazarus-&lazarus-version;">
20 <?dbhtml filename="lazarus.html"?>
21
22 <sect1info>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>Lazarus-&lazarus-version;</title>
27
28 <indexterm zone="lazarus">
29 <primary sortas="a-lazarus">lazarus</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to lazarus</title>
34
35 <para><!-- copied from https://www.lazarus-ide.org/ -->
36 Lazarus is a Delphi compatible cross-platform IDE for Rapid
37 Application Development. It has variety of components ready
38 for use and a graphical form designer to easily create complex
39 graphical user interfaces.
40 </para>
41
42 &lfs110a_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&lazarus-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &lazarus-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &lazarus-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &lazarus-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &lazarus-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Lazarus Dependencies</bridgehead>
74 <para role="required">
75 <xref linkend="fpc"/>, and one of
76 <xref linkend="qt5"/> and <xref linkend="qt5pas"/> for QT based IDE, or
77 <xref linkend="gtk2"/> for Gtk2 based IDE
78 </para>
79
80 <para condition="html" role="usernotes">User Notes:
81 <ulink url="&blfs-wiki;/lazarus"/></para>
82
83 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of Lazarus</title>
87
88 <para>
89 Ensure that the source tree is in proper state:
90 </para>
91
92<screen><userinput>make -j1 FPC=/usr/bin/fpc clean</userinput></screen>
93
94<!--
95 Looks like that even both versions (gtk2, qt5) can be on one machine
96 when the binaries 'lazarus' and 'startlazarus' are moved to
97 lazarus -> lazarus-gtk2
98 startlazarus -> startlazarus-gtk2
99 and after building the QT5 variant
100 lazarus -> lazarus-qt5
101 startlazarus -> startlazarus-qt5
102 and than symlink lazarus/startlazarus to the desired ones.
103 (it needs to be analyzed more deeply)
104
105 Instructions are taken from ArchLinux and adopted to LFS
106-->
107 <para>
108 If you want to build <application>Lazarus</application> with
109 the gtk2 toolkit, build the package by running the following
110 commands, otherwise proceed to build the QT5 based variant below.
111 </para>
112
113<screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=gtk2 bigide</userinput></screen>
114
115 <para>
116 If you have built the gtk2 variant, skip the QT5 section and
117 proceed to the installation. Otherwise
118 <application>Lazarus</application> is built using the
119 QT5 library by running the following commands:
120 </para>
121
122<screen><userinput>make -j1 FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide</userinput></screen>
123
124 <para>
125 This package does not come with a test suite.
126 </para>
127
128 <para>
129 Now, install <application>lazarus</application> as the
130 <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>make INSTALL_PREFIX=/usr distinstall
134
135mv /usr/share/lazarus/docs /usr/share/doc/lazarus
136
137mv /usr/share/lazarus /usr/lib/
138for L in $(find /usr/bin -type l); do
139 ln -svf "$(readlink $L | sed 's@/share/@/lib/@')" "$L"
140done
141
142sed -e 's|\(Categories\).*|\1=IDE;Development;|' \
143 -i /usr/share/applications/lazarus.desktop
144
145install -Dm644 images/ide_icon48x48.png \
146 /usr/share/pixmaps/lazarus.png</userinput></screen>
147
148 </sect2>
149
150 <sect2 role="content">
151 <title>Contents</title>
152
153 <segmentedlist>
154 <segtitle>Installed Program</segtitle>
155 <segtitle>Installed Libraries</segtitle>
156 <segtitle>Installed Directories</segtitle>
157
158 <seglistitem>
159 <seg>startlazarus, lazarus-ide, lrstolfm, updatepofiles, lazbuild, lazres</seg>
160 <seg>None</seg>
161 <seg>/usr/lib/lazarus</seg>
162 </seglistitem>
163 </segmentedlist>
164
165 <variablelist>
166 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
167 <?dbfo list-presentation="list"?>
168 <?dbhtml list-presentation="table"?>
169
170 <varlistentry id="lazarus-pgm">
171 <term><filename class="libraryfile">startlazarus</filename></term>
172 <listitem>
173 <para>
174 Starting the Delphi-like IDE
175 </para>
176 <indexterm zone="lazarus lazarus-pgm">
177 <primary sortas="b-lazarus">startlazarus</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 </variablelist>
183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.